Model Context Protocol (MCP) server that wraps gitingest to turn any Git repository into a structured text digest.
https://github.com/narumiruna/gitingest-mcpStop manually exploring codebases file by file. The gitingest-mcp server converts entire Git repositories into structured text digests that you can immediately feed to AI assistants or use for rapid codebase analysis.
You're reviewing a pull request from a repo you've never seen. Or trying to understand a new microservice. Or need to document a legacy codebase. Instead of spending 30 minutes clicking through GitHub or running find commands, you want the entire repository structure and content in one digestible format.
This MCP server wraps the battle-tested gitingest tool, giving you a single command to transform any Git repository into:
All returned as structured text that AI assistants can immediately understand and work with.
Code Reviews: Get the full context of a repository in seconds instead of tab-surfing through dozens of files.
Documentation: Feed an entire codebase to Claude or ChatGPT and ask it to write comprehensive documentation.
Legacy Analysis: Quickly understand what that 3-year-old service actually does without archaeology.
Onboarding: New team members can get a complete picture of a project's structure and content instantly.
Architecture Decisions: Analyze patterns across multiple repositories to make informed technical choices.
Install via uvx (recommended):
{
"mcpServers": {
"gitingestmcp": {
"command": "uvx",
"args": ["gitingestmcp@latest"]
}
}
}
Or install from source:
{
"mcpServers": {
"gitingestmcp": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/narumiruna/gitingest-mcp",
"gitingestmcp"
]
}
}
}
One tool, multiple options:
ingest_git(
source="https://github.com/user/repo", # URL or local path
max_file_size=10485760, # Skip huge files
include_patterns="*.py,src/", # Focus on what matters
exclude_patterns="*.log,node_modules/", # Skip the noise
branch="main" # Specify branch
)
Works seamlessly with any MCP-compatible AI assistant. Ask questions like:
The server handles the heavy lifting of repository ingestion while you focus on the analysis.
Every developer has felt the pain of trying to quickly understand a new codebase. Tools like tree, find, and manual exploration are slow and incomplete. Web interfaces are clunky for getting the full picture.
gitingest-mcp solves this by giving you the entire repository context in one structured output. It's the difference between reading a book one page at a time versus getting a complete summary with all the important details.
This tool belongs in your MCP toolkit because it turns repository exploration from a 30-minute task into a 30-second command.