Skip to main content
Glama
MidhunaMohanraj

github-analyzer-mcp

πŸ”Œ GitHub Repository Analyzer MCP

Banner


🌟 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: GitHub Repository Analyzer

πŸ› οΈ 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

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.

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

Footer

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MidhunaMohanraj/GitHub-Analyzer-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server