AgentStack
MCP verified MIT Self-run

Codetoprompt Mcp

mcp-yash9439-codetoprompt-mcp · by yash9439

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

No reviews yet
0 installs
4 views
0.0% view→install

Install

$ agentstack add mcp-yash9439-codetoprompt-mcp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Codetoprompt Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

CodeToPrompt MCP Server

[](https://badge.fury.io/py/codetoprompt-mcp)

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.


🔧 Installation

Install from PyPI:

pip install codetoprompt-mcp

This will automatically install codetoprompt and the required mcp library.


🚀 Usage with an MCP Client

This server is designed to be used with an MCP client, such as the Claude Desktop App.

Example: Claude Desktop Configuration

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.

Available Tools

  • 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.

🤝 Contributing

We welcome contributions! Please refer to the main codetoprompt repository for contribution guidelines.

📄 License

This project is licensed under the MIT License. See the LICENSE file for full details.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.