Get the FREE Ultimate OpenClaw Setup Guide →

github

This is github search MCP Server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio huangzelincute-github-mcp-server uv --directory D:/blog/github-mcp-server run github_server.py

How to use

This MCP server provides access to the GitHub search API via a MCP (Model Context Protocol) server managed through uv. It uses PyGithub and python-dotenv to authenticate and fetch data from GitHub, enabling client applications to perform searches and retrieve results through the MCP layer. To use it, first install the dependencies, then configure the MCP client to point at this server, and finally issue MCP requests through your client to perform GitHub searches or related operations exposed by the server.

In the client configuration, the server is defined under mcpServers with the name github_server. When started, the server runs within the uv-managed environment and exposes the GitHub API capabilities through the MCP interface. Use the client’s MCP tooling to send requests, handle responses, and manage any required environment variables (for example, GitHub tokens) as configured by the server.

How to install

Prerequisites:

  • uv (Python project management tool) installed on your system
  • Python dependencies for the server (PyGithub, python-dotenv) available to uv

Installation steps:

  1. Install uv if you haven’t already
  2. Install server dependencies via uv
    • uv PyGithub python-dotenv
  3. Prepare the server directory
    • Create or clone the directory that contains github_server.py and related files (in the example, D:/blog/github-mcp-server)
  4. Configure the client to use the MCP server (see how_to_use for example configuration)
  5. Start the server via the client configuration or manually using uv (see README example for the exact command)

Notes:

  • Ensure Python environment compatibility with PyGithub and python-dotenv.
  • If running on Windows, ensure the path in the configuration is accessible and correctly escaped.

Additional notes

Environment considerations:

  • The server relies on PyGithub; you may need a GitHub access token for higher rate limits or private repository access. If required, provide the token via environment variables supported by the server implementation.
  • The uv command in the client example uses a specific directory and a Python script (github_server.py). Ensure these paths are correct for your environment.
  • If you encounter permission or path issues, confirm that the directory is readable by the user running uv and that the Python script has execute permissions.
  • You can adjust configuration by editing the mcpServers entry in the client config to point to a different directory or script if your deployment layout changes.

Related MCP Servers

Sponsor this space

Reach thousands of developers