GitHub
Officialby GitHub
The GitHub MCP Server is the official Model Context Protocol server maintained by GitHub, giving AI assistants and coding agents direct access to the full GitHub platform. Originally developed by Anthropic as part of the MCP reference servers collection, it was adopted and expanded by GitHub into a standalone project at github/github-mcp-server. The server exposes over 50 tools spanning repository management, issue tracking, pull request workflows, code search, notifications, code security scanning, and GitHub Actions monitoring. AI agents can create and manage repositories, browse file contents, push commits, open and merge pull requests, conduct code reviews with inline comments, search code across all of GitHub, triage issues, manage notifications, and analyze security alerts from code scanning and secret scanning. The server supports configurable toolsets via the GITHUB_TOOLSETS environment variable, allowing you to enable only the capabilities you need and reduce context window usage. It also offers a read-only mode, lockdown mode for safely working with public repositories to guard against prompt injection, and dynamic toolset discovery. Authentication uses a GitHub Personal Access Token. The server can run locally via Docker using the ghcr.io/github/github-mcp-server image, as a remote HTTP server at https://api.githubcopilot.com/mcp/ with OAuth support, or via the legacy npm package for quick local testing. It integrates natively with Claude Desktop, Claude Code, VS Code, Cursor, and JetBrains IDEs.
Installation
Key Features
- ✓50+ tools covering repositories, issues, pull requests, code search, notifications, and security scanning
- ✓Full pull request workflow with inline review comments, diff viewing, and branch management
- ✓Code and repository search across all of GitHub using the native search engine
- ✓Configurable toolsets and read-only mode to limit scope and reduce context window usage
- ✓Lockdown mode with content sanitization to protect against prompt injection in public repos
- ✓Runs locally via Docker, as a hosted remote server with OAuth, or via legacy npm package
Use Cases
- →Let AI agents create issues, branches, and pull requests from natural language instructions
- →Automate code reviews by having AI read diffs, leave inline comments, and approve or request changes
- →Search code across repositories to find usage patterns, function definitions, or security vulnerabilities
- →Monitor GitHub Actions workflows and analyze build failures without leaving your AI chat
- →Triage and manage issue backlogs by having AI read, label, comment on, and assign issues