GitHub
GitHub's official server. Lets your AI client work with repositories, issues and pull requests. Use the hosted version with a personal access token, or run it locally in Docker. Create a token with the narrowest permissions you need. The old npm package @modelcontextprotocol/server-github is deprecated.
Install
Claude Codeclaude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}' Claude Desktop Needs Docker. Add the JSON config below to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop.
CursorNeeds Docker. Add the JSON config below to .cursor/mcp.json (this project) or ~/.cursor/mcp.json (all projects).
OpenAI CodexPut your GitHub personal access token in an environment variable (for example GITHUB_PAT_TOKEN), then run: codex mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKEN. Or add this to ~/.codex/config.toml: [mcp_servers.github] url = "https://api.githubcopilot.com/mcp/" and bearer_token_env_var = "GITHUB_PAT_TOKEN" (on separate lines). Never paste the token itself into the file.
JSON config
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT" }
}
}
}