GitHub MCP Server

v2.2.0
io.github.sumirati/mcp-github Checked 16 hours ago Published 1 month ago

Developer-ready GitHub MCP server with 5-tool hybrid architecture and dynamic discovery.

Values you need

VariableWhat it is
GITHUB_PERSONAL_ACCESS_TOKENrequired secret GitHub Personal Access Token (classic or fine-grained)
GITHUB_API_URLoptional GitHub API URL (defaults to https://api.github.com) Default: https://api.github.com
GITHUB_READ_ONLYoptional Enable 3-tier read-only safety mode (true/false) Default: false
GITHUB_EXPOSE_ALL_TOOLSoptional Set to 'true' to expose all 83 tools directly instead of the 5-tool hybrid discovery mode Default: false
MCP_OUTPUT_FORMAToptional Default output format for tool responses ('markdown' or 'json') Default: markdown

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-github -e 'GITHUB_PERSONAL_ACCESS_TOKEN=<GITHUB_PERSONAL_ACCESS_TOKEN>' -- npx -y @sumirati/mcp-github@2.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-github": {
      "args": [
        "-y",
        "@sumirati/mcp-github@2.2.0"
      ],
      "command": "npx",
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-github": {
      "args": [
        "-y",
        "@sumirati/mcp-github@2.2.0"
      ],
      "command": "npx",
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<GITHUB_PERSONAL_ACCESS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GITHUB_PERSONAL_ACCESS_TOKEN",
      "id": "github-personal-access-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-github": {
      "args": [
        "-y",
        "@sumirati/mcp-github@2.2.0"
      ],
      "command": "npx",
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-personal-access-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-github]
command = "npx"
args = ["-y", "@sumirati/mcp-github@2.2.0"]
env = { "GITHUB_PERSONAL_ACCESS_TOKEN" = "<GITHUB_PERSONAL_ACCESS_TOKEN>" }

For AI agents

  1. Ask the user for: GITHUB_PERSONAL_ACCESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: github_find_actions, github_execute_action, get_file_contents, get_repository, get_commit.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json