{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "github-github-mcp-server--run-the-github-mcp-server-locally-in-docker",
 "repo": "github/github-mcp-server",
 "repo_url": "https://github.com/github/github-mcp-server",
 "repo_slug": "github-github-mcp-server",
 "title": "Run the GitHub MCP server locally in Docker",
 "page_title": "How to run the GitHub MCP server locally in Docker with GitHub MCP Server",
 "summary": "Run GitHub's server on your machine with your own token, for hosts that do not support the remote server.",
 "who": "A developer on GitHub Enterprise or a host that needs a local stdio server.",
 "problem": "Some setups cannot reach or authenticate to the hosted server.",
 "outcome": "A local GitHub MCP server running in Docker with a token from your environment.",
 "steps": [
  "Install Docker and create a personal access token",
  "Store it in your shell with `export GITHUB_PAT=your_token_here` and add any .env file to .gitignore",
  "For Claude Code: `claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server`",
  "Restart the host and test a simple query"
 ],
 "agent_prompt": "Set up github/github-mcp-server locally in Docker for Claude Code using my GITHUB_PAT environment variable, confirm it lists my repos, and tell me which toolsets are on by default.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "A GitHub account",
  "An MCP host such as VS Code, Claude Code or Cursor",
  "For local use: Docker and a GitHub personal access token"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Keep the token in the environment and out of committed files; it acts as you on GitHub."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/github-github-mcp-server/run-the-github-mcp-server-locally-in-docker/",
 "md": "https://dedupedai.com/use-cases/github-github-mcp-server/run-the-github-mcp-server-locally-in-docker/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/github-github-mcp-server--run-the-github-mcp-server-locally-in-docker.json",
 "api_version": "v1"
}
