Skip to main content
Glama
README.md
# github-mcp

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

Auto-generated from [GitHub's OpenAPI spec](https://github.com/github/rest-api-description) using a code generator that produces typed tool definitions with Zod validation.

## Installation

```bash
npm install github-rest-mcp
```

Or from GitHub Packages:

```bash
npm install @eyalm321/github-mcp
```

## Configuration

Set your GitHub Personal Access Token:

```bash
export GITHUB_TOKEN=ghp_your_token_here
```

### Category Filter

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

```bash
export GITHUB_MCP_CATEGORIES=repos,issues,pulls,actions
```

### Claude Desktop

Add to your `claude_desktop_config.json`:

```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

| Category | Tools | Category | Tools |
|----------|-------|----------|-------|
| actions | 184 | activity | 32 |
| agent-tasks | 5 | apps | 37 |
| billing | 10 | campaigns | 5 |
| checks | 12 | classroom | 6 |
| code-scanning | 21 | code-security | 20 |
| codes-of-conduct | 2 | codespaces | 48 |
| copilot | 25 | credentials | 1 |
| dependabot | 22 | dependency-graph | 3 |
| emojis | 1 | enterprise-team-memberships | 6 |
| enterprise-team-organizations | 6 | enterprise-teams | 5 |
| gists | 20 | git | 13 |
| gitignore | 2 | hosted-compute | 6 |
| interactions | 9 | issues | 55 |
| licenses | 3 | markdown | 2 |
| meta | 5 | migrations | 22 |
| oidc | 8 | orgs | 108 |
| packages | 27 | private-registries | 6 |
| projects | 26 | pulls | 27 |
| rate-limit | 1 | reactions | 15 |
| repos | 201 | search | 7 |
| secret-scanning | 9 | security-advisories | 10 |
| teams | 32 | users | 47 |

## 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

```bash
# 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:

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

# Regenerate
npm run generate
```

## License

MIT

TDQS

C2.3/5.0

Scored across 1112 tools

Disambiguation2/5

Despite domain prefixes, there are many near-duplicate tools that an agent cannot readily distinguish: `github_issues_check_user_can_be_assigned_to_issue` vs `github_issues_check_user_can_be_assigned`, entire `_legacy` mirrors of every team tool, `_stubbed` variants of apps plans/subscriptions, and identically-described secret tools repeated under actions, codespaces, and dependabot namespaces. With 1112 tools, boundaries between org/repo/enterprise scopes and legacy/current endpoints are frequently unstated in the names.

Naming Consistency3/5

There is a recognizable `github_<domain>_<verb>_<noun>` convention that holds across most of the surface, which is impressive at this scale. But it breaks down in places: `github_campaigns_get_campaign_summary` actually gets a campaign, `github_meta_root` vs `github_meta_get`, mixed repo/repository and org/organization abbreviations, and `_legacy`/`_stubbed` suffixes used as the only differentiator.

Tool Count1/5

1112 tools is an extreme mismatch for any usable MCP surface; this is a 1:1 dump of the GitHub REST API rather than a curated tool set. Discovery, selection accuracy, and context cost are all severely degraded, and the vast majority of tools are irrelevant to typical workflows.

Completeness5/5

Coverage is essentially exhaustive: full CRUD across repos, issues, PRs, actions, secrets, orgs, teams, gists, packages, code scanning, and more, with no obvious lifecycle gaps. If anything it over-covers, including deprecated/legacy and stubbed endpoints.

Maintenance

ActivityNo data
ResponsivenessOutdated data