What is GitHub MCP Server?
A custom-built MCP server that provides GitHub integration features through various tools and resources, allowing AI assistants or clients to interact with GitHub data programmatically.
How to use GitHub MCP Server?
Install dependencies with pip install -r requirements.txt, create a .env file with your GITHUB_TOKEN, and run python server.py. The server then exposes tools and resources for interacting with GitHub (e.g., user info, repositories, issues, commit statuses).
Key features of GitHub MCP Server
- Get user information and profile details
- List user repositories and followers
- Get and create repository issues
- Get commit statuses for a specific SHA
- Retrieve owner (authenticated user) information
- Resource-based access to GitHub data via custom URI scheme
- Simple setup with a personal access token
Use cases of GitHub MCP Server
- Fetch a GitHub user’s profile and public repositories
- List followers of a given GitHub user
- Retrieve open issues from a repository, optionally with labels
- Create a new issue with title, body, and labels
- Check commit statuses (CI/CD results) for a specific commit
评论