repo-to-txt-mcp
by chromewillow
An MCP server for analyzing and converting Git repositories to text files for LLM context. It extends the functionality of the repo-to-txt CLI tool to provide a web API that can be integrated into other applications.
Last updated: N/A
What is repo-to-txt-mcp?
repo-to-txt-mcp is a Machine Code Protocol (MCP) server that analyzes GitHub repositories or local folders and converts them into structured text files, providing context to large language models (LLMs).
How to use repo-to-txt-mcp?
Install the required packages using pip and npm, then start the server using node smithery-wrapper.js
. The server will be available at http://localhost:8000
. Use the API endpoints to analyze repositories, filter files, and manage token limits.
Key features of repo-to-txt-mcp
Repository Analysis
Structured Output
File Filtering
Token Management
Easy Integration
Cross-Platform
Use cases of repo-to-txt-mcp
Providing repository context to LLMs
Integrating with Cursor's MCP system
Analyzing local Git repositories
Automated documentation generation
Code understanding and summarization
FAQ from repo-to-txt-mcp
What is the purpose of this server?
What is the purpose of this server?
To analyze Git repositories and convert them into structured text files for LLM context.
What are the prerequisites for installation?
What are the prerequisites for installation?
Python 3.8+, Node.js 14+, and Git.
How do I install the server?
How do I install the server?
See the Installation Guide (docs/INSTALLATION.md) for detailed instructions on direct, Docker, and GitHub Container Registry installations.
How do I convert a GitHub repository?
How do I convert a GitHub repository?
Use the API endpoint /analyze
with the source
parameter set to the repository URL.
How do I filter files by extension?
How do I filter files by extension?
Use the include_only
and exclude
parameters in the API request to specify file extensions to include or exclude.