🐙GitHub
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
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.
- 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 - Note the server's URL.Server URLSign up to copy
Paste this into the next step's `claude mcp add` command.
- Configure credentials.
Needs a GitHub personal access token (PAT) with `repo` scope, passed as a Bearer header.
- Restart Claude Code.
Quit and reopen Claude Code so it picks up the new MCP registration. Run
/mcpinside Claude Code to confirm the server is connected. - 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.