MCP server

GitHub MCP

Set up GitHub MCP in Claude Code for repository, issue and pull-request review. Verify the hosted connection, repository access and read-only settings separately.

gitmcpproductivity
View original source ↗

When to choose it

Use GitHub MCP to read a pull request’s actual revisions, changed files and reported checks without switching between tabs.

Choose it if: You need GitHub-hosted review context for a specific repository and can verify which tools and repositories the connection can access.

Look elsewhere if: The task only involves your local checkout, or your organization has not approved this connection for the repository. Start with local Git or your existing approved workflow.

What the source describes

  • The Claude Code marketplace wrapper points at GitHub’s hosted HTTP endpoint. It does not start Docker or a local GitHub MCP binary.
  • Repository, issue and pull-request context depends on enabled tools and the authenticated identity’s access.
  • GitHub’s separate configuration supports read-only mode and tool selection. The marketplace wrapper sets neither by default.

Requirements

  • Claude Code with the marketplace integration available and an existing approved GITHUB_PERSONAL_ACCESS_TOKEN in the environment that launches Claude.
  • Network access to GitHub’s hosted endpoint plus authorization for the intended repository. The wrapper does not use a GitHub CLI login as a substitute.

Install for this repository only

  1. Choose the hosted wrapper intentionally. This package connects over HTTP to GitHub’s hosted MCP service. Instructions for a Docker or OAuth-based setup are for other connection paths, not evidence that this wrapper uses them.
  2. Confirm the credential source without printing it. The marketplace wrapper reads an environment variable with this exact name. Use the existing approved credential setup; do not paste the token into prompts, commands, screenshots or project configuration.
    Configuration example
    {
      "github": {
        "type": "http",
        "url": "https://api.githubcopilot.com/mcp/",
        "headers": {
          "Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
        }
      }
    }
  3. Verify the actual read-only policy. The marketplace wrapper does not set a read-only filter. GitHub documents X-MCP-Readonly and the /readonly endpoint separately. In an approved configuration, check that the connected server actually omits write tools. Toolsets and individual exclusions are not substitutes for read-only mode.
  4. Read one known pull request. In /mcp confirm the connection, then use a repository you already have permission to read. Compare the PR returned by the server with the one you already know: repository, PR number, base and head. Do not use a write to test access.

Run the installation command in your shell after reviewing the source. Local scope enables the package for you in this repository. It does not enable it for every collaborator.

Shell • local install scope
claude plugin install github@claude-plugins-official --scope local
Installation and loading troubleshooting

How to use it

Inspect the plugin-provided GitHub server and discovered tools. The names depend on the installed client/server context; this package does not define a /github slash command.

Claude Code command
/mcp

An original natural-language read task. It does not configure server-side read-only mode or authorize a later write.

Repository inspection request
Use the installed GitHub MCP tools to read the exact repository and pull request I identify, then summarize the resolved base/head and changed files without posting or editing.

An original inspection example for an already-authorized repository and connection; it creates no credentials or verified permission boundary. This request example is written by ClaudeStack; it is not a transcript of a tested session.

Request example
Use the installed GitHub MCP server’s available read tools to inspect the specific repository and PR URL I provide. Resolve its base and head commits, summarize changed files and existing checks, and link the source evidence. Report any missing repository access or read-only/toolset configuration. Do not post comments, create or edit issues/PRs, update files, merge, trigger workflows or request broader credentials.

The endpoint is GitHub-hosted. Neither a public source commit nor an API response establishes the hosted server version.

Source checked November 30, 2026. ClaudeStack did not connect an account, query a repository using this server or execute a write.

What to expect

The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.

  • A successful first read should identify the correct owner/repository, PR number and base/head revisions. Compare the changed-file list with GitHub; show unavailable checks as unavailable, not passing.
  • An explicitly read-only connection should omit write tools. An authenticated read on one repository does not establish access to other repositories or permissions to edit the first one.

Self-check: Use one known PR and compare its identity, revisions and files to the GitHub page. If Claude lists the server but cannot read the PR, check the exact repository and current access rather than increasing token privileges by default.

Troubleshooting

The server fails despite being signed into GitHub CLI

The wrapper’s header references GITHUB_PERSONAL_ACCESS_TOKEN, not the CLI’s credential store. Verify the existing approved launch environment and exact variable name without printing the value. Configuration registration can succeed with a placeholder while authentication fails later.

OAuth instructions seem different from the wrapper

GitHub documents other client and local-server authentication paths. This specific wrapper uses a Bearer environment-variable header. Do not infer that a separate OAuth/Docker recipe is active, and avoid adding a second server registration for the same purpose.

Write tools appear in a supposed read-only review

The source wrapper has neither the author’s X-MCP-Readonly header nor a /readonly endpoint. A read-only prompt is not a server configuration. Inspect the actual installed policy/filter and intended tool list instead of assuming that naming a review task removes write capabilities.

A tool is visible but the API rejects the action

Compare the requested repository/action with existing token access, role and organization policy. The author describes different scope-filter behavior by token type and notes that API permissions remain authoritative. Do not broaden access merely to suppress a 401/403 or reproduce a displayed tool.

A configured toolset or tool is missing

GitHub documents that unknown toolsets can be ignored, while invalid explicit tool names can prevent startup. Use the current author inventory and actual client status; a remembered tool name is not evidence that the running service exposes it.

A comment or PR operation has an uncertain result

Read the actual target state before repeating the call. Network failure or a lost response does not establish that no write occurred. Keep the target URL, revision and intended operation explicit to avoid duplicate posts or changes.

An explicitly enabled tool is still missing

Check the existing exclusion list as well as the selected toolsets. GitHub documents that X-MCP-Exclude-Tools takes precedence over both toolset selection and X-MCP-Tools. Read-only mode also removes write tools even when explicitly selected. Do not infer a credential failure or broaden permissions before checking these filters.

Disable or remove it

  • Toggle the installed GitHub server off in /mcp or disable/uninstall the github plugin in its enabled scope, then follow the activation instruction. Avoid registering another manual server as a workaround.
  • Disabling the connection does not revoke an existing token or undo GitHub comments, files, PRs or other writes. Manage those deliberately through the repository/account’s existing controls.

Limitations & considerations

  • A listed tool is not proof that the underlying API request is authorized. Token access, repository roles and organization policy still apply.
  • Disabling PR creation and merge tools alone does not prevent other writes, such as posting a review. Select and verify explicit read-only mode if writes must be unavailable.
  • The marketplace wrapper and open-source server are distinct review subjects. The public source revision does not reveal the software version deployed on GitHub’s hosted endpoint.

Source & review record

Our description is based on public documentation and manifests available on 2026-11-30. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.

Usage guide sources

Upstream revision checked for this guide: 0fbfda5a91f4adc311daca25acc99132f40f0b6e. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.

More mcp servers

Browse this type
MCP server

Context7

Look up version-specific library documentation through Upstash’s hosted MCP service.

UpstashThird-party
MCP server

Playwright MCP

Microsoft’s browser tools, packaged as a Claude Code marketplace integration.

MicrosoftThird-party

Each listing records its own source-review date. Listings are documentation reviews, not runtime tests or security audits. Our editorial method