GitHub MCP Server
GitHub's official Model Context Protocol server for connecting AI agents to repositories, issues, PRs, Actions, and security data.
Developers and platform teams who want their AI IDE or agent to read and act on GitHub repos, PRs, Actions, and security alerts without hand-rolling API integrations.
Users who need write access to non-GitHub forges (GitLab, Bitbucket, Gitea) or who are not using an MCP-capable client and do not plan to adopt one.
GitHub MCP Server is the official Model Context Protocol implementation maintained by GitHub itself, exposing the GitHub platform to any MCP-capable AI client. Instead of writing custom API glue, an agent connects once and gains natural-language access to repositories, files, commits, branches, pull requests, issues, discussions, Actions workflows, code scanning alerts, Dependabot findings, secret scanning, gists, projects, notifications, users, and organization data. Toolsets are modular: you can enable everything with --toolsets all, run the recommended default, or scope down to just the surfaces a given agent needs (for example issues and pull_requests for a triage bot, or code_security for a review agent). Two deployment modes cover most needs. The remote hosted server runs on GitHub's infrastructure and installs in one click on VS Code 1.101+, Visual Studio, Cursor, Windsurf, Zed, JetBrains, Claude Desktop, Claude Code, Copilot CLI, and Gemini CLI, with OAuth or PAT auth. The local mode ships as a Docker image (ghcr.io/github/github-mcp-server) or a Go binary you build from source, which is what you want for GitHub Enterprise Server, air-gapped environments, or GitHub App authentication for unattended agents. Typical workflows include letting Claude or Copilot investigate a failing CI run and propose a fix PR, having an agent summarize open issues and label them, wiring a security bot that reads Dependabot and code scanning results and files remediation PRs, or giving a coding assistant read access to a monorepo it can search and cite. Because it is first-party, coverage tracks the GitHub REST and GraphQL APIs faithfully and evolves with the platform.
This is the reference implementation you should reach for before any community GitHub MCP fork. Being first-party means it will not fall behind API changes, and the hosted remote server plus OAuth removes the worst part of MCP setup. Just be disciplined about scoping the PAT and the --toolsets list; giving an agent 'all' with a repo-admin token is asking for a bad afternoon.
— The AI Tool Bible editorial team
Pros
- ✅ First-party and MIT-licensed, so it tracks GitHub's API surface directly and there is no third-party maintainer risk
- ✅ Broad toolset coverage: repos, issues, PRs, Actions, code scanning, Dependabot, secrets, discussions, projects, gists, orgs, users
- ✅ Hosted remote server with one-click install in VS Code, Cursor, Claude Desktop, JetBrains, Zed, Windsurf, Copilot CLI and more
- ✅ OAuth flow keeps the token in memory only, which is safer than pasting a long-lived PAT into every client
- ✅ Local Docker and Go-binary options support GitHub Enterprise Server, GitHub App auth, and offline / policy-restricted setups
- ✅ Modular --toolsets flag lets you narrow what the agent can see, reducing tool-choice noise and blast radius
- ✅ Insiders mode exposes experimental tools early for teams that want to track new capabilities
Cons
- ⚠️ Powerful scopes plus an autonomous agent is a real risk; a poorly-scoped PAT can let a hallucinating model push branches, close issues, or leak private code
- ⚠️ Rate limits and GitHub API costs still apply, and chatty agents can burn through the 5,000 req/hr PAT budget quickly on large repos
- ⚠️ Large toolsets can overwhelm smaller models with tool-choice ambiguity if you enable 'all' instead of scoping down
- ⚠️ Self-hosted deployment for GitHub Enterprise Server requires you to configure your own OAuth app or GitHub App, which is non-trivial
- ⚠️ Only useful inside an MCP-capable client; if your stack does not speak MCP you still need to wrap it yourself
Use cases
Explore related
Compare with similar tools
All in MCP Servers →Airtable MCP Server
Model Context Protocol server that gives LLMs full read/write access to your Airtable bases.
Apple Notes MCP
Let Claude read your local Apple Notes over the Model Context Protocol.
AWS MCP Servers
Official AWS Labs collection of Model Context Protocol servers for connecting AI coding assistants and agents to AWS services and documentation.
Azure MCP Server
Official Microsoft MCP server that exposes 40+ Azure services to AI agents under the developer's own Entra ID credentials.
Blender MCP
Give Claude hands inside Blender — an MCP server for natural-language 3D modeling.
Brave Search MCP
Give any MCP client web and local search powered by the Brave Search API.