GitHub MCP Server
GitHub's official MCP server. Connects AI tools to GitHub's platform to read repositories and code, manage issues and PRs, analyze code, and automate workflows.
01 / Source
Author
GitHub
Repository stars
34.8K
Repo last pushed
Nov 26, 2026
02 / Setup
Auth
GitHub Personal Access Token (classic, scope-filtered) or OAuth
Environment variables
GITHUB_PERSONAL_ACCESS_TOKEN
Install
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
From the server's own docs — the exact command it documents for this method, not invented.
03 / Permissions
What installing this server actually grants access to, as documented by its own source — not True LLMs' assessment.
From the source's own docs
- Available tools are controlled via --toolsets (e.g. repos, issues, pull_requests, actions, code_security) — enable only what you need.
- A --read-only flag disables all write tools, and takes priority even if a write tool is explicitly requested.
- Classic PATs (ghp_ prefix) have their available tools filtered at startup based on the token's own OAuth scopes.
04 / Compatibility
Scope: compatibility below is what each server's own source states, not an independent test — True LLMs hasn't run these against live agents yet. Marked confirmed by source where the source says so, untested everywhere else.