Gitingest MCP Server
Enables analysis and querying of Git repository content (both public and private) through a unified tool that provides repository summaries, file structures, and full content optimized for LLM consumption.
README
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.
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 structure - Use 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-mcp
or using uvx for the mcp server:
npx @modelcontextprotocol/inspector uvx https://github.com/mattdepaolis/mattdepaolis-gitingest-mcp.git
or using the PyPI package:
npx @modelcontextprotocol/inspector uvx mattdepaolis-gitingest-mcp
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.