Skip to main content
MCP server CX Codex

clarifyprompt — Claude Code MCP server: compile prompts per platform

Turns a vague prompt into one shaped for a specific platform's syntax and parameters, using signals from your workspace.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add clarifyprompt -e LLM_API_URL=<LLM_API_URL> -e LLM_API_KEY=<LLM_API_KEY> -e LLM_MODEL=<LLM_MODEL> -- npx -y clarifyprompt-mcp
Open on GitHub

What clarifyprompt does

Send the raw request. The server reads workspace files such as CLAUDE.md, AGENTS.md, .cursorrules and package.json, works out the intent, and returns a prompt built for the platform you picked. The pack covers chat models, coding assistants, image and video generators; each has its own syntax and knobs.

There is optimize_prompt with a platform argument, a critique_prompt call that scores six dimensions, and an auto_revise loop that keeps fixing weak spots. Hosts supporting the io.modelcontextprotocol/ui extension get a compose_prompt panel with a before/after view and Accept / Revise buttons. Three environment variables are required: LLM_API_URL, LLM_API_KEY, LLM_MODEL. The server calls a model with your key, so it won't start without them. Node.js 18 or newer is needed.

Leave the platform out and the output stays neutral, without any vendor's idioms. Useful when one request goes to several tools.

What it helps with

  • rewrite a vague prompt to match a target platform's syntax
  • pull CLAUDE.md and package.json into the request text
  • compare original and optimized prompts before sending
  • score a prompt on six dimensions and revise it
  • keep output neutral when no platform is chosen

Example prompts for the agent

  • Optimize this prompt for Midjourney: a ginger cat on a windowsill in morning light
  • Call optimize_prompt with platform: "gpt-image" and keep the in-image text
  • Run critique_prompt on my prompt and list what to fix

How to install clarifyprompt

Platform CLI

claude mcp add clarifyprompt -e LLM_API_URL=<LLM_API_URL> -e LLM_API_KEY=<LLM_API_KEY> -e LLM_MODEL=<LLM_MODEL> -- npx -y clarifyprompt-mcp

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about clarifyprompt

How do I install clarifyprompt in Claude Code?

Run claude mcp add clarifyprompt -e LLM_API_URL=<LLM_API_URL> -e LLM_API_KEY=<LLM_API_KEY> -e LLM_MODEL=<LLM_MODEL> -- npx -y clarifyprompt-mcp. The stdio variant uses --env and --transport stdio instead of -e.

What does clarifyprompt do?

It takes a raw prompt, adds context from your project files, and returns a version tuned for the chosen platform, with its syntax and parameters.

What do I need before it works?

An endpoint and key in LLM_API_URL, LLM_API_KEY, LLM_MODEL, plus Node.js 18 or later. Model calls go through your own key.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor