# github/github-mcp-server [Official] [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/github/github-mcp-server  
**GitHub Stars:** 34697  
**Views:** 17  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/github-github-mcp-server

## Description
Official GitHub server for integration with repository management, PRs, issues, and more.

## Tools
Capabilities this server exposes over MCP:

- **get_file_contents**
- **getFileContents**

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "github-mcp-server": {
    "url": "https://api.githubcopilot.com/mcp"
  }
}
```

## Documentation

## What github/github-mcp-server does

github/github-mcp-server connects AI assistants and agent hosts with GitHub data and operations through the Model Context Protocol. Its documented use cases cover repository browsing, code and file lookup, issue and pull request work, GitHub Actions monitoring, release information, security findings, Dependabot alerts, discussions, notifications, and team activity.

The cataloged tools are `get_file_contents` and `getFileContents`, both focused on retrieving files from repositories. This makes the server particularly relevant when an agent needs source-code context from GitHub before answering questions or carrying out a development task.

## How it works

GitHub hosts a remote MCP service at `https://api.githubcopilot.com/mcp`. An MCP-compatible client connects to that HTTP endpoint and authenticates with either OAuth or a GitHub personal access token, depending on the host configuration. Remote access requires a compatible MCP host and any applicable organization or repository policies.

A local version is also available for MCP hosts that cannot connect to remote servers. The project supports configuration of toolsets, allowing hosts to control which groups of capabilities are available. An insiders mode provides early access to experimental tools and features.

## Setup and configuration

Remote setup can be performed through a client’s MCP configuration. For example, an HTTP server entry can point to `https://api.githubcopilot.com/mcp`; a PAT-based configuration adds an `Authorization: Bearer` header. OAuth requires the host application to configure a GitHub App or OAuth App, while PAT authentication is supported by remote MCP hosts that accept custom authorization headers.

VS Code remote MCP support requires version 1.101 or later. The project also provides installation guidance for Claude Desktop, Claude Code, Cursor, Windsurf, Codex, Zed, JetBrains IDEs, and other GitHub Copilot environments. GitHub Enterprise Cloud with data residency can use a corresponding enterprise endpoint. GitHub Enterprise Server requires the local server instead of remote hosting.

## Tools and capabilities

- `get_file_contents` for reading repository files through MCP.
- `getFileContents` as an alternate file-content tool name.
- Repository and code context for agents working across accessible GitHub repositories.
- Configuration of default or selected toolsets.
- OAuth or GitHub personal access token authentication for remote connections.
- Local deployment when a host does not support remote MCP servers.

The broader project documentation describes workflows involving issues, pull requests, Actions, releases, security information, discussions, and notifications; available operations depend on the configured toolsets and client connection.

## Limitations and notes

Remote use depends on MCP host support, authentication configuration, and applicable GitHub policies. Host applications differ in how they configure OAuth and PAT access. GitHub Enterprise Server is not supported by the hosted remote service, so it must use the local server path. Go consumers should import the module using the `github.com/github/github-mcp-server/v2` module path.

_Full upstream README: https://allmcps.com/mcp/github-github-mcp-server/readme_

