GitHub MCP Server
Repository, issue, pull request, and code search operations through GitHub's official MCP server.
Overview
GitHub's official MCP server exposes repository, issue, pull request, code search, and related workflows to MCP clients. GitHub documents a hosted remote endpoint as well as a local server distribution. Access is controlled by the credentials supplied to it; use fine-grained tokens and the narrowest repository scope that supports the task.
Capabilities
- Code search
- Issue management
- Pull request inspection
- Repository metadata
- File content
Connection profile
- Transports
- stdio, Streamable HTTP
- Authentication
- Personal access token; OAuth via hosted endpoint
- License
- MIT
- Vendor
- GitHub
- Repository
- github.com/github/github-mcp-server
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
https://api.githubcopilot.com/mcp/
Security notes
- The server can read and modify repositories according to its token scopes. Use a fine-grained token limited to the required repositories.
- The hosted endpoint authenticates with GitHub credentials; review the OAuth grant before approving it.
- Write operations such as issue comments and pull request changes should be reviewed in a test repository first.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Used in these workflows
Use GitHub for PR context, a local Git server for the diff and history, and a scoped filesystem server for surrounding code before writing a review.
WorkflowTriage GitHub issues into a reviewed action planSearch and classify open issues, gather repository context, and produce a triage plan without letting the agent silently mutate the tracker.
WorkflowTurn a merged change into reviewed documentationRead the merged PR and local docs, draft an update, and verify links before publishing to the documentation system.
WorkflowPrepare an access review packet across enterprise systemsGather repository, project, and wiki permissions into a review packet that distinguishes verified facts from gaps.
WorkflowRun a repeatable browser QA passDrive the site with Playwright, debug failures with Chrome DevTools, and record evidence for each finding.
Related failure modes
Codex reads MCP servers from TOML tables such as [mcp_servers.name]. A parse error usually comes from invalid table syntax, duplicate keys, a value of the wrong type, or a nested table declared in an invalid order.
MCP server exited unexpectedly after launchThe process started but terminated before or during initialization. The root cause can be a missing dependency, invalid arguments, a crash in the server, a port conflict, or a client that closes stdin.
MCP client cannot connect: connection refusedA TCP connection was attempted to a host and port where nothing is listening, or the listener is bound to a different interface. For local servers this usually means the server is not running or the URL uses the wrong port; for remote servers it can be a deployment or network problem.
Remote MCP server returns HTTP 404The client reached the host but not a valid MCP endpoint. A 404 usually means the URL path is wrong, the endpoint moved, or the client is using a different endpoint convention than the server implements.
Remote MCP server returns HTTP 401 UnauthorizedThe remote server did not receive valid credentials. A 401 is an authentication result, not proof that the URL is wrong. The fix is to identify which credential the endpoint expects and whether the client actually attached it.
Sources & evidence
- github.com/github/github-mcp-serverRepository · checked Oct 23, 2026 · documented
GitHub's official repository documents the server, its hosted remote endpoint, local distribution, toolsets, and authentication.