github-analyzer-mcp
Analyzes GitHub repositories: provides tools for repository overview, contributor statistics, issue tracking, code search, language breakdown, commit history, pull request analysis, and repo health scoring.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@github-analyzer-mcpanalyze the health of the fastapi repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π GitHub Repository Analyzer MCP
π 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.
Related MCP server: Repo Recap
π οΈ Available Tools
Tool | Description |
| Full repo overview β stars, forks, metadata, activity |
| Top contributors with commit counts |
| Open/closed issues with label filtering |
| Find code patterns across a repo |
| Language breakdown with percentages |
| Recent commit history and author patterns |
| Open/merged PRs with review metadata |
| 0-100 health score with improvement suggestions |
π¦ Installation
Option 1 β pip (recommended)
pip install github-analyzer-mcpOption 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
β Star this repo if you find it useful!
Built with β€οΈ using MCP Β· Compatible with Claude Desktop
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Access the GitHub API, enabling file operations, repository management, search functionality, andβ¦
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables Claude to access and manage GitHub repositories dynamically at runtime, including private repos, with tools for browsing files, searching code, and viewing commits, pull requests, and issues.111-
- FlicenseNot gradedqualityDmaintenanceEnables Claude to query GitHub repositories in plain English, fetching recent activity, release notes, issue triage, and health summaries via the GitHub API.-
- AlicenseNot gradedqualityCmaintenanceConnects Claude to GitHub repositories for querying repos, reviewing PRs, managing issues, searching code, and automating workflows.MIT
- FlicenseNot gradedqualityCmaintenanceProvides GitHub repository analysis tools for Claude, including repo summaries, commit history, issue tracking, contributor stats, and code quality assessment. Enables natural language queries about code quality, contributor activity, and repository comparisons.-