Github MCP Server

A model context protocol server for GitHub API

Local serverstdio

What is the Github MCP server?

Github MCP server exists for a simple reason — assistants are far more useful when they can act on Github directly instead of describing what you should do. A model context protocol server for GitHub API.

What the assistant can call

Once Github is connected, these are the calls the assistant has available:

  • Tools — 8. list_repositories_issues: List issues from a repository

Configuration and credentials

You will need one environment variable: GITHUB_PERSONAL_ACCESS_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Github's toolset — Tools — is a fair guide to whether it matches your workflow. It is maintained by ParasSolanki; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the github mcp server does with a few real requests.

Available tools

ToolWhat it does
Tools8. list_repositories_issues: List issues from a repository.

How to install the Github MCP server

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "github-mcp-server"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your_personal_github_access_token"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Github to Tools.

Frequently asked questions

A GitHub Personal Access Token must be provided via the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable.