GitHub MCP Server
GitHub's official MCP server: lets AI agents read code, manage issues and pull requests, check Actions runs and security alerts, remote or local
Overview
GitHub MCP Server is GitHub's official Model Context Protocol server. It connects AI coding agents and chat assistants to GitHub so they can browse repositories and code, open and update issues and pull requests, read Actions runs and logs, check code scanning, Dependabot and secret scanning alerts, and work with projects, discussions and notifications. You can use the remote server that GitHub hosts at api.githubcopilot.com/mcp, which signs in with OAuth, or run it locally from the official Docker image or a Go binary with a personal access token. Tools come in toolsets (repos, issues, pull_requests, actions, code_security and more), so you can switch on only what an agent needs, and a read-only flag drops every write tool. It works in VS Code, Visual Studio, JetBrains, Xcode and Eclipse through Copilot, and in Claude Code, Claude Desktop, Cursor, Windsurf, Zed, Codex and other MCP hosts. Learn the protocol on our Model Context Protocol page.
The Verdict
Who Should Use GitHub MCP Server?
Best For
- Developers who want their coding agent to handle issues, pull requests and reviews without leaving the chat
- Teams that already use GitHub Actions and want agents to read failed runs and logs
- Security-minded teams that need read-only mode or a narrow toolset
- Anyone using Claude Code, Cursor, Codex or Copilot who wants one official, maintained GitHub connector
Not Ideal For
- Teams on GitLab or Bitbucket
- GitHub Enterprise Server users who want the hosted remote server (run it locally instead)
- Context-tight setups that switch on every toolset at once
- Simple, scripted jobs where the
ghCLI is cheaper and more predictable
What's Great
- Official and actively maintained by GitHub, MIT licensed
- Remote server with OAuth 2.1 and PKCE: no token to paste, short-lived tokens that refresh
- Toolsets, single-tool allow-lists and a read-only flag keep the agent's reach small
- Covers far more than code: Actions, security alerts, Dependabot, projects, discussions, gists
- Base server is free for all GitHub users; secret scanning tools are free on public repositories
- Works with most MCP hosts, not only Copilot
Watch Out For
- Tool definitions are heavy: independent counts put the full surface at roughly 42,000 to 55,000 tokens before any work starts
- GitHub's own team said early versions with too many tools made agents less effective and filled context faster
- Some tools need paid licenses: the Copilot coding agent needs Copilot, code scanning needs GitHub Advanced Security
- Organizations on Copilot Business or Enterprise must enable the "MCP servers in Copilot" policy
- The hosted remote server is not available for GitHub Enterprise Server
Pricing
View all features & details
Toolsets
- Default: context, repos, issues, pull_requests, users
- Also: actions, code_security, code_quality, dependabot, secret_protection, security_advisories
- Also: discussions, gists, git, labels, notifications, orgs, projects, copilot
- Remote only: Copilot Spaces and GitHub support docs search
Ways to Run
- Remote: hosted by GitHub, OAuth sign-in on first use
- Local: official Docker image or Go binary over stdio
- Personal access token works for both and takes precedence over OAuth
- GitHub Enterprise Cloud with data residency and Enterprise Server via a host setting
Supported Hosts
- VS Code, Visual Studio, JetBrains, Eclipse and Xcode via Copilot
- Claude Code and Claude Desktop
- Cursor, Windsurf, Zed, OpenCode
- Codex, Copilot CLI, Gemini CLI (local), Rovo Dev CLI
Use Cases
- Triage issues and open pull requests from a coding agent
- Read a failed Actions run and propose a fix
- Review security alerts across repositories
- Search code across an organization
Timeline: remote server public preview June 2025, generally available September 4, 2025. Sources: GA changelog · GitHub README
How It Compares
| Feature | GitHub MCP Server | gh CLI | Composio |
|---|---|---|---|
| Made by | GitHub | GitHub | Composio |
| Interface | MCP tools for agents | Shell commands | Hosted connectors for many apps |
| Scope | GitHub only | GitHub only | Hundreds of apps |
| Auth | OAuth or token | Token or browser login | Managed OAuth |
| Context cost | High if all toolsets are on | Low per command | Depends on tools loaded |
| Price | Free, open source | Free, open source | Freemium |
Sources: Unblocked token analysis · Composio
Is this your tool? Add a badge