Back to MCPs
Official Featured Config Required

GitHub

Repository management, file operations, and GitHub API integration. Enables Claude to interact with repositories, create issues, manage PRs, and more.

githubgitapi+1 more
1,654 upvotes 61,200 views by Anthropic

Required Environment Variables

Set these environment variables before using this MCP server:

GITHUB_TOKEN
Installation
npx -y @modelcontextprotocol/server-github

How to add to Claude Code

  1. Open Claude Code settings

    Run claude config or edit ~/.claude/config.json

  2. Add the MCP server configuration
    {
      "mcpServers": {
        "github": {
          "command": "npx",
          "args": [
                  "-y",
                  "@modelcontextprotocol/server-github"
          ]
        }
      }
    }
  3. Restart Claude Code

    The MCP server will now be available in your sessions