Gitingest MCP Server
Provides analysis and content access for Git repositories, including repository summaries, file/directory structures, and full content with configurable filtering options.
Enables access to GitHub repositories including private repositories through Personal Access Token authentication for repository analysis and content ingestion.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gitingest MCP Server analyze https://github.com/example/repo and show me the file structure"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gitingest MCP server
An MCP server for gitingest that provides access to Git repository analysis through the Model Context Protocol (MCP). This server leverages the gitingest library to analyze Git repositories and make their content available in a format optimized for LLMs.
Overview
This MCP server provides a single unified tool for accessing Git repository data. It automatically handles repository ingestion as needed, so users can immediately query repository content without an explicit ingestion step.
Related MCP server: mcp-git
Tool: gitingest
The server provides a single tool called gitingest that can be used to analyze Git repositories. The tool accepts the following parameters:
repo_uri(required): URL or local path to the Git repositoryresource_type: Type of data to retrieve (summary,tree,content, orall). Default issummary.max_file_size: Maximum file size in bytes to include in the analysis. Default is 10MB.include_patterns: Comma-separated patterns of files to include in the analysis.exclude_patterns: Comma-separated patterns of files to exclude from the analysis.branch: Specific branch to analyze.output: File path to save the output to.max_tokens: Truncates the response to a specified number of tokens.
Accessing Private Repositories
You can ingest private GitHub repositories by providing a GitHub Personal Access Token (PAT).
Recommended: Set an Environment Variable in your MCP Config
This is the best approach for persistent configuration. Add an env block to your server definition in your MCP configuration file. The gitingest library will automatically use the GITHUB_TOKEN environment variable.
"mcpServers": {
"mattdepaolis-gitingest-mcp": {
"command": "uvx",
"args": [
"mattdepaolis-gitingest-mcp"
],
"env": {
"GITHUB_TOKEN": "github_pat_..."
}
}
}Resource Types and Large Repositories
For large repositories, it's recommended to first request only the summary (which is the default). After ingestion, you can access more detailed information through the resources:
Use the
treeresource to explore the repository structureUse the
contentresource to access the full content (if not too large)
If the repository is too large, consider using include_patterns and/or exclude_patterns to limit the scope of the ingestion.
Accessing Resources After a Tool Call
After you call the gitingest tool for a repository, the server defines resources for that repository:
Summary: A high-level summary of the repository
Tree: The file/directory structure
Content: The full content (subject to size limits)
These resources can be accessed individually via the resources interface in any MCP-compatible client. This is useful for browsing or fetching specific aspects of a repository after ingestion.
Debugging
The best way to debug MCP servers is with the MCP Inspector.
You can launch the Inspector with your local server using this command:
npx @modelcontextprotocol/inspector uv --directory /Users/matthias/Desktop/ai_projects/MCP-Server-Gitingest/mattdepaolis-gitingest-mcp run mattdepaolis-gitingest-mcpor using uvx for the mcp server:
npx @modelcontextprotocol/inspector uvx https://github.com/mattdepaolis/mattdepaolis-gitingest-mcp.gitor using the PyPI package:
npx @modelcontextprotocol/inspector uvx mattdepaolis-gitingest-mcpUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Available Tools
1 toolgitingestB
Access Git repository data with automatic ingestion as needed
Inputs: repo_uri (required), resource_type, max_file_size, include_patterns, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'gitingest' has a clearly defined purpose of accessing Git repository data with automatic ingestion, making it impossible for an agent to confuse it with other tools.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'gitingest' follows a single pattern with no deviations or mixing of conventions to evaluate, ensuring predictability.
A single tool is generally too few for a server's purpose, as it limits functionality and suggests an incomplete or overly narrow scope. For a Git-related server, one tool is insufficient to cover typical operations like cloning, committing, or branching, making it feel thin and underdeveloped.
The tool surface is severely incomplete for a Git domain. While 'gitingest' handles data access and ingestion, it lacks essential operations such as repository management, version control actions, or querying specific Git objects, leading to significant gaps that will likely cause agent failures in broader workflows.
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Ask any GitHub repository a question. Get source-backed answers.
Search, read and explain your GitHub repositories: code, symbols, imports, history and ownership.
Codebase memory for AI coding agents: files, lines, callers and tests for any public GitHub repo.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to fetch, search, and retrieve markdown content from remote Git repositories. Supports both public and private repositories with authentication, allowing AI assistants to access documentation and notes stored in Git.MIT
- AlicenseBqualityDmaintenanceEnables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.1579 npmMIT
- AlicenseAqualityDmaintenanceEnables Claude to explore and analyze remote Git repositories, providing structured file contents and token estimates.4MIT
- AlicenseAqualityDmaintenanceConnects LLMs and AI agents directly to GitHub repositories, enabling repository inspection, file and tree exploration, code search, commit history, issues, pull requests, and releases for both public and private repos.13MIT