repo-to-txt-mcp

repo-to-txt-mcp

3.1

If you are the rightful owner of repo-to-txt-mcp 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.

An MCP server for analyzing and converting Git repositories to text files for LLM context.

repo-to-txt-mcp is a Machine Code Protocol (MCP) server that allows you to analyze GitHub repositories or local folders and convert them into structured text files. This is particularly useful for providing context about repositories to large language models (LLMs) like GPT-4. This project extends the functionality of the repo-to-txt CLI tool to provide a web API that can be integrated into other applications, particularly Cursor's MCP system.

Features

  • Repository Analysis: Analyze both local and remote Git repositories
  • Structured Output: Generate formatted text with folder structure and concatenated file contents
  • File Filtering: Include or exclude files based on extensions
  • Token Management: Limit output size by token count
  • Easy Integration: Designed to work seamlessly with Cursor's MCP system