Get the FREE Ultimate OpenClaw Setup Guide →

mcp -for-Github

Updated description by github_update_repository test

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Clone the MCP server repository or obtain the package that includes the GitHub MCP server.
  2. Create a virtual environment and activate it:
    • python -m venv venv
    • source venv/bin/activate # Unix/macOS
    • venv\Scripts\activate # Windows
  3. Install dependencies (adjust if a requirements.txt or setup.py is provided):
    • pip install -r requirements.txt
  4. Run the MCP server:
    • python -m github_mcp_server
    • If a different entry point is used in your distribution, adjust the command accordingly.
  5. 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

Sponsor this space

Reach thousands of developers