Tool Combos

GitHub MCP server + Claude: read issues, pull requests and code by chatting

GitHub's official MCP server lets Claude work with your repositories directly: list and summarise issues, read pull requests, search code and, if you allow it, create issues or comments. This page covers what you get, the cost and the safest way to connect it.

By AI RightFitChecked Official sources listed below

At a glance

What you getChat answers and actions based on your live GitHub data
Typical costFree, MIT-licensed server + your Claude plan
Skill levelBeginner to intermediate
Runs onGitHub-hosted (remote) or Docker on your computer

What you get

MCP (Model Context Protocol) is a standard way to give an AI app access to outside tools. GitHub's own MCP server connects AI tools to GitHub, so Claude can read repositories, manage issues and pull requests, analyse code and automate workflows on your behalf.

Typical requests once it is connected:

  • "Summarise the open issues labelled bug in my repo and group them by area."
  • "Read pull request 42 and list anything that looks risky."
  • "Which issues mention the login page, and are any of them duplicates?"

The output is a chat answer grounded in your real repository data, plus actions such as creating an issue if you enable write tools.

What it costs

The server's repository is public and MIT-licensed, and the Docker image is public. GitHub's page does not state a price for the hosted server, so check your GitHub plan if you use it heavily. On the Claude side you need an app that supports MCP: Claude Code and Claude Desktop both have install guides in GitHub's README. Our Claude record lists a Free plan, Pro at $20 a month and Max from $100.

Set it up in Claude Code

Claude Code's MCP docs give this example for GitHub's hosted server:

claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
  --header "Authorization: Bearer YOUR_GITHUB_PAT"
  1. Create a GitHub personal access token with only the access you need, and use it in place of YOUR_GITHUB_PAT. Claude Code saves the setting without checking the token, so a wrong token only shows up later.
  2. Run /mcp inside Claude Code. A working server shows a check mark; a bad token shows a cross and an error such as 401.
  3. Add --scope user to use it in every project, or --scope project to share it through the project's .mcp.json.

To run it on your own computer instead, GitHub publishes the Docker image ghcr.io/github/github-mcp-server. For Claude Desktop, follow the Claude install guide linked from GitHub's README.

Choose what Claude can do

The server groups its tools into toolsets. The defaults are context, repos, issues, pull_requests and users; others include actions. You can enable sets with --toolsets or single tools with --tools.

Start with read-only mode (--read-only on the local server). GitHub's README says read-only takes priority: write tools are skipped even if you request them. Turn on write access only when you have a specific job for it.

A first job to try

Start read-only and ask for something you would normally spend ten minutes clicking through:

List the open issues in my-org/my-repo that have had no reply for 14 days.
Group them by label and suggest which three to answer first.

Then open two or three of the issues yourself and check the answer against them. Once the summaries match what you see on GitHub, you can trust it with bigger questions, and decide whether it is worth turning on write tools at all.

Safety checks

  • Never paste a token into a chat message; put it only in the configuration.
  • Use a fine-grained token limited to the repositories you want Claude to see.
  • Content inside issues and pull requests is written by other people. Treat it as information, and be careful when Claude can also write, because a malicious issue could try to steer an AI's actions.
  • Revoke the token on GitHub when you stop using the setup.

Sources

Related records: Claude pricing record · Github Copilot pricing record

Setup steps and facts come from the official documentation linked on each page, checked on the date shown. We have not tested every combination on every computer; cost examples are illustrative.

Editorial policy · Report a mistake