stdio version-controldev-tool

GitHub MCP Server

Interact with GitHub repositories, issues, pull requests, and the GitHub API.

claude_desktop_config.json

{
  "mcpServers": {
    "server-github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your-token-here"
      }
    }
  }
}

Environment Variables

Variable Required Description
GITHUB_PERSONAL_ACCESS_TOKEN ✓ Required GitHub personal access token with the required repo scopes.

Setup Instructions

  1. Ensure Node.js 18+ is installed on your system.
  2. Copy the config block above into your claude_desktop_config.json file (typically at ~/.config/claude/claude_desktop_config.json on macOS/Linux or %APPDATA%\Claude\claude_desktop_config.json on Windows).
  3. Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable: GitHub personal access token with the required repo scopes.
  4. Restart your AI client to apply the config.

Related Servers