AgentTask Atlas

MCP server · GitHub

GitHub MCP Server

Pick it for issues, PRs and Actions from the agent; limit toolsets or use read-only mode for review tasks.

Tools: 46, ~11,131 tokens of tool definitions loaded into the model's context (release binary, default toolsets; measured 2026-10-27, v2.0.3). Compare all servers →

All 46 tools, by token cost
  1. issue_write803
  2. pull_request_read557
  3. list_issues545
  4. pull_request_review_write476
  5. search_issues436
  6. search_pull_requests400
  7. list_commits398
  8. search_code381
  9. search_commits375
  10. list_pull_requests374
  11. sub_issue_write373
  12. create_or_update_file367
  13. issue_read332
  14. add_comment_to_pending_review330
  15. add_issue_comment270
  16. get_file_contents269
  17. search_repositories262
  18. add_reply_to_pull_request_comment256
  19. get_commit242
  20. list_repository_collaborators241
  21. assign_copilot_to_issue233
  22. update_pull_request224
  23. list_releases210
  24. create_pull_request195
  25. search_users194
  26. push_files182
  27. merge_pull_request167
  28. list_issue_fields151
  29. ui_get150
  30. update_issue_comment144
  31. create_repository127
  32. delete_file126
  33. list_branches125
  34. list_tags125
  35. update_pull_request_branch119
  36. list_issue_types115
  37. request_copilot_review111
  38. create_branch107
  39. get_release_by_tag104
  40. get_label90
  41. get_tag89
  42. fork_repository88
  43. get_team_members77
  44. get_latest_release73
  45. get_teams63
  46. get_me55

Same server, other documented flags (measured 2026-10-27):

  • --read-only (read-only): 27 tools, ~6,433 tokens (42% less than the default)
  • --toolsets=repos,issues,pull_requests --read-only (repos + issues + pull_requests, read-only): 22 tools, ~5,894 tokens (47% less than the default)
  • --toolsets=all (all toolsets): 91 tools, ~23,138 tokens (108% more than the default)

Install

Remote: add https://api.githubcopilot.com/mcp/ in your client; local: Docker image ghcr.io/github/github-mcp-server (see README). Cursor: the install guide adds the remote URL with an Authorization: Bearer PAT header in ~/.cursor/mcp.json. Official install docs ↗

Credentials: GitHub OAuth (remote server, in hosts that register an OAuth app; Cursor's guide uses a PAT) or a Personal Access Token (GITHUB_PERSONAL_ACCESS_TOKEN); the local Docker server can also log in with OAuth in the browser.

What it can access

Acts on GitHub with the scopes of your token/OAuth app: repos, issues, PRs, Actions (toolsets configurable, read-only mode available).

Minimal safe setup

  • Start with --read-only (write tools are skipped even if requested via --tools) and only the toolsets you need, e.g. --toolsets=repos,issues,pull_requests. source ↗
  • With a PAT, grant only what you use: the README's minimum list is repo (repository operations), read:packages (Docker image access) and read:org (organization teams); use separate tokens per project and rotate them. source ↗
  • When the agent reads public repositories, add --lockdown-mode (Docker: GITHUB_LOCKDOWN_MODE=1): it withholds issue/PR content from authors without push access to reduce prompt-injection risk. GitHub says it is a best-effort filter, not an authorization boundary. source ↗

Common setup errors

Docker pull of ghcr.io/github/github-mcp-server fails.
The image is public; a failed pull usually means an expired ghcr.io login. Run docker logout ghcr.io and pull again. source ↗
Your --toolsets flag seems to be ignored.
The GITHUB_TOOLSETS environment variable takes precedence over the --toolsets argument when both are set; remove one of them. source ↗
GitHub Enterprise Server does not connect.
GHES is not supported by the remote server: run the local server with --gh-host / GITHUB_HOST set to your host with the https:// prefix (non-HTTPS hosts are refused, except loopback). ghe.com data-residency tenants use https://copilot-api.<subdomain>.ghe.com/mcp remotely. source ↗
The token from your shell environment is not picked up.
Environment-variable expansion in MCP config varies by client; the README notes some (for example Windsurf) need the token written in the config file. If you do that, restrict the file (chmod 600) and keep it out of Git. source ↗

How it differs from alternatives

  • Git (reference server): Works on a local repository (status, diff, commit, branch) with no GitHub account or token; it cannot touch issues, PRs or Actions. Measured: 12 tools, ~1,137 tokens.
  • GitLab MCP: The equivalent for GitLab: a hosted endpoint only, authenticated with OAuth (mcp scope) or a fine-grained PAT.

Notes written from the official sources linked above, checked 2026-10-27.

Details

Type
MCP server
Tasks
Git & GitHub reposCode reviewCI/CD
Compatible agents
Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, GitHub Copilot, Zed (source: clients with a setup heading or install/config instructions in the official README)
Maintenance
Release v2.3.0 on 2026-11-24; last commit 2026-12-03
License
MIT
Source
https://github.com/github/github-mcp-server
Verified on
2026-12-03

No independent security audit: entries summarize official sources only. Review permissions and code before installing.

Compared in: Best MCP servers for CI/CD in Cursor · Best MCP servers for Git & GitHub repos · Best MCP servers for Code review · Best MCP servers for CI/CD

Badge for your README (maintainers)

The badge only says it's listed; it is not a security review or an endorsement.

Listed on AgentTask Atlas

← All MCP servers and skills