MCP Hub
Back to servers

github-mcp

An MCP server providing 1,112 tools for the GitHub REST API across all 44 API categories. It enables comprehensive GitHub operations through Claude with typed validation and category filtering.

glama
Updated
Apr 13, 2026

github-mcp

MCP server for the GitHub REST API — 1,112 tools covering all 44 API categories.

Auto-generated from GitHub's OpenAPI spec using a code generator that produces typed tool definitions with Zod validation.

Installation

npm install github-rest-mcp

Or from GitHub Packages:

npm install @eyalm321/github-mcp

Configuration

Set your GitHub Personal Access Token:

export GITHUB_TOKEN=ghp_your_token_here

Category Filter

By default all 1,112 tools are registered. To enable only specific categories:

export GITHUB_MCP_CATEGORIES=repos,issues,pulls,actions

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "github-rest-mcp"],
      "env": {
        "GITHUB_TOKEN": "ghp_your_token_here",
        "GITHUB_MCP_CATEGORIES": "repos,issues,pulls,actions,users,orgs,git,search"
      }
    }
  }
}

API Categories

CategoryToolsCategoryTools
actions184activity32
agent-tasks5apps37
billing10campaigns5
checks12classroom6
code-scanning21code-security20
codes-of-conduct2codespaces48
copilot25credentials1
dependabot22dependency-graph3
emojis1enterprise-team-memberships6
enterprise-team-organizations6enterprise-teams5
gists20git13
gitignore2hosted-compute6
interactions9issues55
licenses3markdown2
meta5migrations22
oidc8orgs108
packages27private-registries6
projects26pulls27
rate-limit1reactions15
repos201search7
secret-scanning9security-advisories10
teams32users47

Tool Naming

Tools follow the pattern github_{category}_{action}, derived from GitHub's operation IDs:

  • github_repos_get — Get a repository
  • github_issues_create — Create an issue
  • github_pulls_list — List pull requests
  • github_actions_list_workflow_runs — List workflow runs

Development

# Install dependencies
npm install

# Regenerate tools from OpenAPI spec
npm run generate

# Build
npm run build

# Run tests
npm test

# Start the server
npm start

Regenerating Tools

The tool files in src/tools/ are auto-generated from GitHub's OpenAPI spec. To update:

# Delete cached spec to force re-download
rm -f api-description.json

# Regenerate
npm run generate

License

MIT

Reviews

No reviews yet

Sign in to write a review