AugmentClaude
OfficialFeaturedMCP server · httpRequires credentials

🐙GitHub

By GitHub· 30,000

Read and write GitHub repos, issues, and pull requests straight from Claude.

What it does

GitHub's official MCP server, hosted at api.githubcopilot.com.

What it gives Claude:

  • Browse repositories, files, branches, and commits
  • Read, create, and comment on issues and pull requests
  • Search code across your repos
  • Inspect GitHub Actions runs and logs

Authenticated with a GitHub personal access token (PAT) passed as a Bearer header. The old @modelcontextprotocol/server-github npm package is deprecated — this hosted server is the current path. A self-hosted Docker binary (ghcr.io/github/github-mcp-server) is also available.

Installation

Before you start

Create a GitHub personal access token at github.com → Settings → Developer settings → Personal access tokens. Give it repo scope (add workflow if you want Actions access). Swap YOUR_GITHUB_PAT in the command for that token.

  1. Make sure Claude is on your device and in your terminal.

    MCP servers register with Claude Code via claude mcp add. You need Claude Code installed first:

    npm i -g @anthropic-ai/claude-code
  2. Note the server's URL.
    Server URL
    Sign up to copy

    Paste this into the next step's `claude mcp add` command.

  3. Configure credentials.

    Needs a GitHub personal access token (PAT) with `repo` scope, passed as a Bearer header.

  4. Restart Claude Code.

    Quit and reopen Claude Code so it picks up the new MCP registration. Run /mcp inside Claude Code to confirm the server is connected.

  5. Use it.

    Ask Claude naturally. It will call the server's tools when your request matches one. Tool calls show up inline so you can see exactly what Claude is doing.

Prefer to read the source first? Open on GitHub.