GitHub MCP server

Developer toolsAgent frameworks and SDKs

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

Your AI app calls the GitHub MCP server, which does the work through tools like actions_get, actions_list, workflow_jobs_filter and workflow_runs_filter and sends the result back to the chat.

About GitHub

GitHub is the official MCP server from github, filed in our directory under developer tools and agent frameworks and sdks. Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

GitHub runs on your own machine: your AI app starts it with the command docker run -i --rm and talks to it over standard input and output.

The README for GitHub lists tools such as actions_get, method, owner and repo, which your AI app can call once the server is connected.

GitHub is listed in the official MCP registry as io.github.github/github-mcp-server, version 2.3.0.

At a glance

Publisher
github, the company behind the product
Runs
Locally or as a hosted remote server
Install from
Docker image: ghcr.io/github/github-mcp-server:2.3.0
Written in
Go
License
MIT
GitHub stars
34,922
Official MCP registry
io.github.github/github-mcp-server

Tools GitHub gives your AI app

  • actions_getGet details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts).
  • methodThe method to execute (string, required).
  • ownerRepository owner (string, required).
  • repoRepository name (string, required).
  • resource_idThe unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:.
  • actions_listList GitHub Actions workflows in a repository.
  • pagePage number for pagination (default: 1) (number, optional).
  • perPageResults per page for pagination (default: 30, max: 100) (number, optional).
  • workflow_jobs_filterFilters for workflow jobs. ONLY used when method is 'listworkflowjobs' (object, optional).
  • workflow_runs_filterFilters for workflow runs. ONLY used when method is 'listworkflowruns' (object, optional).
  • actions_run_triggerTrigger GitHub Actions workflow actions.
  • inputsInputs the workflow accepts. Only used for 'runworkflow' method. (object, optional).
  • refThe git reference for the workflow. The reference can be a branch or tag name. Required for 'runworkflow' method. (string, optional).
  • run_idThe ID of the workflow run. Required for all methods except 'runworkflow'. (number, optional).
  • workflow_idThe workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'runworkflow' method. (string, optional).
  • get_job_logsGet GitHub Actions workflow job logs.
  • failed_onlyWhen true, gets logs for all failed jobs in the workflow run specified by runid. Requires runid to be provided. (boolean, optional).
  • job_idThe unique identifier of the workflow job. Required when getting logs for a single job. (number, optional).
  • return_contentReturns actual log content instead of URLs (boolean, optional).
  • tail_linesNumber of lines to return from the end of the log (number, optional).
  • get_code_quality_findingGet code quality finding.
  • findingNumberThe number of the finding. (number, required).
  • list_code_quality_findingsList code quality findings.
  • afterCursor for pagination. Use the cursor from the previous response. (string, optional).

Tool names as the GitHub README lists them. Your AI app shows the live list once GitHub is connected.

How to set up GitHub

  1. Have Docker running on the machine that runs your AI app, because GitHub starts as a container.
  2. Check the GitHub README for keys or settings; the registry lists none that GitHub requires.
  3. Add GitHub to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the GitHub tools to confirm the connection.
  5. Run one read-only task with GitHub first, such as a call to actions_get, before you allow anything that writes or sends.

GitHub compared with similar servers

  • Repomix by yamadashy has fewer GitHub stars than GitHub (29.6k against 34.9k); GitHub is official while Repomix is a community server, and Repomix runs on your own machine and GitHub runs as a remote server.
  • Codebase Memory by DeusData has more GitHub stars than GitHub (49.5k against 34.9k); GitHub is official while Codebase Memory is a community server, and Codebase Memory runs on your own machine and GitHub runs as a remote server.
  • XERJ by xerj-org has fewer GitHub stars than GitHub (23.4k against 34.9k); GitHub is official while XERJ is a community server, and XERJ runs on your own machine and GitHub runs as a remote server.

Before you connect GitHub

  • Give GitHub its own sign-in or token with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each GitHub tool call until you trust what it does with them.
  • Treat text that GitHub fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for GitHub on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for GitHub

How marketing and sales teams put GitHub to work, by company size. Pick the size closest to yours and start GitHub on one use case.

Small business

  • A small business with a developer can use GitHub to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask GitHub to explain and fix a marketing site issue without context switching between tools.
  • A small business with a developer can use GitHub to build one focused agent, such as lead follow-up, without a big platform.
  • GitHub runs as a remote server, so a small team can connect it in a few minutes with no install to maintain.

