Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

GitHub MCP Server

$ github-mcp-server Official Med Risk
GitHub · Agent Bridges & Meta · MIT · macos / linux / windows

The official Go-based GitHub Model Context Protocol server exposes GitHub repositories, issues, pull requests, code security, and Actions over MCP (stdio or tool-search). It includes granular scoping flags (--toolsets, --tools, --features=<list>), --read-only / GITHUB_READ_ONLY=1 safety enforcement, --gh-host <url> for GitHub Enterprise, --insiders, and --export-translations.

FCRS-1.0 Score
89 /100
Good
Medium Confidence
Zero-Friction Install
brew install github-mcp-server
CLI vs MCP Decision Hybrid (CLI + MCP)

Use github-mcp-server (with --read-only and tool-search or scoped --toolsets/--features) inside IDE/hosted MCP clients, while preferring gh CLI in local shell coding agents for lower token overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Purpose-built JSON-RPC MCP bridge supporting stdio, tool-search dynamic discovery, --features=<list> / --toolsets scoping, --export-translations, --insiders, and --gh-host.

  • stdio and tool-search subcommands with --features, --toolsets, and --tools scoping
  • --export-translations and --gh-host <url> support
Trust & Safety 21 / 25

Provides hard --read-only (GITHUB_READ_ONLY=1) enforcement, lockdown mode against untrusted public repo content, and scoped GITHUB_PERSONAL_ACCESS_TOKEN env auth.

  • --read-only / GITHUB_READ_ONLY=1 strips mutating tools
  • Relies on user-scoped GITHUB_PERSONAL_ACCESS_TOKEN
Setup & Portability 14 / 15

Single static Go binary installable via brew install github-mcp-server, GitHub Releases, or official Docker image across macOS, Linux, and Windows.

  • brew install github-mcp-server and official Docker/binary builds
Utility & Efficiency 13 / 15

tool-search and --toolsets/--tools filtering mitigate the classic MCP schema-bloat problem, though gh --json --jq remains leaner in shell agents.

  • On-demand tool-search and toolset filtering reduce context bloat
Maintenance & Lineage 10 / 10

Official GitHub repository (github/github-mcp-server) actively maintained under MIT.

  • Official github/github-mcp-server repository
Docs & Verifiability 9 / 10

Thorough README and configuration docs detailing stdio, tool-search, --read-only, --export-translations, and Enterprise --gh-host.

  • Official docs in github/github-mcp-server README

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads GITHUB_PERSONAL_ACCESS_TOKEN from environment or MCP client host configuration; supports --gh-host for Enterprise endpoints.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source and free; subject to standard GitHub API rate limits.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# GitHub MCP Server Agent Rules
- Prefer `--read-only` (or `GITHUB_READ_ONLY=1`) and narrow `--toolsets`/`--tools` unless GitHub write actions are explicitly requested.
- Use `tool-search` or scoped `--features=<list>` to keep MCP context overhead small; never hardcode `GITHUB_PERSONAL_ACCESS_TOKEN` in committed config files.

Agent-Ready Command Recipes

Safe Read-Only Queries

Export customizable MCP tool descriptions as JSON
github-mcp-server --export-translations

Prints the JSON translation/config map of tool descriptions to stdout and exits without connecting to GitHub.

Start stdio MCP server locked to read-only mode
GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_TOKEN" github-mcp-server stdio --read-only --toolsets=repos,issues,pull_requests

Launches the stdio JSON-RPC MCP server with --read-only so mutating GitHub tools are excluded.

Controlled Writes & Previews

Run scoped MCP server with explicit feature flags
GITHUB_PERSONAL_ACCESS_TOKEN="$GITHUB_TOKEN" github-mcp-server stdio --toolsets=repos,pull_requests --features=issues

Exposes scoped read/write GitHub tools over stdio while avoiding unnecessary toolset schema bloat.

Strengths for Agents

  • + Official Go MCP server with --read-only enforcement and lockdown security mode.
  • + tool-search, --toolsets, --tools, and --features=<list> curb context-window schema bloat.
  • + Supports GitHub Enterprise Server via --gh-host <url>, --insiders, and --export-translations.

Caveats & Pitfalls

  • ! stdio is a JSON-RPC server protocol intended for MCP hosts rather than ad-hoc human terminal commands.
  • ! Without --toolsets or tool-search, loading all GitHub tools consumes significant LLM context compared to gh CLI.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI