GitHub
by github
GitHub's official MCP server — repositories, issues, pull requests, code search, Actions — scoped to a personal access token you provide. Replaces the archived @modelcontextprotocol/server-github.
Fine-grained PAT, minimum scopes: repo, optionally read:org, read:packages
Set to 1 for read tools only; write tools skipped even if listed in GITHUB_TOOLS
1Comma-separated allow-list of tool groups. Default context,repos,issues,pull_requests,users; all for everything
Allow-list of individual tool names, additive with toolsets; unknown names fail startup
Set to 1 to withhold public-repo content from authors without push access (prompt-injection filter, best effort); private repos unaffected
https:// GHES or ghe.com host; HTTPS enforced
Set to true for experimental tools; keep off
Comma-separated tool names to drop even if their toolset is enabled
Comma-separated feature flags (experimental; usually empty)
Max characters returned per file/content tool (default 5000)
Go duration for caching repo-permission lookups used by lockdown mode (default 5m)
Write logs to a file
Set to 1 to log every MCP request and response to GITHUB_LOG_FILE
Set to 1 to dump tool descriptions to a JSON overrides file and exit
stdio-only alternative to a PAT: browser OAuth app flow
stdio-only alternative to a PAT: browser OAuth app flow
stdio-only alternative to a PAT: browser OAuth app flow
stdio-only alternative to a PAT: browser OAuth app flow
stdio-only alternative to a PAT: GitHub App installation token
stdio-only alternative to a PAT: GitHub App installation token
stdio-only alternative to a PAT: GitHub App installation token
stdio-only alternative to a PAT: GitHub App installation token
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
http subcommand only; irrelevant for the stdio driver
Optional KEY=VALUE pairs (one per line) set as extra environment variables on the connector's process. Lines starting with # are ignored; uncomment and edit what you need.
Default template
# Optional extra environment variables, one KEY=VALUE per line. # Lines starting with # are ignored: uncomment and edit what you need. # Documented options: https://github.com/github/github-mcp-server # Route the connector through an HTTP proxy, if your network needs one. # HTTPS_PROXY=http://proxy.example:8080 # Turn up logging for troubleshooting (read by many servers; the name varies). # LOG_LEVEL=debug
This template lands in your config when you add the connector. Edit or override anytime from My Connectors — click the connector's config action to open the same editor with your saved values.
Runtime commands — technical reference. Nothing to configure here; the desktop runs these for you.
podman run --rm -i -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server:v2.1.0go install github.com/github/github-mcp-server/cmd/[email protected] stdio