GitHub Official Remote MCP Server

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.15 toolsยทOnline232msยท30d uptime: 100%ยทLast checked 18m ago

The official remote MCP server from GitHub, exposing the repository, issue and pull-request toolset used by GitHub Copilot. Sign in with your GitHub account over OAuth 2.1 โ€” no token management or local install required.

https://api.githubcopilot.com/mcp/
Provider
GitHub โ†—
Source
https://github.com/github/github-mcp-server โ†—
Categories
๐Ÿ› ๏ธ Developer Tools & Git
ไธญๆ–‡็ฎ€ไป‹

GitHub ๅฎ˜ๆ–น่ฟœ็จ‹ MCP ๆœๅŠกๅ™จ๏ผŒๆ‰˜็ฎกไบŽ api.githubcopilot.comใ€‚่ฎฉ AI ไปฃ็†็›ดๆŽฅๆœ็ดขไป“ๅบ“ใ€่ฏปๅ–ๆ–‡ไปถๅ†…ๅฎนใ€็ฎก็† Issue ๅนถๅˆ›ๅปบ Pull Requestใ€‚

Streamable HTTPhttps://api.githubcopilot.com/mcp/
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}

๐Ÿงฐ Tools exposed by GitHub MCP (5)

ToolSafetyDescriptionParameters
search_repositories๐ŸŸข ReadSearch GitHub repositories by keyword, language and qualifiers.query*: string
get_file_contents๐ŸŸข ReadRead the contents of a file or directory from a GitHub repository.owner*: stringrepo*: stringpath*: stringref: string
create_pull_request๐ŸŸ  WriteCreate a new pull request in a GitHub repository.owner*: stringrepo*: stringtitle*: stringhead*: stringbase*: stringbody: string
list_issues๐ŸŸข ReadList issues in a repository with optional state and label filters.owner*: stringrepo*: stringstate: stringlabels: array
create_issue๐ŸŸ  WriteOpen a new issue in a GitHub repository.owner*: stringrepo*: stringtitle*: stringbody: stringlabels: array

๐Ÿ” OAuth 2.1 & Security

Auth type
OAuth 2.1
Dynamic Client Registration
โœ… Supported
PKCE S256
โœ… Supported
Scopes
reporead:orgread:userworkflow
Protected resource metadata
https://api.githubcopilot.com/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– Guide

GitHub MCP โ€” Remote MCP Server

GitHub's remote MCP is the same backend that powers Copilot's repository tools in VS Code, so coverage is broad: repository search, file contents, issues, pull requests and more. Because it is hosted by GitHub you do not need to run the open-source github-mcp-server binary locally, generate a PAT, or manage scopes yourself โ€” the OAuth 2.1 consent screen handles authorization.

Endpoint & Transport

  • Endpoint URL: https://api.githubcopilot.com/mcp/
  • Transport: Streamable HTTP

Authentication

GitHub MCP uses OAuth 2.1 โ€” the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow โ€” PKCE and Dynamic Client Registration, so no manual client setup is needed โ€” and simply open a browser consent screen.

Available Tools (5)

Tool Safety Description
search_repositories read Search GitHub repositories by keyword, language and qualifiers.
get_file_contents read Read the contents of a file or directory from a GitHub repository.
create_pull_request write Create a new pull request in a GitHub repository.
list_issues read List issues in a repository with optional state and label filters.
create_issue write Open a new issue in a GitHub repository.

Connect in 30 Seconds

Claude Code โ€” one command:

claude mcp add --transport http github https://api.githubcopilot.com/mcp/

Cursor โ€” add to ~/.cursor/mcp.json:

{ "mcpServers": { "github": { "url": "https://api.githubcopilot.com/mcp/" } } }

VS Code โ€” add to .vscode/mcp.json:

{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } }

Claude Desktop & stdio clients โ€” bridge with mcp-remote:

{ "mcpServers": { "github": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.githubcopilot.com/mcp/"] } } }

On first connect your client opens a browser OAuth consent screen โ€” approve it and tools become available immediately.

Troubleshooting

  • 401 Unauthorized on connect โ€” that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact WWW-Authenticate challenge.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • Requires a GitHub account; a Copilot subscription is not required for the public preview endpoint.
  • Toolsets can be restricted by passing a custom configuration if you only want read-only repository access.

๐Ÿš€ How to Connect

  1. Copy the GitHub MCP endpoint URL
    The remote endpoint is https://api.githubcopilot.com/mcp/.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http github https://api.githubcopilot.com/mcp/. Cursor: add "github": { "url": "https://api.githubcopilot.com/mcp/" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Complete the OAuth consent
    On first connection your client opens a GitHub consent screen in the browser. Approve it to grant access; the token is stored by the client and refreshed automatically.
  4. Verify with the online inspector
    Paste https://api.githubcopilot.com/mcp/ into remotemcp.net/inspector, run initialize and tools/list, and confirm GitHub MCP's 5 tools respond.

โ“ FAQ

What is the GitHub MCP remote MCP endpoint?

The primary endpoint is https://api.githubcopilot.com/mcp/. It is an official first-party server operated by GitHub, speaking the Streamable HTTP transport.

How do I authenticate with GitHub MCP?

GitHub MCP uses OAuth 2.1. When your client first connects it receives a 401 challenge, discovers the authorization server via RFC 9728 metadata, and opens a browser consent screen. Dynamic Client Registration is supported, so compliant clients register themselves automatically.

I'm getting a 401 Unauthorized from GitHub MCP โ€” what's wrong?

A 401 means your client hasn't completed (or has lost) the OAuth authorization. Remove and re-add the server in your client to restart the consent flow, and check that your browser session can reach the provider's login page. If the 401 arrives without a WWW-Authenticate header, run it through our OAuth debugger to see what's missing.

Which MCP clients work with GitHub MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http github https://api.githubcopilot.com/mcp/`), VS Code Copilot, ChatGPT connectors, Windsurf, and Claude Desktop via the `mcp-remote` bridge.

What tools does GitHub MCP expose?

5 tools are cataloged in this directory โ€” including `search_repositories`, `get_file_contents`, `create_pull_request` and more. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

GitHub MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/github.svg)](https://remotemcp.net/servers/github)
GitHub MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/github.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F)

Related Servers

Linear MCPLinear Orbit Inc.

Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.

https://mcp.linear.app/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.14 toolsOnline7ms
DeepWiki MCPCognition AI (Devin)

Cognition Devin's free DeepWiki MCP. Ask questions and read AI-generated wiki documentation for any public GitHub repository โ€” no auth required.

https://mcp.deepwiki.com/mcp
๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedHTTP + SSEPublic ยท No Auth3 toolsOnline73ms

Upstash Context7's free, no-auth MCP server. Fetches up-to-date, version-specific library documentation straight into your agent's context.

https://mcp.context7.com/mcp
๐Ÿง‘โ€๐Ÿ’ป Communityโœ“ VerifiedStreamable HTTPPublic ยท No Auth2 toolsOnline310ms

Sentry's hosted MCP server for error monitoring. Agents can inspect issues, search events and resolve regressions directly from your IDE.

https://mcp.sentry.dev/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.14 toolsOnline62ms