github
This is github search MCP Server
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:
- Install uv if you haven’t already
- Follow the uv installation guide: https://docs.astral.sh/uv/
- Install server dependencies via uv
- uv PyGithub python-dotenv
- 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)
- Configure the client to use the MCP server (see how_to_use for example configuration)
- 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
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP