mcp-git-ingest logo

mcp-git-ingestThis tool lets AI assistants explore any public GitHub repository. It creates a clear picture of the folder layout and reads specific files on your command. All cloning and temporary file cleanup runs

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

MCP Git Ingest is a Model Context Protocol server designed to help read GitHub repository structures and important files. It provides two main tools: `github_directory_structure` and `github_read_important_files`. The former returns a tree-like representation of a repository's directory structure, while the latter reads and returns the contents of specified files in a repository. The tool is built using `fastmcp` for creating an MCP server and `gitpython` for Git repository operations. It has features such as deterministic temporary directory creation, Unicode tree representation, and flexible file reading with error handling. MCP Git Ingest can be run as a CLI tool via `mcp-git-ingest` and is configured through `pyproject.toml`. It is designed to provide a robust and flexible way to programmatically explore and read GitHub repositories.

Key features

  • github_directory_structure: Returns a tree-like representation of a repository's directory structure
  • github_read_important_files: Reads and returns the contents of specified files in a repository
  • Automatic cloning and temporary file cleanup
  • Error handling for repository cloning and file reading
  • Deterministic temporary directory creation

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

Exploring a GitHub Repository

Use mcp-git-ingest to fetch the directory structure of a public GitHub repository and analyze its contents.

Reading Specific Files

Use mcp-git-ingest to read specific files from a GitHub repository, such as README.md or main.py.

Pros & Cons

Pros

  • Robust and flexible tool for programmatically exploring and reading GitHub repositories
  • Efficient cloning and cleanup mechanism
  • Error handling for repository cloning and file reading
  • Unique features like deterministic temporary directory creation and Unicode tree representation

Cons

  • Requires Python 3.8+
  • Depends on fastmcp for MCP server functionality

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

What dependencies must be installed to run the MCP server?

The tool depends on `fastmcp` for the Model Context Protocol server and `gitpython` for Git operations, both of which must be available in the Python environment.

Asked by Malik Rasheed · Jul 22, 2025

Can I use mcp-git-ingest to read only specific files from a repo?

Yes, the `github_read_important_files` tool lets you specify file paths, and it will return the contents of those files while handling any read errors gracefully.

Asked by Carmela Esposito · Jul 14, 2025

How does the tool handle temporary files after cloning a repository?

After cloning, mcp-git-ingest creates a deterministic temporary directory for the repository and automatically cleans it up when the operation completes, ensuring no residual files remain.

Asked by Zeynep Aydin · Jun 21, 2025

What versions of Python does mcp-git-ingest support?

mcp-git-ingest requires Python 3.8 or newer to run. Older Python versions will not be compatible with its dependencies.

Asked by Nils Johansson · Jun 21, 2025

Ask a question

MCP Servers alternatives