If you’re ever stuck with a bug that requires understanding a Github repo, you can now feed the full (or partial) repo in text format to an LLM using Gitingest MCP.
Gitingest is a library that allows you to flatten a GitHub repo to text
trelis-gitingest-mcp wraps Gitingest so you can pass it as an MCP tool!
I’ve got trelis-gitingest-mcp now as one of my default MCP servers in Claude Desktop and Windsurf/Cursor.
Put this in your mcp config:
"mcpServers": {
"trelis-gitingest-mcp": {
"command": "uvx",
"args": [
"git+https://github.com/TrelisResearch/gitingest-mcp"
]
}
}
# or for Windsurf (which doesn't support git+)
"mcpServers": {
"trelis-gitingest-mcp": {
"command": "uvx",
"args": [
"trelis-gitingest-mcp"
]
}
}
Cheers, Ronan
P.S. 🛠️ (NEW) Trelis Seminars - learn more here.
GitIngest MCP: A Tool for Analyzing GitHub Repositories with LLMs
GitIngest MCP is a Python library that wraps the GitIngest tool, enabling language models to analyze GitHub repositories through a standardized interface. The tool provides three key capabilities:
Core Functionality
Extracts content from any public GitHub repository
Generates repository summaries with token counts (using tiktoken)
Creates tree views showing folder/file structure
Produces flattened text content from repository files
Key Features
Maximum file size limits to exclude large files
Include/exclude patterns for targeting specific directories
Branch selection support
Optional file output for results
Token count tracking via tiktoken
Implementation Details
Supports nested directory patterns (e.g. "src/git-ingest/*") when using GitHub installation
PyPI package version has limited nested directory support
Currently only works with public repositories
Available as an MCP tool for Claude Desktop, Windsurf, and Cursor
Installation Options
For Claude Desktop and Cursor:
Install directly from GitHub repository
Full nested directory support
Configure via settings/developer menu
For Windsurf:
Install via PyPI package (trelis-gitingest-mcp)
Limited nested directory support
Configure through Cascade settings
Technical Limitations
Private repository access not currently supported
Nested directory patterns only work with GitHub installation
Double-star recursive patterns not supported in base GitIngest
Token limits may require selective directory targeting