code2prompt-mcp

by ODAncona

Integrations

  • Allows analyzing Git-based codebases to generate structured summaries and contextual prompts for AI assistants to better understand repositories

  • Enables working with GitHub repositories by extracting relevant code context and producing optimized summaries for AI consumption

  • Leverages the code2prompt-rs Rust library to analyze codebases and produce structured summaries optimized for AI assistants

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
-
security - not tested
A
license - permissive license
-
quality - not tested

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

  1. About
    1. Installation
      1. Usage
        1. License
          1. Development

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
              Last updated -
              132
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
              Last updated -
              32
              80
              5
              TypeScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
              Last updated -
              387
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              An MCP server that allows AI assistants to programmatically manage Unleash feature flags through natural language, enabling operations like creating, updating, and retrieving feature flags across projects.
              Last updated -
              5
              2
              TypeScript

            View all related MCP servers

            ID: vs5187u9up