Back to Home
shuymn icon

gh-mcp

Verified Safe

by shuymn

Overview

A GitHub CLI extension that runs the Model Context Protocol (MCP) server in a Docker container using existing `gh` authentication to provide GitHub context to AI models/agents.

Installation

Run Command
gh mcp

Environment Variables

  • GITHUB_PERSONAL_ACCESS_TOKEN
  • GITHUB_HOST
  • GITHUB_TOOLSETS
  • GITHUB_TOOLS
  • GITHUB_DYNAMIC_TOOLSETS
  • GITHUB_READ_ONLY
  • GITHUB_LOCKDOWN_MODE
  • LOG_LEVEL

Security Notes

The extension handles sensitive GitHub Personal Access Tokens (PATs) responsibly. It retrieves the PAT from the securely stored `gh` CLI credentials and passes it to the Docker container via environment variables. The PAT is never stored by the extension itself, and the Docker container runs with `--rm` to ensure automatic cleanup, preventing data persistence. The Docker client initialization from environment variables (`client.FromEnv`) is standard practice. No `eval` or similar dangerous patterns are used. The primary security risk would be if the underlying `github-mcp-server` Docker image itself had vulnerabilities, which is outside the scope of this extension's direct code.

Similar Servers

Stats

Interest Score38
Security Score9
Cost ClassLow
Stars11
Forks1
Last Update2025-12-05

Tags

GitHub CLIDockerMCP ServerAuthenticationGo