
Ai Prompt Optimizer
A lightweight prompt optimization service running on Cloudflare Workers that exposes both REST and MCP interfaces. The server takes your raw prompts and restructures them for better LLM results, handling the tedious work of adding context, clarifying instructions, and formatting for optimal token usage. You'd reach for this when you're iterating on prompts and want programmatic refinement instead of manual tweaking, or when building applications that generate prompts dynamically and need them polished before sending to your primary LLM. The dual transport support means you can hit it via standard HTTP or integrate it directly into Claude through the MCP protocol for seamless prompt improvement in your workflow.
- tools
- 5
- transport
- HTTP
- last updated
- May 16, 2026
Install
From registry metadata$ npx add-mcp https://api.lazy-mac.com/ai-prompt-optimizer/mcp --name ai-prompt-optimizerRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http ai-prompt-optimizer https://api.lazy-mac.com/ai-prompt-optimizer/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 5 toolsVerified live against the running server on Nov 6, 2026.
optimize_promptOptimize a prompt by removing filler words, compressing verbosity, and returning token savings.1 params
Optimize a prompt by removing filler words, compressing verbosity, and returning token savings.
prompt*stringanalyze_promptAnalyze a prompt for clarity score, filler patterns, ambiguity, and improvement suggestions.1 params
Analyze a prompt for clarity score, filler patterns, ambiguity, and improvement suggestions.
prompt*stringestimate_tokensEstimate token count of a prompt or batch of texts.2 params
Estimate token count of a prompt or batch of texts.
promptstringtextsarraycompare_promptsCompare two prompts. Returns winner by clarity score and token delta.2 params
Compare two prompts. Returns winner by clarity score and token delta.
prompt_a*stringprompt_b*stringhealth_checkCheck API health.
Check API health.
No parameters. Call it with no arguments.
Sponsors
Readme
ai-prompt-optimizer-api
Cloudflare Workers MCP server: ai-prompt-optimizer. REST + MCP (JSON-RPC 2.0). Live: api.lazy-mac.com/ai-prompt-optimizer
Details
- Repository
- github.com/lazymac2x/ai-prompt-optimizer-api
- Categories
- AI & LLM Tools, Cloud & Infrastructure
- Transport
- HTTP
- Registry
- MCP registry, active
- Tools verified
- Nov 6, 2026
More from lazymac2x
- Ai Provider Status
- Ai Rate Limit Tracker
- Ai Token Counter
- Api Changelog Tracker
- Api Composition Gateway
- Api Contract Validator
- Api Diff Monitor
- Api Flow Analyzer
- Api Payload Auditor
- Api Perf Analyzer
- Api Request Deduplicator
- Api Response Cost Analyzer
- Api Schema Drift Detector
- Blog
- Citation Verifier
- Claude Skill Validator
- Code Explainer
- Code Pattern Risk Scanner
- Color Palette
- Cron Collision Detector
- Cron Monitor
- Cron Parser
- Crypto Signal
- Data Transform