The Gitingest MCP Server integrates with AI assistants via Model Context Protocol (MCP) to analyze and ingest Git repositories into a structured text format.
- Repository Analysis: Analyzes repositories from URLs or local paths, providing codebase insights
- Flexible Filtering: Supports filtering by file size (
max_file_size
), patterns (include_patterns
,exclude_patterns
), and specific branches - Structured Output: Returns repository summaries, file tree structures, and content in an AI-friendly format
- Multiple Installation Options: Available via PyPI, GitHub, or local installation with configurable settings
Analyzes Git repositories and transforms them into structured text digests, supporting filtering by file size, patterns, and branches to help AI assistants understand codebases.
Enables ingestion of GitHub repositories, extracting repository summaries, file structures, and content to provide comprehensive codebase insights.
Supports installation through PyPI, allowing the server to be easily integrated with AI assistants via package management.
Gitingest MCP Server
A Model Context Protocol (MCP) server implementation that integrates with gitingest for turning any Git repository into a simple text digest of its codebase.
Features
- Easy integration with AI assistants through the Model Context Protocol
- Git repository analysis and ingestion capabilities
- Support for filtering files by size, patterns, and branches
- Returns comprehensive repository information including summaries, file structure, and content
Usage
Configuration Options
Add the following configuration to your AI assistant's settings to enable gitingest-mcp as an MCP server:
PyPI Installation
GitHub Installation
Local Installation
API
The server provides the following tool:
ingest_git
Analyzes a Git repository and returns its content in a structured format.
Parameters:
source
: The URL of a Git repository or a local directory pathmax_file_size
(optional): Maximum allowed file size in bytes (default: 10MB)include_patterns
(optional): Pattern or set of patterns specifying files to include (e.g., "*.md, src/")exclude_patterns
(optional): Pattern or set of patterns specifying files to excludebranch
(optional): The branch to clone and analyze (default: "main")
Returns:
A string containing:
- Repository summary
- Tree-like structure of the files
- Content of the repository files
Resources
- gitingest website: https://gitingest.com/
- gitingest repository: https://github.com/cyclotruc/gitingest
License
See the LICENSE file for details.
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Gitingest MCP Server
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityMCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.Last updated -1843TypeScript
- AsecurityFlicenseAqualityMCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.Last updated -6Python
- Python