github-repository-analyzer
GitHub Repository Analyzer
一个由 LLM 驱动的 GitHub 仓库分析工具,允许用户提供 GitHub 仓库 URL,并就仓库提出自然语言问题。
该应用通过暴露为 MCP 工具的 GitHub API 获取仓库信息和源代码,然后使用本地 LLM 生成基于所检索仓库证据的答案。
功能
从终端分析不同的 GitHub 仓库
支持将仓库 URL 与问题分开输入
使用自然语言提问
提出仓库整体层面的问题
提出关于函数和代码的实现问题
搜索仓库源代码
读取特定仓库文件或行范围
获取仓库元数据
获取仓库文件结构
使用 MCP 将仓库操作暴露为工具
使用 LangGraph 管理分析工作流
通过 Ollama 使用本地 LLM
让实现答案以检索到的仓库源代码为依据
重试临时性 GitHub API 故障
Related MCP server: GitHub Repository Intelligence MCP Server
架构
User
|
v
main.py
|
v
LangGraph
graph.py
|
v
MCP Client
mcp_client.py
|
v
MCP Server
mcp_server.py
|
v
repository_tools.py
|
v
github_client.py
|
v
GitHub REST API
|
v
Repository Information
and Source Code
|
v
LLM
|
v
Final AnswerThis server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
An MCP server that gives your AI access to the source code and docs of all public github repos
Ask any GitHub repository a question. Get source-backed answers.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Related MCP Servers
- FlicenseCqualityCmaintenanceExposes GitHub repository data via MCP tools, a resource, and a prompt, enabling repo summaries, issue/PR listing, keyword search, and repo health review.4-
- FlicenseNot gradedqualityCmaintenanceEnables large language models to explore, inspect, and analyze GitHub repositories through natural-language queries, using MCP tools to retrieve repository data, file structures, file contents, and code search results from the GitHub REST API.-
- AlicenseBqualityBmaintenanceEnables AI assistants to query GitHub repository insights such as health, commit activity, stale pull requests, contributor stats, releases, and issue backlogs through MCP tools.6MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients such as Claude Desktop, Cline, and Cursor to extract information from GitHub repositories, including repository summaries, project directory structure, and file contents. It exposes these capabilities as tools that can be invoked directly from a natural-language chat session.-