mcp-git-repo-browser
If you are the rightful owner of mcp-git-repo-browser and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Node.js implementation of a Git repository browser using the Model Context Protocol (MCP).
The MCP Git Repo Browser is a server application implemented in Node.js that allows users to browse Git repositories using the Model Context Protocol (MCP). It provides tools to visualize the directory structure of a repository and read important files within it. The server is designed to be efficient by reusing cloned repositories and creating deterministic temporary directories. It leverages Node.js native modules and additional libraries like fs-extra and simple-git for enhanced functionality. The server is compatible with MCP clients and runs on stdio, making it easy to integrate into existing workflows.
Features
- Provides a tree-like representation of a repository's directory structure.
- Reads and returns the contents of specified files in a repository.
- Uses Node.js native modules for core functionality.
- Implements clean error handling and resource cleanup.
- Reuses cloned repositories for efficiency.
Tools
git_directory_structure
Generate a tree representation of the repository directory structure
git_read_important_files
Read the contents of the specified file in the repository