GitHub仓库检查器
STDIO用于GitHub仓库交互的MCP服务器
用于GitHub仓库交互的MCP服务器
A Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.
Clone this repository:
git clone https://github.com/yourusername/github-mcp-server.git cd github-mcp-server
Install dependencies:
pip install -r requirements.txt
Set up your GitHub token as an environment variable:
export GITHUB_TOKEN=your_github_token_here
Run the server:
python server.py
The server will start running on http://localhost:5000
.
The MCP server provides the following endpoints:
curl -X GET http://localhost:5000/mcp/discover
curl -X POST http://localhost:5000/mcp/execute \ -H "Content-Type: application/json" \ -d '{ "endpoint": "search_repositories", "parameters": { "query": "machine learning" } }'
curl -X POST http://localhost:5000/mcp/execute \ -H "Content-Type: application/json" \ -d '{ "endpoint": "get_repo_issues", "parameters": { "owner": "openai", "repo": "whisper" } }'
The server follows the Model Context Protocol specification to allow AI assistants to:
You can extend this server by:
discover()
functionexecute()
functionSee the demo video for a walkthrough of the server's capabilities.
MIT License
For questions or support, please open an issue on this repository.