# GitHub MCP Server (VYAGENT Radar #13)

> GitHub’s official Go-based MCP server connecting AI agents directly to repositories, PR reviews, issue triage, and Actions logs.

- **URL**: https://vyagent.com/radar/github-mcp-server
- **Published**: 2026-12-01
- **Category**: MCP Server · DevOps
- **License**: MIT
- **Pricing**: Free & Open Source (Docker local or GitHub remote OAuth endpoint; subject to GitHub API rate limits)
- **Agent Ready**: MCP, CLI, Open Source
- **Source**: https://github.com/github/github-mcp-server
- **Package / Docs**: https://github.com/github/github-mcp-server

## 1. Friction Solved
Copy-pasting failing CI logs, PR diffs, and multi-thread issue discussions between browser tabs and an AI chat window wastes time and drops critical file context. GitHub’s official MCP server replaces fragile community wrappers with a fast, maintained Go binary (and OAuth-secured remote endpoint) that gives coding agents structured, scope-controlled access to the entire GitHub workflow.

## 2. Best-Fit Scenarios
- Asking your coding agent to inspect a failing GitHub Actions job log, trace the offending commit, and draft a targeted fix PR automatically.
- Triaging incoming open-source issues: deduplicating bug reports, checking related files, and applying consistent labels with human approval.
- Cross-repository code search and PR security review without cloning ten microservices locally first.

## 3. Setup (Run Official GitHub MCP Server via Docker (Claude / Cursor / OpenCode))
```
{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "-e",
        "GITHUB_TOOLSETS=repos,issues,pull_requests,actions",
        "ghcr.io/github/github-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_FINE_GRAINED_PAT>"
      }
    }
  }
}
```

## 4. Reality Check & Trade-offs
- Enabling every single toolset dumps dozens of tool schemas into your agent’s context window on every turn—always restrict `GITHUB_TOOLSETS` to only what you actually use.
- Never supply a classic full-admin Personal Access Token; generate a fine-grained PAT scoped to specific repositories and minimum required permissions (or use read-only mode when auditing).
- For simple single-repo git commits and local diffs, the local `gh` CLI or git commands remain faster and burn zero MCP schema tokens.

## 5. Editorial Verdict
If your engineering workflow lives on GitHub, the official Go MCP server with scoped `GITHUB_TOOLSETS` is the cleanest way to close the loop between CI failures, issues, and code reviews.

## 6. FAQ
### Can I run GitHub MCP Server in read-only mode to prevent accidental pushes or merges?
Yes. Pass `-e GITHUB_READ_ONLY=1` alongside a read-only fine-grained PAT so the agent can search code, read PR diffs, and inspect CI logs without any write tools exposed.

### Do I have to run Docker locally, or is there a hosted remote option?
GitHub offers both: you can run the official container image locally (or compile from Go source) for maximum control, or connect MCP clients that support remote OAuth directly to GitHub’s hosted remote MCP endpoint.
