MCP Catalogs
Home

mcp-git-ingest

by adhikasp·306·Score 44

A Model Context Protocol server that reads GitHub repository structures and important files.

githubdeveloper-toolsfile-system
41
Forks
10
Open issues
16 mo ago
Last commit
2d ago
Indexed

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:

you:Analyzing GitHub repositories without cloning them locally
you:Understanding codebase structure before diving into implementation details
you:Extracting specific files from repositories for documentation or analysis purposes
you:Does this server clone the entire repository to my machine?
you:What happens if I request a file from a private repository?

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 README
  • github_directory_structuregithub_directory_structure(repo_url: str) -> str

    Returns 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

github-mcpgitingestrepo-analyzer

Installation

Installation

  1. Install with uvx:
uvx --from git+https://github.com/adhikasp/mcp-git-ingest mcp-git-ingest
  1. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.