Search DevTools

Jump to any tool or page

GitHub MCP Server

Trending

Enables AI models to search repositories, manage issues, inspect pull requests, read files, and trigger workflows directly on GitHub.

Anthropic / MCP Spec18,500 stars2,400 forksDeveloper Tools
View source

Install

Terminal

$npx -y @modelcontextprotocol/server-github

mcp_config.json

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

Tools exposed4

search_repositories
Search GitHub repositories with topic, star, and language filters.
create_issue
Create an issue with title, body, assignees, and labels.
get_file_contents
Retrieve content of a file or directory at a specific branch or commit.
create_pull_request
Creates a pull request across branches.

Documentation

GitHub Model Context Protocol (MCP) Server

Overview

The GitHub MCP Server connects your AI assistants to GitHub's REST and GraphQL APIs, enabling complete lifecycle management of code repositories.

Quick Setup

Add to your mcp_config.json or Claude Desktop Configuration:

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

Available Tools

  • search_repositories: Search repositories by language, stars, or topic.
  • create_issue: Open a new issue with labels and assignees.
  • get_file_contents: Read repository files at specific git refs.
  • create_pull_request: Submit pull requests automatically.

Sourced from the repository README.

More in Developer Tools