Ad space · Your tool here
PluginStack
MCP Servers · by GitHub

GitHub MCP Server

GitHub MCP Server official site ↗

Last checked against the official docs:

What it does

Official MCP server from GitHub that lets AI tools read repositories and code, manage issues and pull requests, check GitHub Actions runs and review security findings, all through natural language.

Who it's for

Developers who want their AI assistant to read code, triage issues or open PRs without leaving the chat.

How to set it up

  1. Easiest: use GitHub's hosted server at https://api.githubcopilot.com/mcp/. In VS Code 1.101 or later, add this and sign in with OAuth (or install it from the MCP gallery by searching @mcp github).

    json
    {
      "servers": {
        "github": {
          "type": "http",
          "url": "https://api.githubcopilot.com/mcp/"
        }
      }
    }
  2. In Cursor 0.48 or later, Claude Code and Codex, the hosted server currently needs a GitHub personal access token as a Bearer header (OAuth is not the path in GitHub's install guides for those clients). Keep the token out of any file you might commit. Cursor example, reading the token from an environment variable:

    json
    {
      "mcpServers": {
        "github": {
          "url": "https://api.githubcopilot.com/mcp/",
          "headers": {
            "Authorization": "Bearer ${env:GITHUB_PAT}"
          }
        }
      }
    }
  3. Or run the official local image (Docker must be running). On github.com you can sign in with OAuth, or set GITHUB_PERSONAL_ACCESS_TOKEN instead (a token takes precedence). The old npm package @modelcontextprotocol/server-github has not been supported since April 2025.

    bash
    docker run -i --rm -p 127.0.0.1:8085:8085 -e GITHUB_OAUTH_CALLBACK_PORT=8085 ghcr.io/github/github-mcp-server
  4. Optionally limit tools with the X-MCP-Toolsets header on the hosted server, or GITHUB_TOOLSETS locally. Read-only mode: use the hosted URL ending in readonly, or set GITHUB_READ_ONLY=1. The default toolsets are context, repos, issues, pull_requests and users.

Check the official GitHub MCP Server docs for the latest steps.

Set it up / Fixes

Step-by-step guides for getting GitHub MCP Server running and fixing common errors.

Example prompts

prompt
List the open issues labeled 'bug' in my repo and group them by area.
prompt
Summarize what changed in pull request #42 and flag anything risky.
prompt
Why did the latest GitHub Actions run on main fail? Show me the failing job's logs.

Demo

Official demo by GitHub on YouTube: “Extending AI Agents: A live demo of the GitHub MCP Server”

Made GitHub MCP Server? Add the badge

If you like, show that GitHub MCP Server is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/github-mcp-server/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/github-mcp-server/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all MCP Servers on PluginStack