github-analyzer-mcp
Enables Claude to analyze GitHub repositories with tools for health scoring, contributor analysis, issue tracking, code search, and more.
README
π GitHub Repository Analyzer MCP
<div align="center">
<p> <img src="https://img.shields.io/badge/MCP-Model%20Context%20Protocol-7c3aed?style=for-the-badge"/> <img src="https://img.shields.io/badge/Claude-Compatible-f97316?style=for-the-badge&logo=anthropic&logoColor=white"/> <img src="https://img.shields.io/badge/PyPI-github--analyzer--mcp-3776AB?style=for-the-badge&logo=pypi&logoColor=white"/> <img src="https://img.shields.io/badge/Python-3.10%2B-3776AB?style=for-the-badge&logo=python&logoColor=white"/> <img src="https://img.shields.io/badge/License-MIT-22C55E?style=for-the-badge"/> </p>
<p> <b>An MCP server that gives Claude 8 powerful GitHub analysis tools β analyze any repo, score its health, find issues, search code, and more β directly inside Claude Desktop.</b> </p>
</div>
π What This Does
Once installed, you can ask Claude things like:
"Analyze the health of the langchain repo" "Who are the top contributors to pytorch/pytorch?" "Find all open bug issues in fastapi" "Search for TODO comments in microsoft/vscode" "What languages does the Next.js repo use?" "Show me recent commits to the main branch of tensorflow"
Claude uses this MCP server to fetch real GitHub data and give you deep, structured analysis.
π οΈ Available Tools
| Tool | Description |
|---|---|
analyze_repo |
Full repo overview β stars, forks, metadata, activity |
get_contributors |
Top contributors with commit counts |
find_issues |
Open/closed issues with label filtering |
search_code |
Find code patterns across a repo |
get_languages |
Language breakdown with percentages |
analyze_commits |
Recent commit history and author patterns |
get_pull_requests |
Open/merged PRs with review metadata |
repo_health_score |
0-100 health score with improvement suggestions |
π¦ Installation
Option 1 β pip (recommended)
pip install github-analyzer-mcp
Option 2 β from source
git clone https://github.com/MidhunaMohanraj/github-analyzer-mcp
cd github-analyzer-mcp
pip install -e .
βοΈ Claude Desktop Configuration
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"github-analyzer": {
"command": "github-analyzer-mcp",
"env": {
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}
Then restart Claude Desktop. You'll see the GitHub tools available in Claude's tool panel.
GitHub Token (optional but recommended)
Without a token: 60 requests/hour limit. With a token: 5,000 requests/hour + access to private repos.
Get a free token at: github.com/settings/tokens β Generate new token (classic) β check public_repo scope.
π§ͺ Test Locally
# Set token (optional)
export GITHUB_TOKEN=your_token_here
# Run the server directly
github-analyzer-mcp
# Or test with MCP inspector
npx @modelcontextprotocol/inspector github-analyzer-mcp
π¬ Example Claude Conversations
Repo health check:
You: "Give me a health score for the huggingface/transformers repo" Claude: Uses
repo_health_scoreβ Returns 87/100, Grade A, with specific recommendations
Code search:
You: "Search for all uses of 'deprecated' in the requests library" Claude: Uses
search_codeβ Returns file locations and code snippets
Contributor analysis:
You: "Who are the top 5 contributors to kubernetes/kubernetes?" Claude: Uses
get_contributorsβ Returns ranked list with commit counts
π Project Structure
github-analyzer-mcp/
βββ src/github_analyzer_mcp/
β βββ __init__.py
β βββ server.py # 8 MCP tools
βββ pyproject.toml # PyPI config
βββ README.md
βββ LICENSE
πΊοΈ Roadmap
- [ ] Repository comparison tool (compare two repos side-by-side)
- [ ] GitHub Actions workflow analyzer
- [ ] Security vulnerability scanner via GitHub Advisory API
- [ ] Dependency graph analyzer
- [ ] Release history and changelog summarizer
π€ Contributing
PRs welcome! Open an issue first to discuss major changes.
π License
MIT β see LICENSE
<div align="center">
β Star this repo if you find it useful!
Built with β€οΈ using MCP Β· Compatible with Claude Desktop
</div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.