GitHub Official Remote MCP Server
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.
- Provider
- GitHub โ
- Source
- https://github.com/github/github-mcp-server โ
- Categories
- ๐ ๏ธ Developer Tools & Git
ไธญๆ็ฎไป
GitHub ๅฎๆน่ฟ็จ MCP ๆๅกๅจ๏ผๆ็ฎกไบ api.githubcopilot.comใ่ฎฉ AI ไปฃ็็ดๆฅๆ็ดขไปๅบใ่ฏปๅๆไปถๅ ๅฎนใ็ฎก็ Issue ๅนถๅๅปบ Pull Requestใ
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/"
}
}
}claude mcp add --transport http github https://api.githubcopilot.com/mcp/
Or add to .vscode/mcp.json:
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://api.githubcopilot.com/mcp/ - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.githubcopilot.com/mcp/"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"github": {
"serverUrl": "https://api.githubcopilot.com/mcp/"
}
}
}๐งฐ Tools exposed by GitHub MCP (5)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| search_repositories | ๐ข Read | Search GitHub repositories by keyword, language and qualifiers. | query*: string |
| get_file_contents | ๐ข Read | Read the contents of a file or directory from a GitHub repository. | owner*: stringrepo*: stringpath*: stringref: string |
| create_pull_request | ๐ Write | Create a new pull request in a GitHub repository. | owner*: stringrepo*: stringtitle*: stringhead*: stringbase*: stringbody: string |
| list_issues | ๐ข Read | List issues in a repository with optional state and label filters. | owner*: stringrepo*: stringstate: stringlabels: array |
| create_issue | ๐ Write | Open 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)
๐งฉ 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-Authenticatechallenge. - "Session expired" / stale
Mcp-Session-Idโ just re-sendinitialize; 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
- Copy the GitHub MCP endpoint URLThe remote endpoint is https://api.githubcopilot.com/mcp/.
- Add it to your MCP clientClaude Code:
claude mcp add --transport http github https://api.githubcopilot.com/mcp/. Cursor: add"github": { "url": "https://api.githubcopilot.com/mcp/" }undermcpServersin ~/.cursor/mcp.json. Other clients work similarly. - Complete the OAuth consentOn 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.
- Verify with the online inspectorPaste 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
Related Servers
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Cognition Devin's free DeepWiki MCP. Ask questions and read AI-generated wiki documentation for any public GitHub repository โ no auth required.
Upstash Context7's free, no-auth MCP server. Fetches up-to-date, version-specific library documentation straight into your agent's context.
Sentry's hosted MCP server for error monitoring. Agents can inspect issues, search events and resolve regressions directly from your IDE.