github-analyzer-mcp

github-analyzer-mcp

Enables Claude to analyze GitHub repositories with tools for health scoring, contributor analysis, issue tracking, code search, and more.

Category
访问服务器

README

🔌 GitHub Repository Analyzer MCP

<div align="center">

Banner

<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

Footer

</div>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选