Codebase MCP
Allows retrieving and analyzing remote GitHub repositories directly, enabling AI agents to explore and understand public codebases outside the current workspace
Supports outputting codebase analysis in Markdown format for better readability and documentation purposes
Mentioned as an example repository that can be analyzed using the remote codebase feature to understand specific components like testing frameworks
Enables formatting codebase output as XML, providing structured representation of code for further processing or analysis
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Codebase MCP analyze my current project and explain its main components"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codebase MCP
A Model Context Protocol (MCP) server implementation that provides tools to retrieve and analyze entire codebases using RepoMix.
This MCP allows AI Agents like Cursor's Composer Agent to automatically read and understand entire codebases at once, making it easier for developers to work with large codebases and for AI assistants to have comprehensive context of a project.
Features
📚 Codebase Retrieval: Retrieve the entire codebase as a single text output in different formats (XML, Markdown, Plain)
🌐 Remote Repository Support: Process remote GitHub repositories directly
💾 File Saving: Save the processed codebase to a file
🔧 Customizable Options: Control how the codebase is processed with various options (comments, line numbers, file summaries, etc.)
Related MCP server: CodeAlive MCP
Installation
From NPM (Recommended)
# Install the package globally
npm install -g codebase-mcp
# Install RepoMix (required dependency)
codebase-mcp installFrom GitHub
# Clone the repository
git clone https://github.com/DeDeveloper23/codebase-mcp.git
# Navigate to the project directory
cd codebase-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Install globally
npm install -g .
# Install RepoMix (required dependency)
codebase-mcp installIntegration with Cursor
To use this MCP with Cursor's Composer Agent:
Open Cursor IDE
Click the Composer icon in the sidebar
Click the "MCP Servers" button at the top
Click "Add new MCP server"
Fill in the details:
Name:
Codebase MCP(or any name you prefer)Type:
commandCommand:
codebase-mcp start
Click "Add" to save
Once added, the MCP will provide three powerful tools to the Composer Agent:
Available Tools
getCodebase
Purpose: Analyzes your current workspace/project
Use when: You want the AI to understand your entire codebase
Example prompt: "Please analyze my codebase to understand its structure"
getRemoteCodebase
Purpose: Fetches and analyzes any public GitHub repository
Use when: You want to explore or understand other projects
Example prompt: "Can you analyze the repository at github.com/username/repo?"
saveCodebase
Purpose: Saves the codebase analysis to a file for later use
Use when: You want to preserve the codebase snapshot or share it
Example prompt: "Save an analysis of this codebase to review later"
Example Usage in Cursor
Here are some example prompts you can use with the Composer Agent:
"Analyze my current project and explain its main components."
"Can you look at the tensorflow/tensorflow repository and explain how their testing framework works?"
"Save an analysis of my project to 'codebase-analysis.md' in markdown format."The Composer Agent will automatically use the appropriate tool based on your request.
Usage Outside Cursor
Starting the MCP Server
codebase-mcp startThis will start the MCP server in stdio mode, which can be used by any MCP-compatible clients.
License
MIT
Available Tools
3 toolsgetCodebaseC
Retrieve the entire codebase as a single text output using RepoMix
Inputs: cwd, format, ignorePatterns, includeDirectoryStructure, +5 more.
getRemoteCodebaseC
Retrieve a remote repository's codebase as a single text output using RepoMix
Inputs: repo (required), format, ignorePatterns, includeDirectoryStructure, +5 more.
saveCodebaseC
Save the codebase to a file using RepoMix
Inputs: cwd, format, ignorePatterns, includeDirectoryStructure, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have distinct purposes: retrieving local codebase, retrieving remote codebase, and saving codebase. While 'getCodebase' and 'getRemoteCodebase' both retrieve code, the local/remote distinction is clear. There's minor potential confusion about whether 'saveCodebase' saves the local or remote version, but overall boundaries are well-defined.
All tools follow a consistent verb_noun pattern with camelCase styling: getCodebase, getRemoteCodebase, saveCodebase. The naming is predictable and follows the same grammatical structure throughout, making it easy for agents to understand the action-object relationship.
With only 3 tools, this feels quite minimal for a 'Codebase MCP' server. While the tools cover basic retrieval and saving operations, the scope seems limited - there are no tools for searching, analyzing, modifying, or managing codebase components. The count is borderline thin for what could be expected from a codebase management system.
For a codebase management server, there are significant gaps in functionality. The tools only provide retrieval and saving operations using RepoMix, but lack any tools for code analysis, search, modification, version control operations, or component management. This creates a dead-end surface where agents can only get and save entire codebases without any ability to work with code meaningfully.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that gives your AI access to the source code and docs of all public github repos
The context platform for AI agents: code search, team decisions, and grounded project context.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup22142,284 PyPI1,005MIT

CodeAlive MCPofficial
AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.90MIT- AlicenseAqualityDmaintenanceAn enterprise-grade Model Context Protocol server that provides comprehensive GitHub repository analysis and AI-powered development assistance through 11 streamlined tools.112MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI applications to access and analyze local code repositories without manual uploads, providing file listing, content reading, code searching, and project structure analysis capabilities.7MIT
Appeared in Searches
- Code intelligence tools for LLMs to understand codebase structure and locate functionality
- A tool for reading, understanding, and summarizing code in GitHub repositories
- A tool for managing entire project code context
- MCP server for contextual codebase analysis and task-focused code understanding
- MCP server for code understanding and agent context initialization