Give Claude direct access to your GitHub repositories. Read issues, review pull requests, search code, and manage branches without leaving your conversation.
The GitHub MCP server connects Claude to the GitHub API through the Model Context Protocol. It lets your AI assistant read repository data, interact with issues and pull requests, search across codebases, and perform common GitHub operations, all through natural language.
MCP is an open standard from Anthropic that provides a structured way for AI models to access external tools and data. The GitHub MCP server implements this protocol to expose GitHub's API in a way Claude can understand and use effectively.
Once connected, you can ask Claude things like "what are the open bugs in our main repo?" or "summarize the changes in PR #247" and it pulls the information directly from GitHub. No browser tabs, no API scripts, no context switching.
Go to GitHub Settings > Developer Settings > Personal Access Tokens > Fine-grained tokens. Create a new token with repository access scoped to the repos you want Claude to access. Grant read permissions for contents, issues, pull requests, and actions.
The official GitHub MCP server is available as an npm package:
npm install -g @modelcontextprotocol/server-github
Add the GitHub server to your Claude Desktop configuration file:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "github_pat_your_token_here"
}
}
}
}
Config file location on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop. The GitHub tools will appear in the tools menu. Try asking: "List the open issues in [your-repo]" to verify the connection.
Before reviewing a large pull request, ask Claude to summarize the changes, identify which files were modified, flag potential issues, and explain the intent behind the diff. You get a head start before reading a single line of code.
Ask Claude to pull all open bug reports, group them by component or severity, and identify which ones have been open the longest. It can cross-reference related issues and suggest which bugs to address first based on impact.
New to a project? Ask Claude to find where authentication is handled, how the database layer is structured, or where a specific API endpoint is defined. It searches across files and explains what it finds.
Point Claude at the commits between two tags and ask it to generate release notes. It reads the commit messages, PR descriptions, and linked issues to produce a changelog that actually makes sense to your users.
Yes, as long as your personal access token has permission to access them. Use fine-grained tokens to control exactly which repositories Claude can see.
GitHub Enterprise Cloud works out of the box. For GitHub Enterprise Server (self-hosted), you need to configure the MCP server with your custom API endpoint URL.
When Claude reads a file through the MCP server, the file contents are included in your conversation context. Anthropic's data retention policies apply to conversation data. If this is a concern, use the MCP server only with non-sensitive repositories, or use Claude's enterprise tier which offers zero data retention.
Claude can read workflow run results and check statuses, but it cannot trigger or modify GitHub Actions workflows through the MCP server. You can, however, ask Claude to help you write or debug workflow YAML files.
Custom Integration
We build production-grade MCP servers for development workflows. GitHub, CI/CD, project management, and everything your engineering team touches.
Book a Discovery CallMore MCP Integrations