PyGithub MCP Server
by AstroMined
The PyGithub MCP Server provides tools for interacting with the GitHub API through PyGithub. It enables AI assistants to perform GitHub operations like managing issues, repositories, and pull requests.
Last updated: N/A
What is PyGithub MCP Server?
A Model Context Protocol (MCP) server that provides tools for interacting with the GitHub API through PyGithub, allowing AI assistants to perform GitHub operations.
How to use PyGithub MCP Server?
Configure the server in your MCP settings, providing the path to the Python executable and the GITHUB_PERSONAL_ACCESS_TOKEN
. You can optionally configure tool groups using a JSON configuration file or environment variables to enable/disable specific functionalities like issues, repositories, or pull requests. Example usage includes creating, updating, and listing issues and comments, as well as managing labels.
Key features of PyGithub MCP Server
Modular Tool Architecture
Complete GitHub Issue Management
Smart Parameter Handling
Robust Implementation
Use cases of PyGithub MCP Server
Automated issue management
AI-powered pull request reviews
GitHub repository automation
Integration with AI assistants for GitHub tasks
FAQ from PyGithub MCP Server
How do I configure the server?
How do I configure the server?
Add the server to your MCP settings with the correct command, arguments, and environment variables (including GITHUB_PERSONAL_ACCESS_TOKEN
).
How do I enable/disable tool groups?
How do I enable/disable tool groups?
You can configure tool groups using a JSON configuration file specified by the PYGITHUB_MCP_CONFIG
environment variable, or by using individual environment variables like PYGITHUB_ENABLE_ISSUES
.
What dependencies are required?
What dependencies are required?
Python 3.10+, MCP Python SDK, Pydantic, PyGithub, and UV package manager.
How do I run tests?
How do I run tests?
Use the pytest
command in the project's root directory. Be aware that some tests are currently failing.
What do I do if the server fails to start?
What do I do if the server fails to start?
Verify the venv Python path, ensure all requirements are installed, and check that the GITHUB_PERSONAL_ACCESS_TOKEN
is set and valid.