An MCP server for the codetoprompt library, enabling integration with LLM agents.
CodeToPrompt MCP Server exposes the powerful features of the codetoprompt library through the Model Context Protocol (MCP). This allows LLM agents and other MCP-compatible clients to programmatically generate prompts, analyze codebases, and retrieve specific file contents.
Install from PyPI:
pip install codetoprompt-mcp
This will automatically install codetoprompt
and the required mcp
library.
This server is designed to be used with an MCP client, such as the Claude Desktop App.
To use this server with Claude, add it to your claude_desktop_config.json
file:
{
"mcpServers": {
"CodeToPrompt": {
"command": "ctp-mcp"
}
}
}
Once configured, you can invoke the tools from your conversation with the LLM.
ctp-get-context
: The primary tool for generating a comprehensive prompt from a directory. It supports all of codetoprompt
's filtering, formatting, and compression options.ctp-analyse-project
: Provides a detailed statistical analysis of a codebase, including token counts, line counts, and breakdowns by file type.ctp-get-files
: Retrieves the content of specific files, formatted as a prompt. This is useful for targeted queries.We welcome contributions! Please refer to the main codetoprompt repository for contribution guidelines.
This project is licensed under the MIT License. See the LICENSE
file for full details.
Interact with the Bitcoin and Lightning Network to generate keys, validate addresses, decode transactions, and query the blockchain.
A server for JavaScript/TypeScript development with intelligent project tooling and testing capabilities.
Interact with iOS simulators and devices using Facebook's iOS Development Bridge (idb).
Installs other MCP servers from their source repositories, requiring npx for Node.js and uv for Python.
A Python package with utilities and helpers for building MCP-compliant servers, often using Flask and Redis.
A Python client for connecting to Model Context Protocol (MCP) servers, supporting local scripts and npx packages.
Integration with QA Sphere test management system, enabling LLMs to discover, summarize, and interact with test cases directly from AI-powered IDEs
A tool to provide Large Language Models with project context by intelligently filtering and concatenating relevant files.
Integrates LLM applications with documentation sources using the Model Context Protocol.
A template project demonstrating interaction between a TypeScript-based MCP server and a Unity client.