Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.03 KB

File metadata and controls

37 lines (30 loc) · 1.03 KB

GitHub

Connect to the GitHub REST API to manage repositories, issues, pull requests, actions, and more.

Prerequisites

Configuration

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "anyapi-mcp-server",
        "--name", "github",
        "--spec", "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json",
        "--base-url", "https://api.github.com",
        "--header", "Authorization: Bearer ${GITHUB_TOKEN}"
      ],
      "env": {
        "GITHUB_TOKEN": "your-personal-access-token"
      }
    }
  }
}

Notes

  • The GitHub OpenAPI spec is very large. It will be fetched once and cached locally.
  • Fine-grained tokens let you scope access to specific repositories and permissions.
  • For GitHub Enterprise, replace api.github.com with your instance's API URL.