A Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.
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.
# Install the package globally npm install -g codebase-mcp # Install RepoMix (required dependency) codebase-mcp install
# 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 install
To use this MCP with Cursor's Composer Agent:
Codebase MCP
(or any name you prefer)command
codebase-mcp start
Once added, the MCP will provide three powerful tools to the Composer Agent:
getCodebase
getRemoteCodebase
saveCodebase
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.
codebase-mcp start
This will start the MCP server in stdio mode, which can be used by any MCP-compatible clients.
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!