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
Model Context Protocol (MCP) server for using the Eyevinn Open Source Cloud API
github-enterprise-mcp
特定のWeb APIに関するBaselineの状況を提供するModel Context Protocolサーバー
MCP Server to Use HuggingFace spaces, easy configuration and Claude Desktop mode.
A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting
MCP Server for Trino
An MCP tool for aiding persistence over ai-coding-agent sessions.
MCP Server for interacting with LogSeq graph
The registry mcp server updates your resume while you code
A unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Model Context Protocol (MCP) server designed for LLMs to interact with Obsidian vaults. Provides secure, token-aware tools for...
A Model Context Protocol server for generating charts using QuickChart.io . It allows you to create various types...





