Claude Desktop · MCP

Add GitHub to Claude Desktop

Search repos, read code, open issues and PRs from Claude.

DeveloperNeeds an API keySource repo

Your config

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

Create a token at github.com/settings/tokens (classic, repo scope). Paste it in place of the placeholder.

How to add it

01

Open Claude Desktop → Settings → Developer → Edit Config.

02

Paste the block below into claude_desktop_config.json (merge it into "mcpServers" if you already have some).

03

Fill in any placeholder values (paths, API keys).

04

Fully quit and reopen Claude Desktop. The server’s tools appear in the 🔌 menu.

The linked repo is the source of truth — if the package name ever changes, it’ll be current there.

Want a whole automation, not just one tool? Grab a working workflow template.