mcp -for-Github
Updated description by github_update_repository test
claude mcp add --transport stdio crypto-ninja-mcp-server-for-github python -m github_mcp_server \ --env GITHUB_TOKEN="GitHub token with required permissions (PAT or App token)"
How to use
This MCP server provides automated GitHub workflow capabilities through a single, code-first interface. It exposes a large set of tools to manage and query GitHub resources—ranging from repository and issue handling to pull request operations, workflows, and notifications—while optimizing responses for token efficiency. Clients typically invoke tools via the MCP tool interface (e.g., callMCPTool) and can request responses in formats such as compact, json, or markdown to trade off verbosity and bandwidth. The server is designed to work with token-aware agents, delivering compact responses for discovery and routine status checks, and full JSON data when detailed fields are required. Use the built-in workflow and PR-related tools to automate tasks like triggering actions, querying workflow runs, managing artifacts, and performing repository operations. The system also supports code search and file management within repositories for AI-assisted development workflows.
How to install
Prerequisites:
- Python 3.10+ installed on the host
- Git installed
- Internet access to fetch dependencies
Step-by-step installation:
- Clone the MCP server repository or obtain the package that includes the GitHub MCP server.
- Create a virtual environment and activate it:
- python -m venv venv
- source venv/bin/activate # Unix/macOS
- venv\Scripts\activate # Windows
- Install dependencies (adjust if a requirements.txt or setup.py is provided):
- pip install -r requirements.txt
- Run the MCP server:
- python -m github_mcp_server
- If a different entry point is used in your distribution, adjust the command accordingly.
- Configure environment variables as needed (see mcp_config for GITHUB_TOKEN).
Optional:
- Set up a systemd service or a background runner for production deployments.
- Configure TLS termination and reverse proxy if exposing externally.
Additional notes
Environment variables and configuration:
- GITHUB_TOKEN is required to authenticate to GitHub; use a token with appropriate permissions for all used operations.
- Ensure network egress to GitHub APIs is allowed in your hosting environment.
- If you encounter rate-limit or authentication issues, verify token scopes and consider GitHub App-based authentication where supported by the tooling.
- For large result sets, prefer response_format: compact for discovery and json only when full details are necessary to minimize token usage.
- Regularly update the server to pick up new tools and security fixes, as documented in the project changelog.
Related MCP Servers
lc2mcp
Convert LangChain tools to FastMCP tools
fal
MCP server for Fal.ai - Generate images, videos, music and audio with Claude
mcp-config-manager
Manage MCP server configs across Claude, Gemini & other AI systems. Interactive CLI for server enable/disable, preset management & config sync.
rlm-claude
Recursive Language Models for Claude Code - Infinite memory solution inspired by MIT CSAIL paper
web-research-assistant
MCP server for SearXNG with 13 production-ready tools for web search, package info, GitHub integration, error translation, API docs, and more
gmail
A robust Model Context Protocol server for Gmail integration with intelligent authentication and comprehensive email operations