GitHub MCP Server
GitHub's official MCP Server
Connecting MCP clients like Claude Code or Cursor to GitHub repos, issues, and PRs — the official server.
You need write-heavy automation beyond what the API surface exposes.
About github-mcp-server
The GitHub MCP Server connects AI tools directly to GitHub's platform. This gives AI agents, assistants, and chatbots the ability to read repositories and code files, manage issues and PRs, analyze code, and automate workflows. All through natural language interactions.
Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.
The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the local version of the GitHub MCP Server instead.
github-mcp-server is listed in this index written primarily in Go, with 35k stars on GitHub. Its latest recorded repository push was in November 2026; that is not an ASE editorial review date.
Before connecting: access and data
GitHub tools can read repository data and change GitHub resources when enabled tools and credentials permit it. The ordinary /mcp/ endpoint is not itself a read-only configuration.
Publisher documentation checked ; recheck due . These are documented capabilities, not a tested connection or security assessment.
- Can read
- Repository files, issues, pull requests and other GitHub data accessible to the authenticated account.
- Can change
- Enabled write tools can change files, issues, pull requests and other GitHub resources within the credential's permissions.
- Code and process execution
- Some enabled tools operate workflow or repository actions; inspect the tool list instead of assuming repository access is passive.
- Credentials and account state
- OAuth or a personal access token, depending on the client and local/hosted transport. Restrict the account, repositories and token permissions.
- Data destinations
- Hosted requests reach GitHub's MCP endpoint; local tools still call GitHub APIs. Your client may forward returned content to its model provider.
- Limits of this check
- Tool selection and read-only mode are documented controls, not evidence that your client has applied them. Lockdown filtering does not replace authorization.
- Limit access before connecting
- For the hosted server, choose the documented /mcp/readonly endpoint or X-MCP-Readonly: true header; inspect the discovered tools before use.
- For local deployment, set --read-only or GITHUB_READ_ONLY=1 and select only needed tools/toolsets. The publisher says read-only excludes requested write tools.
- Disconnect and revoke access
- Disconnect the server in the client. Delete the associated PAT or revoke its OAuth authorization in GitHub; removing config alone does not revoke it.
- List the accounts, files and services the enabled tools can read, change or execute. Check your actual credentials and discovered tools.
- Use narrowly scoped credentials and read-only mode where supported. Review proposed writes before approving them; a generated configuration does not apply these limits for you.
- Local launch is not local-only data processing. External services receive requests, and your client may pass tool results to its model provider. Check both destinations before sharing private data.
- Keep keys and browser session files out of shared config, repositories and screenshots. Know how to disconnect the server and separately revoke its credentials or account sessions.
Add github-mcp-server to your MCP client
A hosted server: point your client at its URL and complete its sign-in there. In Claude Desktop or claude.ai, add it under Settings → Connectors → Add custom connector instead.
Claude Code
claude mcp add --transport http github-mcp-server https://api.githubcopilot.com/mcp/Cursor
{
"mcpServers": {
"github-mcp-server": {
"url": "https://api.githubcopilot.com/mcp/"
}
}
}VS Code
{
"servers": {
"github-mcp-server": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}Codex
codex mcp add github-mcp-server --url https://api.githubcopilot.com/mcp/