GitHub MCP
by GitHubOfficial MCP server for GitHub. Read repos, browse issues and PRs, search code, manage branches, and post comments — all from inside your MCP-compatible client.
$ install
# Add to your MCP client config (e.g. claude_desktop_config.json)
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
}
}
}
}
$ cat readme.md
What it exposes
- Repository operations — read files, list branches, create commits
- Issues & pull requests — list, search, comment, label
- Code search — full-text search across a repo or org
- User & org data — profile, membership, permissions
Auth
Requires a GitHub personal access token. Use a fine-grained token scoped to only the repos you want the agent to touch — MCP clients pass the full token to the server process.