github-mcp-server-local
Verified Safeby Calvin-Francis
Overview
Connects AI tools (agents, assistants, chatbots) directly to GitHub's platform to read repositories, manage issues and PRs, analyze code, and automate workflows through natural language interactions.
Installation
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN="<YOUR_GITHUB_PAT>" ghcr.io/github/github-mcp-serverEnvironment Variables
- GITHUB_PERSONAL_ACCESS_TOKEN
- GITHUB_HOST
- GITHUB_TOOLSETS
- GITHUB_TOOLS
- GITHUB_DYNAMIC_TOOLSETS
- GITHUB_READ_ONLY
- GITHUB_LOCKDOWN_MODE
Security Notes
The project extensively documents secure handling of GitHub Personal Access Tokens (PATs) via environment variables, explicitly advising against hardcoding. Input validation is performed on tool parameters, and response content (like issue/PR titles/bodies) is sanitized using `bluemonday` to mitigate injection risks. A 'lockdown mode' feature restricts content visibility in public repositories based on user push access, enhancing privacy and security. The system's reliance on GitHub's API permissions means access is inherently constrained by the authenticated user's privileges.
Similar Servers
git-mcp-server
A Model Context Protocol (MCP) server that provides Git-specific tools and resources for AI/LLM agents to interact with version control systems.
cursor-cloud-agent-mcp
This MCP server acts as a gateway, allowing AI assistants to interact with the Cursor Cloud Agents API to create, manage, and monitor automated tasks on GitHub repositories.
mcp-server-for-Github
Provides comprehensive GitHub workflow automation for AI-powered development teams, including Actions monitoring, advanced PR management, intelligent code search, and complete file management.
poly-git-mcp
Provides Model Context Protocol (MCP) tools for AI assistants to manage Git repositories, issues, pull requests, and CI/CD across GitHub, GitLab, Gitea, and Bitbucket platforms.