✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

code2prompt-mcp

An MCP server that generates contextual prompts from codebases, making it easier for AI assistants to understand and work with your code repositories.

About

code2prompt-mcp leverages the high-performance code2prompt-rs Rust library to analyze codebases and produce structured summaries. It helps bridge the gap between your code and language models by extracting relevant context in a format that’s optimized for AI consumption.

Installation

This project uses Rye for dependency management, make sure you have it installed.

To install the necessary dependencies, and build the module in the local environment, run:

# Clone the repository
git clone https://github.com/odancona/code2prompt-mcp.git
cd code2prompt-mcp

# Install dependencies with Rye
rye build

It will install all the required dependencies specified in the pyproject.toml file in the .venv directory.

Usage

Run the MCP server:

rye run python code2prompt_mcp.main

License

MIT License - See LICENSE file for details.

Development

For testing, you can use the MCP Inspector:

npx @modelcontextprotocol/inspector python -m code2prompt_mcp.main

Code2Prompt MCP Server

Project Details

Featured Templates

View More
Customer service
AI-Powered Product List Manager
141 596
Verified Icon
AI Assistants
Speech to Text
133 1459
AI Agents
AI Video Generator
249 1322 5.0

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.