Basic information
About repo-to-txt-mcp Server
MCP server for analyzing and converting Git repositories to text files for LLM context
repo-to-txt-mcp is a MCP server in the Version Control category listed in the AddMCP.net directory, published by chromewillow. Supported transport: stdio. Runtime: python. License: MIT license. Source code is hosted on github.com. Related topics: git-analysis, llm-context, repo-to-txt.
Setup
{
"mcpServers": {
"repo-to-txt-mcp": {
"command": "node",
"args": [
"smithery-wrapper.js"
]
}
}
}
{
"mcpServers": {
"repo-to-txt-mcp": {
"command": "node",
"args": [
"smithery-wrapper.js"
]
}
}
}
{
"servers": {
"repo-to-txt-mcp": {
"command": "node",
"args": [
"smithery-wrapper.js"
]
}
}
}
repo-to-txt-mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"repo-to-txt-mcp": {
"command": "node",
"args": [
"smithery-wrapper.js"
]
}
}
}
repo-to-txt-mcp tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is repo-to-txt-mcp?
repo-to-txt-mcp is an MCP server that analyzes and converts Git repositories (remote or local) into structured text files for LLM context. It is designed for developers who want to provide repository context to large language models like GPT-4, and integrates with Cursor's MCP system.
How to use repo-to-txt-mcp?
Install Python 3.8+, Node.js 14+, and Git, then install dependencies with pip install -r requirements.txt and npm install. Start the server by running node smithery-wrapper.js (available at http://localhost:8000). Use the POST /analyze endpoint to submit analysis requests with JSON payloads specifying a source URL or local path, file filters, and token limits.
Key features of repo-to-txt-mcp
- Analyze both local and remote Git repositories
- Generate structured text with folder structure and file contents
- Include or exclude files by extension
- Limit output size by token count
- Integrates with Cursor's MCP system
- Cross-platform (Windows, macOS, Linux)
Use cases of repo-to-txt-mcp
- Provide full repository context to LLMs during code review or Q&A
- Convert repository contents into a single structured text for training or analysis
- Filter repositories to only include relevant files for specific tasks
- Use within Cursor conversations to give the AI context about a project
Frequently asked questions
1 How do I install repo-to-txt-mcp?
Prerequisites: Python 3.8+, Node.js 14+, Git. See the Installation Guide for direct, Docker, or GitHub Container Registry options.
2 How can I integrate repo-to-txt-mcp with Cursor?
The server is designed to integrate with Cursor to provide repository context during conversations. Refer to the Cursor Integration Guide in the repository for setup instructions.
3 What API endpoints does repo-to-txt-mcp expose?
The server provides a POST /analyze endpoint that accepts a JSON payload with a source (URL or local path), optional include/exclude file extension filters, and a return_file boolean.
4 Does repo-to-txt-mcp support Docker?
Yes, a Dockerfile is included. Build and run with docker build -t repo-to-txt-mcp . and docker run -p 8000:8000 repo-to-txt-mcp.
5 Can I limit the output size?
Yes, the server includes token management to limit output size by token count (not detailed further in the README).
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In