MCP guide
GitHub MCP server
Yes, GitHub has an official MCP server: a remote one it hosts and a local one you run with Docker, both from the same repository. GitHub's documentation is written for developers. This guide is for the people who answer customers at a company whose engineers work in GitHub Issues: how to connect with only the issue tools, read-only if you like, and use it to check whether a bug is already filed, add a customer's report, write an issue worth reading and know when the fix is released.
Checked on November 28, 2026. Every command and config block below is copied from the linked source as it read that day; this area changes fast, so follow the link if something does not match.
Does GitHub have an official MCP server?
The remote GitHub MCP server is hosted by GitHub at https://api.githubcopilot.com/mcp/. The local one is the same code as a Docker image (ghcr.io/github/github-mcp-server) or a binary, talking to your client over stdio. Both are official, MIT-licensed and built from github/github-mcp-server.
What matters for a support team is that you do not have to take all of it. Tools come in toolsets (the default ones are context, repos, issues, pull_requests and users), each toolset has its own URL on the remote server, and adding /readonly to any URL leaves only the tools that read. https://api.githubcopilot.com/mcp/x/issues/readonly is the issue tools, read-only, and nothing else.
How you sign in depends on the client. An MCP host needs its own GitHub App or OAuth App to use OAuth with the remote server; any host that supports remote servers can use a personal access token instead. GitHub's guide for Claude Code and Cursor uses a token, and for Claude Desktop it says to use the local Docker server, which signs in with OAuth in your browser.
GitHub MCP servers that exist today
What we found and opened ourselves on November 28, 2026, with the page each row comes from.
| Server | How it connects | Sign-in | What it can do | Availability |
|---|---|---|---|---|
| Remote GitHub MCP server Official Maintained by GitHub. Source: github/github-mcp-server: Remote GitHub MCP Server (docs/remote-server.md) |
Remote (Streamable HTTP)
Endpoint: https://api.githubcopilot.com/mcp/
|
OAuth where the host application has a GitHub App or OAuth App registered for it; a personal access token in the Authorization header anywhere else. | Read and write by toolset, with what the signed-in account or token can do. Read-only with /readonly on the URL or the X-MCP-Readonly header. | Hosted by GitHub. Needs a host with remote server support and, in GitHub's words, any applicable policies enabled. |
| Local GitHub MCP server (Docker or binary) Official Maintained by GitHub. Source: github/github-mcp-server on GitHub (README) | Local (stdio) | OAuth in your browser on first use (on github.com the official image carries the app credentials, and the token is kept in memory only), or a personal access token, which takes precedence. | The same toolsets, chosen with GITHUB_TOOLSETS or --toolsets. Read-only with GITHUB_READ_ONLY=1 or --read-only. | Runs on your machine with Docker, or as a release binary. Also the route for GitHub Enterprise Server. MIT licence. 34812 GitHub stars, last commit on November 27, 2026. Latest release: v2.3.0, November 24, 2026. |
Set up the remote GitHub MCP server
You need a GitHub account that can see the repository where the issues live, and for the token route a personal access token. The commands below are GitHub's; the support-team variants after them only change the URL to one GitHub documents.
-
1Claude Code (version 2.1.1 and newer): run this in your terminal, not inside Claude Code, with your token in place of YOUR_GITHUB_PAT. Then restart Claude Code and run claude mcp list to check it is there.
Claude Codeclaude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'Source: github/github-mcp-server: Install GitHub MCP Server in Claude Applications
-
2Cursor (version 0.48.0 or later): use the install button in GitHub's guide or put this in ~/.cursor/mcp.json, then replace YOUR_GITHUB_PAT and restart Cursor. GitHub notes that Cursor supports OAuth for some MCP servers, but the GitHub server currently requires a personal access token there.
~/.cursor/mcp.json{ "mcpServers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } }Source: github/github-mcp-server: Install GitHub MCP Server in Cursor
-
3For a support team, connect to the issue tools only, read-only. GitHub documents one URL per toolset and the /readonly suffix, and gives this exact address as its example. This is the Cursor block above with that URL in it; we composed it.
~/.cursor/mcp.json, issues only, read-only{ "mcpServers": { "github-issues": { "url": "https://api.githubcopilot.com/mcp/x/issues/readonly", "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } -
4More than one toolset: a URL takes a single toolset, so to combine them GitHub gives headers instead. This is its example, which enables repos and issues read-only:
Headers{ "type": "http", "url": "https://api.githubcopilot.com/mcp/", "headers": { "X-MCP-Toolsets": "repos,issues", "X-MCP-Readonly": "true", "X-MCP-Lockdown": "false" } }Source: github/github-mcp-server: Remote GitHub MCP Server (docs/remote-server.md)
-
5Claude Desktop cannot use the remote server yet: GitHub's guide says it requires OAuth through a registered GitHub App or OAuth App, which Claude Desktop's custom connectors do not currently support, and tells you to use the local Docker setup below. GitHub has install guides for Codex, Windsurf, Zed and others in the same folder; we did not open them for this guide.
Source: github/github-mcp-server: Install GitHub MCP Server in Claude Applications
-
6Test it with a read: "Use github to search open issues in acme/app that mention CSV export."
Set up the local GitHub MCP server (Claude Desktop, Docker)
You need Docker installed and running. On github.com there is nothing to create first: the server opens a browser sign-in on first use.
-
1Claude Desktop: open Settings, then Developer, then Edit Config, and add this block to claude_desktop_config.json. It signs in with OAuth and publishes a fixed callback port on your own machine. Save and restart Claude Desktop.
claude_desktop_config.json{ "mcpServers": { "github": { "command": "docker", "args": [ "run", "-i", "--rm", "-p", "127.0.0.1:8085:8085", "-e", "GITHUB_OAUTH_CALLBACK_PORT", "ghcr.io/github/github-mcp-server" ], "env": { "GITHUB_OAUTH_CALLBACK_PORT": "8085" } } } }Source: github/github-mcp-server: Install GitHub MCP Server in Claude Applications
-
2Claude Code, the same local server:
Claude Codeclaude mcp add github -e GITHUB_OAUTH_CALLBACK_PORT=8085 -- docker run -i --rm -p 127.0.0.1:8085:8085 -e GITHUB_OAUTH_CALLBACK_PORT ghcr.io/github/github-mcp-serverSource: github/github-mcp-server: Install GitHub MCP Server in Claude Applications
-
3Read-only, locally: the README's form with a personal access token passes GITHUB_READ_ONLY=1 to the container, which leaves only the read tools. GITHUB_TOOLSETS chooses the toolsets the same way.
Terminaldocker run -i --rm \ -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \ -e GITHUB_READ_ONLY=1 \ ghcr.io/github/github-mcp-server -
4GitHub's guide carries a warning: some users have reported compatibility issues with Claude Desktop and Docker-based MCP servers, and it is investigating. If it does not start, check that Docker Desktop is running and try docker pull ghcr.io/github/github-mcp-server.
Source: github/github-mcp-server: Install GitHub MCP Server in Claude Applications
What a support team does with the GitHub MCP server
If your engineers track work in GitHub Issues, the bug your customer just described is either already there or about to be. These are the jobs that connect a support thread to it, each tied to a tool of the issues toolset or, for releases, of repos and pull_requests.
- Is this bug already filed?
- search_issues with the customer's words and the repository, open and closed. A closed issue matters as much as an open one: it may mean the fix is already out and the customer is on an old version, or that it came back. Read the closest matches with issue_read.
- Uses: search_issues, issue_read
- Add the customer's report to the issue
- add_issue_comment with what this customer saw, when, on which plan and version, and the ticket's link. Engineers count reports; an issue with eight of them is a different conversation at planning. Have the assistant show you the comment first, and see the note on public repositories below before you paste anyone's details.
- Uses: add_issue_comment
- Write the issue engineering wishes it always got
- When nothing matches, paste the thread and ask for an issue with: what the customer was trying to do, numbered steps, expected and actual result, the exact error text, version, browser or device, the account as an internal identifier, when it started and how many customers reported it, with their words quoted. list_issue_types and get_label let it pick the type and labels your repository really has. issue_write creates it once you have read it. Every support case is a chance to improve the product; this is where a vague ticket becomes something an engineer can start on.
- Uses: list_issue_types, get_label, issue_write
- Know when it ships, and tell the customer
- A closed issue is not a released fix. Read the issue, find the pull request that closed it with search_pull_requests, and compare its merge date with list_releases or get_latest_release. Then write to the customer with the version that has the fix.
- Uses: issue_read, search_pull_requests, pull_request_read, list_releases
- Look only: the connection most of support needs
- Three of those four jobs are reads. The URL https://api.githubcopilot.com/mcp/x/issues/readonly gives the issue tools without the ones that write. To follow fixes into releases too, use the headers form with X-MCP-Toolsets set to issues,pull_requests,repos and X-MCP-Readonly set to true.
- Uses: issues, pull_requests, repos (read-only)
What it cannot do
- It does not read your help desk or your inbox. The customer's thread reaches the assistant only if you paste it or connect a second server.
- It does not write to the customer. And in a public repository it writes in public: a comment or an issue there is visible to anyone, so customer names, emails and account details do not belong in it.
- It does not see repositories your account or token cannot. A support person without access to the private repository gets nothing back.
- Read-only on the URL is not a limit on the token. /readonly hides the tools that write; a token with write scope can still write through any other client. Give the token only what the job needs.
Local or remote: how the connection works
The MCP specification (revision 2026-07-28, read on November 22, 2026) defines two standard transports. With stdio, your AI client starts the server as a program on your own computer and talks to it through that process. With Streamable HTTP, the server lives at a URL and your client sends each message to it as an HTTP request.
In practice a remote server means a URL and a sign-in in your browser, with nothing to install. A local server means a config block with a command, and a credential kept on your machine. The older SSE transport is deprecated: Claude Code's documentation says to use HTTP servers where they are available.
What each server exposes
Tool names exactly as each source lists them. Your client shows the same names when it asks you to approve a call.
Remote GitHub MCP server
issues toolset
- search_issues
- list_issues
- issue_read
- issue_write
- add_issue_comment
- update_issue_comment
- sub_issue_write
- list_issue_types
- list_issue_fields
- get_label
For following a fix (pull_requests and repos toolsets; both have more)
- search_pull_requests
- pull_request_read
- list_releases
- get_latest_release
- get_release_by_tag
- list_commits
Default toolsets
- context
- repos
- issues
- pull_requests
- users
Only on the remote server
- copilot
- copilot_spaces
- github_support_docs_search
Local GitHub MCP server (Docker or binary)
Available toolsets, as the README lists them
- context
- actions
- code_quality
- code_security
- copilot
- copilot_automations
- copilot_issue_intents
- dependabot
- discussions
- gists
- git
- governance
- issues
- labels
- notifications
- orgs
- projects
- pull_requests
- repos
- secret_protection
- security_advisories
- stargazers
- users
What you can ask once it is connected
Each example is tied to tools the servers above really have.
-
“Search open and closed issues in acme/app that mention CSV export timing out, and summarize the three closest with their state.”
Uses: search_issues, issue_read
-
“Draft a comment for issue 412 in acme/app with this customer's report, without their name or email. Show it to me before posting.”
Uses: add_issue_comment
-
“From this support thread, write a bug issue for acme/app: goal, numbered steps, expected, actual, exact error text, version, first seen. Use a label the repository already has. Show me the issue before creating it.”
Uses: get_label, list_issue_types, issue_write
-
“Issue 412 is closed. Which pull request closed it, when was it merged, and is that change in the latest release?”
Uses: issue_read, search_pull_requests, pull_request_read, get_latest_release
-
“List the issues labeled customer-reported that were closed in the last 7 days.”
Uses: list_issues
Limits to know before you rely on it
- OAuth with the remote server depends on your client: each MCP host application has to configure its own GitHub App or OAuth App, and support levels vary by host. Any host that supports remote MCP servers should work with a personal access token. (github/github-mcp-server on GitHub (README))
- A toolset URL takes one toolset. /x/issues is valid; a comma-separated list in the path is not. Combine toolsets with the X-MCP-Toolsets header, where unknown names are silently ignored. (github/github-mcp-server: Remote GitHub MCP Server (docs/remote-server.md))
- Lockdown mode is a filter, not a wall. It limits what the server surfaces from public repositories to content by people with push access, to reduce prompt injection, and GitHub says plainly that it is not an authorization boundary. Private repositories are unaffected. (github/github-mcp-server on GitHub (README))
- Claude Desktop is limited to the local server for now, and GitHub's guide notes reported compatibility issues between Claude Desktop and Docker-based servers. (github/github-mcp-server: Install GitHub MCP Server in Claude Applications)
- The old npm package is gone: GitHub's guide says @modelcontextprotocol/server-github is deprecated as of April 2025. A tutorial that starts with npx and that package is out of date. (github/github-mcp-server: Install GitHub MCP Server in Claude Applications)
- In Cursor the remote server needs version 0.48.0 or later and a personal access token. (github/github-mcp-server: Install GitHub MCP Server in Cursor)
Security: what to lock down first
- Take one toolset, read-only
- The default connection brings repository, pull request and user tools that a support person does not need, including ones that write code. Connect to /x/issues/readonly, or name the toolsets in the X-MCP-Toolsets header with X-MCP-Readonly set to true.
- The token is the real permission
- GitHub's own advice: grant only the necessary permissions, use separate tokens for different projects, rotate them and never commit them. Its guide suggests keeping the token in a .env file and adding .env and .mcp.json to .gitignore. For support, a token that can read issues in one repository is enough for the lookups.
- Issues in public repositories are written by strangers
- Anyone can open an issue in a public repository and put instructions for a model in it. Lockdown mode (the X-MCP-Lockdown header, or GITHUB_LOCKDOWN_MODE=1 locally) filters content from people without push access. Turn it on if your product's repository is public, and still approve every write.
- Keep customers out of public issues
- A comment the assistant posts in a public repository is public the moment it is approved. Refer to the customer by an internal identifier or a ticket link that only your team can open, and read the comment before you approve it.
- Customer data goes to your AI provider
- Whatever the assistant reads from GitHub (names, email addresses, account and payment details, what a customer wrote) becomes part of your conversation with the model. From there it is handled under your AI provider's terms and settings, not GitHub's. Check retention, training and your data processing agreement before you connect an account that holds personal data.
- Text written by other people is untrusted input
- A support thread you paste, an issue a stranger opened, a name field a customer filled in: the model reads all of it in the same stream as your request, and any of it can say "ignore your instructions and…". This is prompt injection. Keep a person approving every tool call that writes, do not leave a session with write access to GitHub running unattended, and treat instructions found inside data as text to summarize, never as something to do.
- Sign in as the smallest identity that works
- Every server on this page acts with the permissions of whoever signed in or whose key it holds. Connect it as a person or key that sees only what the job needs, read-only where the server offers it, and remove the connection when the experiment is over.
Where ReplyBrain fits
An MCP server for GitHub gives the assistant you already use a way into GitHub. You still open each ticket and decide what happens; the assistant helps when you ask it to.
ReplyBrain is a different kind of thing: a support inbox for software products. It reads the support email that arrives, drafts the reply with the customer's context, and by default a person on your team approves and sends it.
GitHub is the one tool in this family that ReplyBrain works with itself, through GitHub's API and not through this MCP server. You connect a private repository that has issues turned on. When a case needs a change in the product, ReplyBrain proposes an issue for engineering with the customer's words, or proposes adding the case to an issue that already exists, and nothing is filed until a person approves it. The customer never sees the issue.
When that issue is closed as done, ReplyBrain drafts the follow-up to the customer who was waiting, and a person on your team sends it. GitHub is the only tracker it files to today: there is no Linear or Jira connection.
It does have an MCP server of its own. You use it from Claude, Cursor or ChatGPT to set ReplyBrain up (your product, your mailbox, your approved answers) and to check on your cases, and none of its tools sends anything to a customer.
GitHub MCP: questions people ask
Does GitHub have an official MCP server?
Yes. GitHub hosts a remote one at https://api.githubcopilot.com/mcp/ and publishes the same server to run locally, as a Docker image or a binary. Both come from the github/github-mcp-server repository, under the MIT licence.
Can I give the GitHub MCP server access to issues only?
Yes. On the remote server every toolset has its own URL: https://api.githubcopilot.com/mcp/x/issues for the issue tools, with /readonly at the end for only the ones that read. Locally, GITHUB_TOOLSETS and GITHUB_READ_ONLY do the same. The token's own permissions should match.
Why can't I add the remote GitHub MCP server to Claude Desktop?
GitHub's install guide says the remote server requires OAuth through a registered GitHub App or OAuth App, which Claude Desktop's custom connectors do not currently support. It tells you to use the local Docker setup, which opens a browser sign-in on first use.
Do I need Docker?
Not for the remote server: that is a URL and a token or sign-in. The local server runs as a Docker container or as a binary you download from the repository's releases.
Should people in support use the GitHub MCP server at all?
If engineering tracks bugs in GitHub Issues and support has, or can get, read access to that repository, yes: checking whether a bug is known and whether its fix has shipped are both reads. If support has no GitHub accounts, the answer is a process question before it is a tooling one.
GitHub is a trademark of its owner. ReplyBrain is not affiliated with GitHub or with the projects described here.
Sources
The pages opened for this guide, each with the date it was read. Commands and config blocks are quoted from them; the rest is our summary.
- github/github-mcp-server on GitHub (README), read on November 28, 2026
- github/github-mcp-server: Remote GitHub MCP Server (docs/remote-server.md), read on November 28, 2026
- github/github-mcp-server: Install GitHub MCP Server in Claude Applications, read on November 28, 2026
- github/github-mcp-server: Install GitHub MCP Server in Cursor, read on November 28, 2026
- Model Context Protocol specification (2026-07-28): Transports, read on November 22, 2026
- Claude Code docs: Connect Claude Code to tools via MCP, read on November 22, 2026
- Model Context Protocol docs: Connect to local MCP servers (Claude Desktop), read on November 22, 2026
- Cursor docs: Model Context Protocol (MCP), read on November 22, 2026
Would you rather not answer every ticket by hand?
ReplyBrain drafts the reply to each support email with the customer's context, and your team approves it. Built for software products.
Start freeA new account is a free help desk for your whole team, with a chat widget for your website. No card. AI drafting is the paid part.