Skip to content

Connect GitHub MCP (remote) to Cline

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 serverOfficialChecked 2026-11-16

Before you start

  • Cline installed (see its MCP documentation (opens in a new tab)).
  • GitHub MCP (remote) is available on macOS, Windows, Linux and the web.
  • 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.
  1. Step 1: Add GitHub MCP (remote) to Cline

    Add it in your editor

    In Cline, open the MCP Servers panel, choose Configure, click Configure MCP Servers and add this to the file that opens.

    cline_mcp_settings.json
    {
      "mcpServers": {
        "github-remote": {
          "type": "streamableHttp",
          "url": "https://api.githubcopilot.com/mcp/",
          "headers": {
            "Authorization": "Bearer YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
          }
        }
      }
    }

    Or add it to the Cline CLI

    Saves the server to the Cline CLI's own settings. The editor extension keeps a separate list.

    Terminal
    cline mcp add github-remote https://api.githubcopilot.com/mcp/ --transport http --header "Authorization: Bearer $GITHUB_PERSONAL_ACCESS_TOKEN" --yes
    Good to know
    • Cline keeps header values in its settings file, which stays on your machine. Replace YOUR_GITHUB_PERSONAL_ACCESS_TOKEN with the token. The CLI command reads it from GITHUB_PERSONAL_ACCESS_TOKEN in your terminal.
  2. Step 2: Check it's connected

    Terminal
    cline config mcp

    In VS Code or JetBrains, open the MCP Servers panel in Cline and check the server is listed with its tools.

  3. Step 3: Try a first request

    Ask Cline something that only works with GitHub MCP (remote) connected:

    Say to Cline
    List the open issues in this repository that mention design and group them by label.

If it doesn't work

  • In the editor, open the MCP Servers panel, choose Configure and click Configure MCP Servers to edit cline_mcp_settings.json.
  • The Cline CLI keeps its own list in ~/.cline/data/settings/cline_mcp_settings.json, separate from the editor's.
  • Remote servers need "type": "streamableHttp". Without it, Cline falls back to the older SSE transport.