preprompt

Preprompt-ai/preprompt
★ 12 stars Python AI/LLM Updated today
MCP server that intercepts and optimizes prompts in Claude Code + Cursor
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "preprompt": {
      "command": "uvx",
      "args": [
        "preprompt"
      ]
    }
  }
}

Or install with pip: pip install preprompt

README Excerpt

> Your prompts, battle-tested. An MCP server that intercepts and optimizes > prompts in Claude Code and Cursor before they reach the LLM. Most prompts sent to an LLM are underspecified — they're missing context, output format expectations, or technical constraints that the developer has in their head but didn't type. PrePrompt sits between your keyboard and the

Tools (4)

ANTHROPIC_API_KEYMCP_TRANSPORTget_prompt_historyoptimize_prompt