GitHub Personal Access Token with repository access permissions
Add GitHub Remote MCP server to Claude Code
Set your token in the Authorization header
The MCP server name should be "github"
$ GITHUB_PAT=github_pat_*** \
claude mcp add --transport http github https://api.githubcopilot.com/mcp -H " Authorization: Bearer $GITHUB_PAT "
Added HTTP MCP server github with URL: https://api.githubcopilot.com/mcp to local config
Headers: {
"Authorization": "Bearer github_pat_***"
}
$ claude
...
> /mcp
※ Tip: Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Manage MCP servers │
│ │
│ ❯ 1. github ✔ connected · Enter to view details │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Esc to exit