Skip to content

GitHub MCP (remote)

GitHub's hosted MCP server. Agents read code, issues and pull requests and open PRs with nothing to run on your machine, connecting with a personal access token.

MCP serverCode and QAWorks through the Grid

Hosted server

A hosted MCP server; you connect with an access token.
https://api.githubcopilot.com/mcp/

Create a fine-grained personal access token with only the repositories and permissions you need, and set it as GITHUB_PERSONAL_ACCESS_TOKEN in your environment. For read-only tools, end the URL with /readonly. GitHub Enterprise Server doesn't support the hosted server.

Set it up in your agent

Pick your agent and copy the setup. ExonUI remembers your choice on other pages.
  1. Add it from the terminal

    Run this in your project folder. It saves the server for you, in this project only.

    Terminal
    claude mcp add --transport http github-remote https://api.githubcopilot.com/mcp/ --header 'Authorization: Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}'
  2. Or share it with your team

    Add this to .mcp.json at the project root and commit it. Teammates approve it the first time Claude Code starts.

    .mcp.json
    {
      "mcpServers": {
        "github-remote": {
          "type": "http",
          "url": "https://api.githubcopilot.com/mcp/",
          "headers": {
            "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
          }
        }
      }
    }
Good to know
  • Set GITHUB_PERSONAL_ACCESS_TOKEN in your environment before you start Claude Code. It reads the value each time it connects, so the token stays out of the config.

Check it works

Terminal
claude mcp list

Start a session and run /mcp to see the server, its status and its tools.