Home

Claude Code and GitHub's MCP Server

I
IF-LOOP (@if-loop)
January 5, 2026
Warning

This article is outdated. Please refer to the Claude Code documentation.

Claude can speak GitHub’s language natively through the Model Context Protocol (MCP). Once the link is in place, you can use natural-language prompts to search repos, file issues, review PRs, or everything else the GitHub API exposes.

You can connect Claude and the Remote GitHub MCP Server by providing a Personal Access Token (PAT):

export GITHUB_TOKEN=<your-PAT>

claude mcp add github https://api.githubcopilot.com/mcp/ \
    --header "Authorization: Bearer $GITHUB_TOKEN" \
    --transport http