Official GitHub MCP server for Claude Code.
Create issues, manage pull requests, review code, search repositories, and interact with GitHub's full API directly from Claude Code.
Set the environment variable:
export GITHUB_PERSONAL_ACCESS_TOKEN=your-token-here
GITHUB_PERSONAL_ACCESS_TOKEN - Your GitHub PAT with appropriate scopesFor local server deployment:
{
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
}
}
See GitHub MCP Server for detailed documentation.