Mcp Repo2llm Server
@crisschan
About Mcp Repo2llm Server
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-repo2llm-server": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with-editable",
"/mcp-repo2llm",
"mcp",
"run",
"/mcp-repo2llm/mcp-repo2llm-server.py"
],
"env": {
"GITHUB_TOKEN": "your-github-token",
"GITLAB_TOKEN": "your-gitlab-token"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Mcp Repo2llm Server?
Mcp Repo2llm Server is an MCP server that transforms code repositories into LLM-friendly formats, bridging the gap between traditional codebases and AI language models. It is based on the RepoToTextForLLMs project.
How to use Mcp Repo2llm Server?
Install and configure the server via uv with the required environment variables GITHUB_TOKEN and GITLAB_TOKEN. Invoke the tools get_github_repo, get_gitlab_repo, or get_local_repo with a repository URL and optional branch (default master) to receive the repository contents as formatted text.
Key features of Mcp Repo2llm Server
- Smart Repository Scanning: processes entire codebases while preserving structure
- Context Preservation: maintains relationships and contextual information between code files
- Multi-language Support: language-specific optimizations for various programming languages
- Metadata Enhancement: enriches code with relevant metadata for better LLM understanding
- Efficient Processing: optimized for large repositories with minimal resource usage
Use cases of Mcp Repo2llm Server
- Feed entire codebases to LLMs for analysis or code generation while retaining structural context
- Convert GitLab, GitHub, or local repositories into a single text document for AI tool consumption
- Standardize repository documentation and metadata for consistent LLM processing across projects
- Enable AI-powered code review or refactoring by providing clean, structured repository text
FAQ from Mcp Repo2llm Server
What tokens are required to use the server?
The server requires GITHUB_TOKEN and GITLAB_TOKEN environment variables to authenticate with GitHub and GitLab respectively.
Which repository hosts are supported?
The server supports GitHub (get_github_repo), GitLab (get_gitlab_repo), and local file system repositories (get_local_repo).
What is the default branch used when fetching a repository?
The default branch is master for both GitHub and GitLab tools, but you may specify a different branch via the branch parameter.
Does the server have any runtime dependencies?
Yes, the server requires uv and the mcp[cli] package. It is run as a Python script (mcp-repo2llm-server.py) based on the RepoToTextForLLMs library.
What does the output contain?
The tools return all project information and structure from the repository as a single formatted text string, suitable for input to LLMs.
Frequently asked questions
What tokens are required to use the server?
The server requires `GITHUB_TOKEN` and `GITLAB_TOKEN` environment variables to authenticate with GitHub and GitLab respectively.
Which repository hosts are supported?
The server supports GitHub (`get_github_repo`), GitLab (`get_gitlab_repo`), and local file system repositories (`get_local_repo`).
What is the default branch used when fetching a repository?
The default branch is `master` for both GitHub and GitLab tools, but you may specify a different branch via the `branch` parameter.
Does the server have any runtime dependencies?
Yes, the server requires `uv` and the `mcp[cli]` package. It is run as a Python script (`mcp-repo2llm-server.py`) based on the RepoToTextForLLMs library.
What does the output contain?
The tools return all project information and structure from the repository as a single formatted text string, suitable for input to LLMs.
Basic information
More Other MCP servers
Awesome Mlops
visengerA curated list of references for MLOps
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

DeepMark
DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Comments