MCP Servers / development / CodeToPrompt MCP Server

CodeToPrompt MCP Server

JSON →
none1development

An MCP server for the codetoprompt library, enabling integration with LLM agents.

Install
How to run this server
[ { "cmd": "pip install codetoprompt-mcp", "imports": [] } ]
server path: codetoprompt-mcp-server
Tools
What this server exposes
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.
Configuration
Environment & auth
authnone
Resources
CodeToPrompt MCP Server — MCP Server · libregistry