github mcp analyzer
Enables Large Language Models to analyze GitHub repositories in real-time, providing tools for retrieving repository information, analyzing issues, accessing documentation, and visualizing activity.
Enables Large Language Models to analyze GitHub repositories in real-time, providing tools for retrieving repository information, analyzing issues, accessing documentation, and visualizing activity.
A Model Context Protocol (MCP) server that enables Large Language Models to analyze GitHub repositories in real-time. This server provides tools for retrieving repository information, analyzing issues, accessing documentation, and visualizing activity.
git clone <repository-url>
cd github-repo-analyzer
python -m venv venv
source venv/bin/activate # On Windows: venvScriptsactivate
pip install -r requirements.txt
.env
file with your GitHub API token:cp .env.example .env
Edit the .env
file and replace your_github_token_here
with your actual GitHub Personal Access Token.
To start the server in development mode with the MCP Inspector:
mcp dev src/server.py
This will open a web interface in your browser where you can test the server's tools.
To register the server with Claude Desktop:
mcp install src/server.py
After registering, restart Claude Desktop. You can then interact with the GitHub Repository Analyzer by asking Claude questions about GitHub repositories.
github-repo-analyzer/
├── src/
│ ├── github_tools.py # GitHub API client implementation
│ └── server.py # MCP server implementation
├── requirements.txt # Dependencies
├── .env.example # Example environment variables
├── .gitignore # Git ignore file
└── README.md # Project documentation
To add a new tool to the server, follow these steps:
GitHubAPIClient
class in github_tools.py
server.py
using the @server.tool
decoratorTo test the server, use the MCP Inspector as described in the Usage section. You can also write unit tests for the GitHub API client functionality.