GitHub MCP Server

This repository provides a robust MCP (Model Context Protocol), A2A server, enabling advanced file operations, repository management, and search. It

Local serverstdio

What is the GitHub MCP server?

If you already use GitHub, the github mcp server is the piece that lets your assistant work with it directly. This repository provides a robust MCP (Model Context Protocol), A2A server, enabling advanced file operations, repository management, and search. It features modular integrations for token analytics and social sentiment analysis, making it.

What the server does

  • Automatic Branch Creation — Branches are created as needed
  • Comprehensive Error Handling — Clear error messages for common issues
  • Git History Preservation — Maintains proper Git history
  • Batch Operations — Supports single and multi-file operations
  • Advanced Search — Search code, issues/PRs, and users

Installation

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.

Credentials and setup notes

Configuration is passed through the environment: GITHUB_PERSONAL_ACCESS_TOKEN, YOUR_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by melythemev; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • 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.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the GitHub MCP server

#### NPX

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

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

Configuration

VariableDescriptionRequired
GITHUB_PERSONAL_ACCESS_TOKENCredential the server authenticates with.Yes
YOUR_TOKENCredential the server authenticates with.Yes

Frequently asked questions

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