github-mcp-server

github-mcp-server
Certified

4.7

The GitHub MCP Server is a Model Context Protocol server that integrates with GitHub APIs for automation and interaction.

The GitHub MCP Server is designed to facilitate seamless integration with GitHub APIs, providing developers and tools with advanced automation and interaction capabilities. It allows for the automation of GitHub workflows, extraction and analysis of data from repositories, and the building of AI-powered tools that interact with GitHub's ecosystem. The server can be run in a Docker container and requires a GitHub Personal Access Token for authentication. It supports a wide range of GitHub API functionalities, including repository management, issue tracking, pull request handling, and more. The server is highly configurable, allowing users to enable or disable specific toolsets to tailor the available functionalities to their needs. Additionally, it supports dynamic tool discovery, enabling the host to list and enable toolsets in response to user prompts, thus optimizing the tool selection process.

Features

  • Seamless integration with GitHub APIs for advanced automation.
  • Support for a wide range of GitHub functionalities including repositories, issues, and pull requests.
  • Configurable toolsets to enable or disable specific functionalities.
  • Dynamic tool discovery for optimized tool selection.
  • Docker-based deployment for easy setup and management.

Usage with Different Platforms

VS Code


{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "github_token",
        "description": "GitHub Personal Access Token",
        "password": true
      }
    ],
    "servers": {
      "github": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "GITHUB_PERSONAL_ACCESS_TOKEN",
          "ghcr.io/github/github-mcp-server"
        ],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
        }
      }
    }
  }
}

Claude Desktop


{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

Build from source

JSON
{
  "mcp": {
    "servers": {
      "github": {
        "command": "/path/to/github-mcp-server",
        "args": ["stdio"],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
        }
      }
    }
  }
}