Mid-market

  • Growth engineers can use GitHub to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect GitHub to keep scripts and automations documented and versioned as they change.
  • Growth engineering teams can use GitHub to build agents that combine CRM, analytics and content tools behind one workflow.
  • Start with actions_get and method, the tools GitHub lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise engineering teams can roll out GitHub with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on GitHub so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can build on GitHub with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Because GitHub comes from github, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

GitHub README

From github/github-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

GitHub MCP Server

The GitHub MCP Server connects AI tools directly to GitHub's platform. This gives AI agents, assistants, and chatbots the ability to read repositories and code files, manage issues and PRs, analyze code, and automate workflows. All through natural language interactions.

Use Cases

  • Repository Management: Browse and query code, search files, analyze commits, and understand project structure across any repository you have access to.
  • Issue & PR Automation: Create, update, and manage issues and pull requests. Let AI help triage bugs, review code changes, and maintain project boards.
  • CI/CD & Workflow Intelligence: Monitor GitHub Actions workflow runs, analyze build failures, manage releases, and get insights into your development pipeline.
  • Code Analysis: Examine security findings, review Dependabot alerts, understand code patterns, and get comprehensive insights into your codebase.
  • Team Collaboration: Access discussions, manage notifications, analyze team activity, and streamline processes for your team.

Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.

Using the Go module

The Go module path is github.com/github/github-mcp-server/v2. Library consumers must use this prefix in imports, for example github.com/github/github-mcp-server/v2/pkg/github, and in go get commands. No /v2 subdirectory is needed when building from a repository checkout.

The existing v2.0.0 tag predates this module-path correction and cannot be used as a Go module. After this change is merged, a new release such as v2.0.1 must be tagged from a commit containing the corrected module path. Until then, consumers can use a pseudo-version from a commit containing this change.

Remote GitHub MCP Server

The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the local version of the GitHub MCP Server instead.

Prerequisites
  1. A compatible MCP host with remote server support (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.)
  2. Any applicable policies enabled
Install in VS Code

For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start. Make sure you're using VS Code 1.101 or later for remote MCP and OAuth support.

Alternatively, to manually configure VS Code, choose the appropriate JSON block from the examples below and add it to your host configuration:

Using OAuthUsing a GitHub PAT
VS Code (version 1.101 or greater)
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer ${input:github_mcp_pat}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "github_mcp_pat",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ]
}
Install in other MCP hosts
  • Copilot CLI - Installation guide for GitHub Copilot CLI
  • GitHub Copilot in other IDEs - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
  • Claude Applications - Installation guide for Claude Desktop and Claude Code CLI
  • Codex - Installation guide for OpenAI Codex
  • Cursor - Installation guide for Cursor IDE
  • OpenCode - Installation guide for the OpenCode terminal agent
  • Windsurf - Installation guide for Windsurf IDE
  • Zed - Installation guide for Zed editor
  • Rovo Dev CLI - Installation guide for Rovo Dev CLI

Note: Each MCP host application needs to configure a GitHub App or OAuth App to support remote access via OAuth. Any host application that supports remote MCP servers should support the remote GitHub server with PAT authentication. Configuration details and support levels vary by host. Make sure to refer to the host application's documentation for more info.

Configuration
Toolset configuration

See Remote Server Documentation for full details on remote server configuration, toolsets, headers, and advanced usage. This file provides comprehensive instructions and examples for connecting, customizing, and installing the remote GitHub MCP Server in VS Code and other MCP hosts.

When no toolsets are specified, default toolsets are used.

Insiders Mode

Try new features early! The remote server offers an insiders version with early access to new features and experimental tools.

Using URL PathUsing Header
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/insiders"
    }
  }
}
{
  "servers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "X-MCP-Insiders": "true"
      }
    }
  }
}

See Remote Server Documentation for more details and examples, Insiders Features for a full list of what's available, and Feature Flags for user-opt-in tools such as repository automations.

GitHub Enterprise
GitHub Enterprise Cloud with data residency (ghe.com)

GitHub Enterprise Cloud can also make use of the remote server.

Example for https://octocorp.ghe.com with GitHub PAT token:

{
    ...
    "github-octocorp": {
      "type": "http",
      "url": "https://copilot-api.octocorp.ghe.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:github_mcp_pat}"
      }
    },
    ...
}

