mcp-git-ingest
by adhikasp·★ 306·Score 44
A Model Context Protocol server that reads GitHub repository structures and important files.
Overview
The mcp-git-ingest server provides two main tools: github_directory_structure for exploring repository hierarchies and github_read_important_files for extracting content from specific files. It uses GitPython to clone repositories temporarily and generate tree representations with Unicode characters. The implementation includes proper error handling, cleanup mechanisms to prevent temporary file accumulation, and optimizations through hash-based directory naming to potentially reuse cloned repositories.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
When you need to quickly analyze GitHub repository structures or read specific files as part of an AI workflow, especially for public repositories.
When NOT to choose this
When working with private repositories requiring authentication, or when analyzing repositories with large binary files that might exceed memory limits.
Tools this server exposes
2 tools extracted from the READMEgithub_directory_structuregithub_directory_structure(repo_url: str) -> strReturns a tree-like representation of a repository's directory structure
github_read_important_filesgithub_read_important_files(repo_url: str, file_paths: List[str]) -> dict[str, str]Reads and returns the contents of specified files in a repository
Comparable tools
Installation
Installation
- Install with uvx:
uvx --from git+https://github.com/adhikasp/mcp-git-ingest mcp-git-ingest- Configure in Claude Desktop:
{
"mcpServers": {
"mcp-git-ingest": {
"command": "uvx",
"args": ["--from", "git+https://github.com/adhikasp/mcp-git-ingest", "mcp-git-ingest"]
}
}
}FAQ
- Does this server clone the entire repository to my machine?
- No, it clones repositories to temporary directories and ensures they're cleaned up after processing.
- What happens if I request a file from a private repository?
- The server will fail to clone the repository unless you've configured authentication properly for git operations.
Compare mcp-git-ingest with
Last updated · Auto-generated from public README + GitHub signals.