mcp-git-ingest

The MCP Git Ingest repository provides a Model Context Protocol server that reads GitHub repository structures and important files, offering tools to analyze directory structure and file contents for code understanding.

244
6

MCP Git Ingest

A Model Context Protocol (MCP) server designed to read GitHub repository structures and important files. It is inspired by gitingest.

Configuration

The configuration section provides a JSON snippet demonstrating how to set up the mcp-git-ingest server. It specifies the command to execute (uvx) and the arguments needed to install and run the server from the GitHub repository.

Usage

The usage section illustrates how to use the server with mcp-client-cli. It shows an example of using the llm read command to analyze a GitHub repository. The server provides two main tools: github_directory_structure to return a tree-like representation of a repository's directory structure, and github_read_important_files to read and return the contents of specified files in a repository. The technical implementation involves cloning the repository, generating a directory tree, reading specified files, and cleaning up temporary directories. It uses fastmcp for the MCP server and gitpython for Git operations.

Repository

AD
adhikasp

adhikasp/mcp-git-ingest

Created

December 15, 2024

Updated

March 27, 2025

Language

Python

Category

Developer Tools