Note: When using OAuth with GitHub Enterprise with VS Code and GitHub Copilot, you also need to configure your VS Code settings to point to your GitHub Enterprise instance - see Authenticate from VS Code

GitHub Enterprise Server

GitHub Enterprise Server does not support remote server hosting. Please refer to GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com) from the local server configuration.

Local GitHub MCP Server

Prerequisites
  1. To run the server in a container, you will need to have Docker installed.

  2. Once Docker is installed, you will also need to ensure Docker is running. The Docker image is available at ghcr.io/github/github-mcp-server. The image is public; if you get errors on pull, you may have an expired token and need to docker logout ghcr.io.

  3. Authentication. On github.com you don't need to create anything up front, the one-click buttons above log you in with OAuth on first use (a browser-based flow; the token is kept in memory only). The Docker buttons publish a fixed callback port (127.0.0.1:8085) so the container's login callback is reachable. See Local Server OAuth Login for how it works, headless/device-code fallback, and bringing your own OAuth or GitHub App (required for GitHub Enterprise Server and ghe.com).

    Prefer a token? You can still authenticate with a GitHub Personal Access Token by setting GITHUB_PERSONAL_ACCESS_TOKEN instead (it takes precedence over OAuth). The MCP server can use many of the GitHub APIs, so enable the permissions that you feel comfortable granting your AI tools (to learn more about access tokens, please check out the documentation (docs.github.com/en/authentication)).

Handling PATs Securely
Environment Variables (Recommended)

To keep your GitHub PAT secure and reusable across different MCP hosts:

  1. Store your PAT in environment variables

    export GITHUB_PAT=your_token_here
    

    Or create a .env file:

    GITHUB_PAT=your_token_here
    
  2. Protect your .env file

    # Add to .gitignore to prevent accidental commits
    echo ".env" >> .gitignore
    
  3. Reference the token in configurations

    # CLI usage
    claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
    
    # In config files (where supported)
    "env": {
      "GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
    }
    

Note: Environment variable support varies by host app and IDE. Some applications (like Windsurf) require hardcoded tokens in config files.

Token Security Best Practices
  • Minimum scopes: Only grant necessary permissions

    • repo - Repository operations
    • read:packages - Docker image access
    • read:org - Organization team access
  • Separate tokens: Use different PATs for different projects/environments

  • Regular rotation: Update tokens periodically

  • Never commit: Keep tokens out of version control

  • File permissions: Restrict access to config files containing tokens

    chmod 600 ~/.your-app/config.json
    
GitHub Enterprise Server and Enterprise Cloud with data residency (ghe.com)

The flag --gh-host and the environment variable GITHUB_HOST can be used to set the hostname for GitHub Enterprise Server or GitHub Enterprise Cloud with data residency.

  • For GitHub Enterprise Server, prefix the hostname with the https:// URI scheme. HTTPS is required and enforced: non-HTTPS hosts are refused so that credentials are never sent over cleartext (the only exception is a loopback host such as http://localhost for local development).
  • For GitHub Enterprise Cloud with data residency, use https://YOURSUBDOMAIN.ghe.com as the hostname.
"github": {
    "command": "docker",
    "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "GITHUB_PERSONAL_ACCESS_TOKEN",
    "-e",
    "GITHUB_HOST",
    "ghcr.io/github/github-mcp-server"
    ],
    "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}",
        "GITHUB_HOST": "https://<your GHES or ghe.com domain name>"
    }
}

Installation

Install in GitHub Copilot on VS Code

For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start.

More about using MCP server tools in VS Code's agent mode documentation.

Install in GitHub Copilot on other IDEs (JetBrains, Visual Studio, Eclipse, etc.)

Add one of the following JSON blocks to your IDE's MCP settings.

Log in with OAuth (no token to create or store). On github.com the official image already includes the app credentials, so you provide none yourself: it runs a browser-based login on first use and keeps the resulting token in memory only. In Docker this needs a fixed callback port published to loopback so the container's login callback is reachable:

{
  "mcp": {
    "servers": {
      "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"
        }
      }
    }
  }
}

See Local Server OAuth Login for the native-binary flow (no fixed port needed), the headless/device-code fallback, GitHub Enterprise Server / ghe.com, and bringing your own OAuth or GitHub App.

For non-interactive stdio deployments, see GitHub App Authentication.

