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
- ODAncona/code2prompt-mcp
- MIT License
- Last Updated: 4/19/2025
Categories
Recomended MCP Servers
This MCP server provides browser automation capabilities through Puppeteer, allowing interaction with both new browser instances and existing...
A thin wrapper around the OpenPyXl Python library that exposes some of its features as Model Context Protocol...
A MCP Server for the RAG Web Browser Actor
Claude's OmniFocus integration: Let LLMs interface with your tasks through the Model Context Protocol. Add, organize, and query...
A collection of tools for your LLMs that run on Modal
Damn Vulnerable MCP Server
Ollama MCP server for bybit
Open Source, Self-Hosted, AI Search and LLM.txt for your website
Convert Any OpenAPI V3 API to MCP Server
Airtable integration for AI-powered applications via Anthropic's Model Context Protocol (MCP). Connect your AI tools directly to Airtable...
【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news...
Giving Claude ability to run code with E2B via MCP (Model Context Protocol)