GitHub MCP Server

Manage GitHub repos, issues, PRs, and code from your AI assistant

By Anthropic (official) ★ 6.1K stars official git code

The GitHub MCP Server connects Claude and other MCP-compatible agents directly to the GitHub API. Search repositories, open issues, create pull requests, read file contents, and trigger actions — all from within your AI chat session.

Installation & Configuration

Add this block to your claude_desktop_config.json (or your agent framework's MCP config file):

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here" }
    }
  }
}

Config file location:

Available Tools (10)

Use Cases

Source & Documentation

GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/github

Protocol: Model Context Protocol (MCP) — modelcontextprotocol.io

← Back to MCP Server Directory