Or authenticate with a Personal Access Token. Set GITHUB_PERSONAL_ACCESS_TOKEN instead (it takes precedence over OAuth):

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "github_token",
        "description": "GitHub Personal Access Token",
        "password": true
      }
    ],
    "servers": {
      "github": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e",
          "GITHUB_PERSONAL_ACCESS_TOKEN",
          "ghcr.io/github/github-mcp-server"
        ],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
        }
      }
    }
  }
}

Optionally, you can add a similar example (i.e. without the mcp key) to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with other host applications that accept the same format.

Example JSON block without the MCP key included
{
  "inputs": [
    {
      "type": "promptString",
      "id": "github_token",
      "description": "GitHub Personal Access Token",
      "password": true
    }
  ],
  "servers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
      }
    }
  }
}
Install in Other MCP Hosts

For other MCP host applications, please refer to our installation guides:

For a complete overview of all installation options, see our Installation Guides Index.

Note: Any host application that supports local MCP servers should be able to access the local GitHub MCP server. However, the specific configuration process, syntax and stability of the integration will vary by host application. While many may follow a similar format to the examples above, this is not guaranteed. Please refer to your host application's documentation for the correct MCP configuration syntax and setup process.

Build from source

If you don't have Docker, you can use go build to build the binary in the cmd/github-mcp-server directory, and use the github-mcp-server stdio command with the GITHUB_PERSONAL_ACCESS_TOKEN environment variable set to your token. To specify the output location of the build, use the -o flag. You should configure your server to use the built executable as its command.

STDIO API requests identify the server as github-mcp-server/<version> and retain the upstream MCP client's name/version in parentheses when available. Control characters, quotes, backslashes and parentheses in client metadata are escaped so the HTTP header remains valid; ordinary names, versions, spaces and printable Unicode are preserved. Release builds keep their release version. Source and default Docker builds with revision metadata use vcs-<full-commit-sha>. The Docker publishing workflow preserves tag versions, including prereleases, and lets branch, pull-request and nightly builds use the linked source revision. The -dirty marker applies only when both the revision and modified state come from embedded VCS metadata, never to a valid, explicitly supplied main.commit. This is a VCS build identifier, not a release number.

Build the complete package with go build -o github-mcp-server ./cmd/github-mcp-server from a Git checkout to embed its VCS revision. For builds without VCS metadata, supply the actual release with -ldflags '-X main.version=<release>' or the full source revision with -ldflags '-X main.commit=<sha>'. Valid metadata is selected in this order: explicit release, explicit source revision, embedded VCS revision, then installed main-module version. Valid explicit revisions remain authoritative even if build-context filtering changes embedded VCS metadata. Missing or malformed candidates fall through to the next usable source. If none is available, STDIO still starts with the development label dev and emits a warning on stderr, leaving stdout available for the MCP protocol. Supply real release or revision metadata when version-specific attribution is needed.

For example:

{
  "mcp": {
    "servers": {
      "github": {
        "command": "/path/to/github-mcp-server",
        "args": ["stdio"],
        "env": {
          "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
        }
      }
    }
  }
}

Tool Configuration

The GitHub MCP Server supports enabling or disabling specific groups of functionalities via the --toolsets flag. This allows you to control which GitHub API capabilities are available to your AI tools. Enabling only the toolsets that you need can help the LLM with tool choice and reduce the context size.

Toolsets are not limited to Tools. Relevant MCP Resources and Prompts are also included where applicable.

When no toolsets are specified, default toolsets are used.

Looking for examples? See the Server Configuration Guide for common recipes like minimal setups, read-only mode, and combining tools with toolsets.

Specifying Toolsets

To specify toolsets you want available to the LLM, you can pass an allow-list in two ways:

  1. Using Command Line Argument:

    github-mcp-server --toolsets repos,issues,pull_requests,actions,code_security
    
  2. Using Environment Variable:

    GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" ./github-mcp-server
    

The environment variable GITHUB_TOOLSETS takes precedence over the command line argument if both are provided.

Specifying Individual Tools

You can also configure specific tools using the --tools flag. Tools can be used independently or combined with toolsets for fine-grained control.

  1. Using Command Line Argument:

    github-mcp-server --tools get_file_contents,issue_read,create_pull_request
    
  2. Using Environment Variable:

    GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" ./github-mcp-server
    
  3. Combining with Toolsets (additive):

    github-mcp-server --toolsets repos,issues --tools get_gist
    

    This registers all tools from repos and issues toolsets, plus get_gist.

