loading…
Search for a command to run...
loading…
Enables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency ana
Enables AI assistants to access live GitHub repository data without cloning, supporting repo summarization, file explanation, recent changes, and dependency analysis.
An MCP server that gives AI assistants like GitHub Copilot and Cursor live access to any GitHub repository — without cloning it first.
Ask your AI questions like:
And get answers backed by real-time GitHub data, not stale training data.
| Cursor / Copilot alone | This MCP server | |
|---|---|---|
| Explain code | ✅ Local files only | ✅ Any repo, anywhere |
| Live GitHub data | ❌ | ✅ Stars, forks, activity |
| Recent commits & PRs | ❌ | ✅ Last N days |
| Dependency audit | ❌ | ✅ Checks PyPI live |
| Private repos | ❌ | ✅ With your token |
| No cloning needed | ❌ | ✅ |
| Tool | What it does |
|---|---|
summarize_repo |
Summarizes a repo's purpose, structure, language, and key files |
explain_file |
Fetches and explains a specific file in any repo |
ask_repo |
Answers any freeform question about a repo |
recent_changes |
Shows commits and merged PRs from the last N days |
analyze_dependencies |
Lists dependencies and flags outdated packages via PyPI |
git clone https://github.com/Pranavvr/Repo_Explainer_MCP.git
cd Repo_Explainer_MCP
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Create a .env file in the project root:
cp .env.example .env
Then open .env and add your token:
GITHUB_TOKEN=your_github_token_here
Get a token at github.com/settings/tokens. Only
reporead scope needed.
Open your MCP config file:
Cmd + Shift + P → MCP: Open User MCP Configuration
Add this:
{
"servers": {
"github-repo-explainer": {
"command": "python3",
"args": ["/absolute/path/to/server.py"],
"env": {
"GITHUB_TOKEN": "your_github_token_here"
}
}
}
}
Replace the path with your actual path. Get it by running pwd in your project folder.
Open GitHub Copilot chat and try:
What does fastapi/fastapi do?
What changed in vercel/next.js in the last 7 days?
Are the dependencies in YOUR_USERNAME/YOUR_REPO outdated?
To test your tools without an AI client:
npx @modelcontextprotocol/inspector python3 server.py
Opens a browser UI where you can call each tool manually.
github-repo-explainer-mcp/
├── server.py # MCP server — defines and exposes the 5 tools
├── github_client.py # GitHub API wrapper — all data fetching logic
├── .env # Your GitHub token (never committed)
├── .env.example # Token template for others
├── requirements.txt # Dependencies
└── README.md
MIT
Run in your terminal:
claude mcp add github-repo-explainer-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.