Is the GitHub MCP server official?
Yes. It is built and maintained by GitHub in the `github/github-mcp-server` repository, and GitHub's own install guides point to it.
@github
Basic information
GitHub's official MCP Server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN"
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
The GitHub MCP server is GitHub's official Model Context Protocol server that lets AI agents read repositories and code, manage issues and pull requests, inspect GitHub Actions runs and review security alerts through natural language. It runs as a hosted remote server or locally in Docker.
It is maintained by GitHub in the open-source github/github-mcp-server repository under the MIT license. The hosted endpoint is https://api.githubcopilot.com/mcp/; the local version ships as the public image ghcr.io/github/github-mcp-server and as release binaries.
Pick one of two modes:
go build / downloaded from the releases page.Authentication is either GitHub OAuth (a browser flow; the token is kept in memory only) or a GitHub Personal Access Token in GITHUB_PERSONAL_ACCESS_TOKEN, which takes precedence over OAuth. Create a token at github.com/settings/personal-access-tokens/new and grant only the scopes you need.
Remote server (Claude Code 2.1.1 and newer), run in your terminal:
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
Local server with Docker and a PAT:
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
Restart Claude Code and run claude mcp list to confirm the server is configured.
GitHub's guide says the remote server's OAuth flow is not currently supported as a Claude Desktop custom connector, so use the local Docker setup in claude_desktop_config.json:
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT"
}
}
}
}
Cursor v0.48.0+ can use the hosted server. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project) and restart Cursor:
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
Use the one-click install button in the README, or add the remote server manually (VS Code 1.101+ handles OAuth for you), then toggle Agent mode in Copilot Chat:
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}
Edit ~/.codex/config.toml:
[mcp_servers.github]
url = "https://api.githubcopilot.com/mcp/"
bearer_token_env_var = "GITHUB_PAT_TOKEN"
Installation guides also exist for Copilot CLI, JetBrains, Visual Studio, Eclipse, Xcode, Windsurf, Zed, OpenCode, Gemini CLI and Rovo Dev CLI.
--toolsets or GITHUB_TOOLSETS (default: context, repos, issues, pull_requests, users; all enables everything).--tools / GITHUB_TOOLS, alone or combined with toolsets.--read-only or GITHUB_READ_ONLY=1) exposes only read tools.--lockdown-mode) filters public-repository content from authors without push access to reduce prompt-injection risk.--gh-host / GITHUB_HOST.Tools are grouped into toolsets that map to GitHub product areas:
get_me, get_teams and search_users tell the agent who it is acting as. GitHub calls context "strongly recommended".get_file_contents, search_code, list_commits, create_branch, create_or_update_file, push_files, fork_repository and get_repository_tree.list_issues, issue_read, issue_write, search_issues, create_pull_request, pull_request_read, pull_request_review_write and merge_pull_request cover triage, review and merging.actions_list, actions_get, actions_run_trigger and get_job_logs inspect and trigger workflow runs.list_code_scanning_alerts and list_dependabot_alerts.create_pull_request_with_copilot (Copilot coding agent), Copilot Spaces and github_support_docs_search.@modelcontextprotocol/server-github are no longer supported; GitHub's docs point users to ghcr.io/github/github-mcp-server. Community projects such as cyanheads/github-mcp-server are deprecated in favor of the official server too.docker logout ghcr.io and retry.claude mcp add-json returns "Invalid input" (reported on Windows): use the legacy claude mcp add --transport http github https://api.githubcopilot.com/mcp -H "Authorization: Bearer YOUR_GITHUB_PAT" form.--tools: tool names must match exactly (for example get_file_contents); an invalid name stops the server.--tools.Yes. It is built and maintained by GitHub in the `github/github-mcp-server` repository, and GitHub's own install guides point to it.
The server is open source under the MIT license, and the README lists no separate price for the hosted endpoint. You need a GitHub account, and organization policies can control whether the remote server is allowed.
`https://api.githubcopilot.com/mcp/`. GitHub Enterprise Cloud with data residency uses `https://copilot-api.<subdomain>.ghe.com/mcp`.
Not always. VS Code and the local server support OAuth login, but several hosts (for example Cursor and Claude Code's remote setup) use a PAT sent as a Bearer header. If both are set, `GITHUB_PERSONAL_ACCESS_TOKEN` takes precedence.
Yes. GitHub publishes setup guides for Claude Code, Claude Desktop, Cursor, VS Code, Codex, Windsurf, Zed and more.
Only through the local server. Set `GITHUB_HOST` (or `--gh-host`) to your `https://` hostname; the remote server does not support GitHub Enterprise Server.
Grant a token only the minimum scopes, run with `--read-only`, restrict toolsets with `--toolsets`, and turn on lockdown mode for public repositories. GitHub notes lockdown mode is a content filter, not an authorization boundary.
No. GitHub states that `@modelcontextprotocol/server-github` is no longer supported as of April 2025; use the official Docker image or the remote server.
Yuque mcp server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from https://github.com/nguyenvanduocit/all-in-one-model-context-protocol
a mcp server to manage github project's functionality
A Git MCP server for AI agents. STDIO & Streamable HTTP.
Node.js/TypeScript MCP server for Atlassian Jira. Equips AI systems (LLMs) with tools to list/get projects, search/get issues (using JQL/ID), and view dev info (commits, PRs). Connects AI capabilities directly into Jira project management and issue tracking workflows.
Comments