How aniru18/github-mcp works
This is a Python MCP server for browsing and analyzing GitHub repositories. A user sends a natural-language request through an MCP client; the server dispatches it to a repository tool, which returns formatted repository information. The tools cover repository metadata and structure, code and file access, history and collaboration, comparisons, analysis, URLs, and local cloning. Vercel exposes the HTTP app through an ASGI entry point; local use is also documented. The excerpts establish the entry-point wiring, while tool capabilities and deployment modes are taken from the README.
Main entry points: server.py MCP Tool Server · index.py Vercel ASGI Entry
Components 13
MCP Runtime
- Vercel ASGI Entry
api/index.py - MCP Tool Server
server.py
Repository Access
- Repository Metadata
server.py - Tree and File Access
server.py - Code Search
server.py
Repository Insights
- History and Collaboration
server.py - Branch Comparison
server.py - Structural Analysis
server.py - File URLs
server.py
Local Operations
- Local Repository Clone
server.py
Other components
- MCP Client User
- GitHub
- Local Disk
Connections 18
- MCP Client User → MCP Tool Server: requests tools
README.md - Vercel ASGI Entry → MCP Tool Server: exposes HTTP app
api/index.py - MCP Tool Server → Repository Metadata: dispatches tools
README.md - MCP Tool Server → Tree and File Access: dispatches tools
README.md - MCP Tool Server → Code Search: dispatches tools
README.md - MCP Tool Server → History and Collaboration: dispatches tools
README.md - MCP Tool Server → Branch Comparison: dispatches tools
README.md - MCP Tool Server → Structural Analysis: dispatches tools
README.md - MCP Tool Server → File URLs: dispatches tools
README.md - MCP Tool Server → Local Repository Clone: dispatches tool
README.md - Repository Metadata → GitHub: queries metadata
README.md - Tree and File Access → GitHub: reads repository
README.md - Code Search → GitHub: searches code
README.md - History and Collaboration → GitHub: queries history
README.md - Branch Comparison → GitHub: compares revisions
README.md - Structural Analysis → GitHub: analyzes repository
README.md - File URLs → GitHub: resolves file URLs
README.md - Local Repository Clone → Local Disk: clones repository
README.md