Important Notes:

  • Tools and toolsets can be used together
  • Read-only mode takes priority: write tools are skipped if --read-only is set, even if explicitly requested via --tools
  • Tool names must match exactly (e.g., get_file_contents, not getFileContents). Invalid tool names will cause the server to fail at startup with an error message
  • When tools are renamed, old names are preserved as aliases for backward compatibility. See Tool Renaming for details.
Using Toolsets With Docker

When using Docker, you can pass the toolsets as environment variables:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLSETS="repos,issues,pull_requests,actions,code_security" \
  ghcr.io/github/github-mcp-server
Using Tools With Docker

When using Docker, you can pass specific tools as environment variables. You can also combine tools with toolsets:

# Tools only
docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLS="get_file_contents,issue_read,create_pull_request" \
  ghcr.io/github/github-mcp-server

# Tools combined with toolsets (additive)
docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_TOOLSETS="repos,issues" \
  -e GITHUB_TOOLS="get_gist" \
  ghcr.io/github/github-mcp-server
Special toolsets
"all" toolset

The special toolset all can be provided to enable all available toolsets regardless of any other configuration:

./github-mcp-server --toolsets all

Or using the environment variable:

GITHUB_TOOLSETS="all" ./github-mcp-server
"default" toolset

The default toolset default is the configuration that gets passed to the server if no toolsets are specified.

The default configuration is:

  • context
  • repos
  • issues
  • pull_requests
  • users

To keep the default configuration and add additional toolsets:

GITHUB_TOOLSETS="default,stargazers" ./github-mcp-server
Insiders Mode

The local GitHub MCP Server offers an insiders version with early access to new features and experimental tools.

  1. Using Command Line Argument:

    ./github-mcp-server --insiders
    
  2. Using Environment Variable:

    GITHUB_INSIDERS=true ./github-mcp-server
    

When using Docker:

docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN=<your-token> \
  -e GITHUB_INSIDERS=true \
  ghcr.io/github/github-mcp-server
Available Toolsets

The following sets of tools are available:

Toolset Description
context Strongly recommended: Tools that provide context about the current user and GitHub context you are operating in
actions GitHub Actions workflows and CI/CD operations
code_quality GitHub Code Quality related tools
code_security Code security related tools, such as GitHub Code Scanning
copilot Copilot related tools
copilot_automations Manage Copilot Automations, their revisions, and the tools and triggers they can use
copilot_issue_intents Opt-in Copilot issue assignment tools that carry intent metadata (rationale, confidence, suggestion)
dependabot Dependabot tools
discussions GitHub Discussions related tools
gists GitHub Gist related tools
git GitHub Git API related tools for low-level Git operations
governance Repository governance tools for managing rulesets and custom properties at the repository, organization, and enterprise levels
issues GitHub Issues related tools
labels GitHub Labels related tools
notifications GitHub Notifications related tools
orgs GitHub Organization related tools
projects GitHub Projects related tools
pull_requests GitHub Pull Request related tools
repos GitHub Repository related tools
secret_protection Secret protection related tools, such as GitHub Secret Scanning
security_advisories Security advisories related tools
stargazers GitHub Stargazers related tools
users GitHub User related tools
Additional Toolsets in Remote GitHub MCP Server
Toolset Description
copilot Copilot related tools (e.g. Copilot Coding Agent)
copilot_spaces Copilot Spaces related tools
github_support_docs_search Search docs to answer GitHub product and support questions

MCP Skills

The local server bundles workflow skills that replace server instructions when enabled with --features=skills (or Insiders Mode). Skills are off by default and are filtered to the tools available in the connection, so a restricted toolset may expose only part of the catalog.

  • account-and-team-context, USE FOR: establishing who the authenticated account is, which organisations and teams it belongs to, who sits on a team, and who has write access to a repository. NOT FOR: finding an unfamiliar repository, or choosing what work to do next.
  • codebase-exploration, USE FOR: understanding an unfamiliar repository and how it got that way, its layout, where a behaviour is implemented, and when and why a particular function or line last changed. NOT FOR: editing files, or assessing whether a project is healthy overall.
  • copilot-task-delegation, USE FOR: handing a piece of work to the Copilot coding agent, judging whether an issue is scoped tightly enough to delegate, launching it, and asking for an automated first-pass review of a proposed change. NOT FOR: doing the work directly, or reviewing what comes back.
  • discussion-participation, USE FOR: taking part in GitHub Discussions, finding the unanswered questions in a category, reading a thread in full, replying to it, and marking the reply that resolved it. NOT FOR: commenting on an issue or a proposed change, or working through a backlog.
  • issue-authoring, USE FOR: filing one clear bug report or feature request, checking it is not already reported, choosing its type and fields, breaking it into sub-issues, and giving it a title and body someone can act on. NOT FOR: working through an existing backlog, or discussing an open question with a community.
  • issue-backlog-triage, USE FOR: triaging a backlog of open GitHub issues, judging which are actionable, labelling and typing them, linking duplicates and parents, and closing what is dead. NOT FOR: writing one new issue, scheduling committed work, or reviewing pull requests.
  • label-scheme-management, USE FOR: curating the label vocabulary a repository uses, adding ones it lacks, auditing which are actually applied, renaming and recolouring them, merging overlapping ones, and tidying away the unused. NOT FOR: applying an existing label to an issue, or deciding which issues matter.
  • notification-triage, USE FOR: working through a GitHub notification inbox, deciding what needs a reply, what to unsubscribe from, and what to mark read or done. NOT FOR: triaging a repository issue backlog, or answering review threads on one specific pull request.
  • project-planning, USE FOR: planning and updating work on a GitHub Projects board, reading fields and views, adding issues or pull requests as items, setting status and iteration, and posting a status update. NOT FOR: triaging a repository issue backlog, or preparing a release.
  • pull-request-authoring, USE FOR: taking a branch of work through to landed, opening the pull request, describing it, requesting reviewers, keeping it current with its base, and merging it once checks and approvals are in. NOT FOR: reviewing someone else's proposal, or acting on review comments left on yours.
  • pull-request-code-review, USE FOR: examining someone else's pull request and delivering a verdict, reading the diff in context, leaving line-anchored comments as a batch, and approving or requesting changes. NOT FOR: replying to review comments left on your own change, or opening and merging one.
  • pull-request-review-feedback, USE FOR: working through review feedback left on a pull request, reading each unresolved thread, deciding what to change, replying to the reviewer, and resolving threads. NOT FOR: producing a review of a pull request, merging one, or clearing a notification inbox.
  • release-preparation, USE FOR: cutting a release of a repository, picking the version, assembling the changelog since the last tag, confirming the branch is releasable, and drafting release notes. NOT FOR: assessing overall repository health, triaging security alerts, or working an issue backlog.
  • repository-content-changes, USE FOR: changing what a repository holds or whether it exists at all, opening a working branch, committing files remotely, deleting what should go, and creating, forking or removing the repository itself. NOT FOR: proposing those changes for review, or reading code you do not intend to touch.
  • repository-discovery, USE FOR: finding a library, tool or organisation you cannot yet name, judging whether a candidate project is worth depending on, and keeping a starred shortlist useful. NOT FOR: searching inside a repository you have already chosen, or setting one up.
  • repository-health-review, USE FOR: judging how well a repository is maintained overall, release cadence, branch and proposal age, issue inflow, build reliability, how many people can maintain it, and outstanding alert counts. NOT FOR: acting on any individual issue, alert or proposed change, or cutting a specific release.
  • security-alert-triage, USE FOR: investigating GitHub security alerts, code scanning, Dependabot, secret scanning and advisories, and deciding what to fix now, schedule, dismiss, or escalate. NOT FOR: summarising overall repository health, or reviewing feedback on a pull request.
  • workflow-failure-triage, USE FOR: diagnosing a failing GitHub Actions workflow run, a build gone red, which jobs failed, what their logs say, where the failing step is, and whether a rerun is justified. NOT FOR: judging long-term reliability trends across a repository, or deciding whether a change is ready to ship.

Read the rest of the GitHub README on GitHub

Questions about GitHub

What is the GitHub MCP server?

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. GitHub is published by github, the company behind the product, on GitHub at github/github-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the GitHub MCP server?

Add GitHub to your AI app's MCP config with the command docker run -i --rm ghcr.io/github/github-mcp-server:2.3.0. In Claude Code, run claude mcp add --transport stdio github -- docker run -i --rm ghcr.io/github/github-mcp-server:2.3.0. To run GitHub this way you need Docker running.

Does GitHub need an API key?

The registry lists no required keys for GitHub. Check the GitHub README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is GitHub an official MCP server?

Yes. GitHub is published by github, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is GitHub under?

GitHub is released under the MIT license, according to its GitHub repository. The license covers the code of GitHub; the service it connects to has its own terms.