Local MCP server that optimizes rough prompt drafts using a local Ollama model
Local MCP server that optimizes rough prompt drafts using a local Ollama model. The prompt mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 6 defined tools rather than through you.
Local MCP server that uses a local Ollama model as a "Prompt Engineer" to rewrite rough prompt drafts into structured, optimized prompts before you send them to a paid API (Claude, GPT-4o, etc.) — saving tokens and improving output quality on the paid model.
npm on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Everything the assistant can do here goes through one of these:
Cursor — Navigate to Cursor Settings -> Features -> MCP -> Add new MCP server. - Name: prompt-enhancer - Type: command - Command: npx -yoptimize_prompt — Optimizes a rough prompt draft using a local LLM before sending it to a paid APIlint_prompt — Checks any prompt for common issues without making LLM calls. Detects unresolved placeholders ({{placeholder}}), suspect acronym expansions (againstscore_prompt — Judge-grades a prompt 1-5 on five dimensions: clarity, specificity, structure, guardrails, and token efficiency. Pass baseline to switch togenerate_system_prompt — Drafts a system prompt for a given agent role, then auto-lints and auto-scores it before returning. Pass rigor: "both" to generate a terse and acheck_health — Checks whether the configured LLM engine is reachable and ready to use — including whether the connected MCP client supports the sampling engineYou will need 3 environment variables: OLLAMA_BASE_URL, OLLAMA_EXTRA_HEADERS, ANTHROPIC_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
OLLAMA_BASE_URL (and optionally OLLAMA_EXTRA_HEADERS for an authenticating proxy) pointed at it. See Remote Ollama endpointThis sits in the AI and media services group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Prompt's toolset — Cursor, optimize_prompt, lint_prompt and 3 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Cursor | Navigate to Cursor Settings -> Features -> MCP -> Add new MCP server. - **Name**: prompt-enhancer - **Type**: command - **Command**: npx -y --package=@nuno-morais/prompt-enhancer-mcp@latest prompt-enhancer-mcp |
| optimize_prompt | Optimizes a rough prompt draft using a local LLM before sending it to a paid API. |
| lint_prompt | Checks any prompt for common issues without making LLM calls. Detects unresolved placeholders ({{placeholder}}), suspect acronym expansions (against the glossary), and leaked meta-commentary. |
| score_prompt | Judge-grades a prompt 1-5 on five dimensions: clarity, specificity, structure, guardrails, and token efficiency. Pass baseline to switch to comparison mode. |
| generate_system_prompt | Drafts a system prompt for a given agent role, then auto-lints and auto-scores it before returning. Pass rigor: "both" to generate a terse and a guardrailed variant and get a judged head-to-head comparison. |
| check_health | Checks whether the configured LLM engine is reachable and ready to use — including whether the connected MCP client supports the sampling engine. Takes optional engine and model arguments; with no arguments it checks the |
{
"mcpServers": {
"prompt-enhancer": {
"command": "prompt-enhancer-mcp",
"env": {
"OLLAMA_BASE_URL": "https://your-ollama-host.example.com",
"OLLAMA_EXTRA_HEADERS": "{\"CF-Access-Client-Id\":\"...\",\"CF-Access-Client-Secret\":\"...\"}"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
OLLAMA_BASE_URL (and optionally OLLAMA_EXTRA_HEADERS for an authenticating proxy) pointed at it. See Remote Ollama endpoint| Variable | Description | Required |
|---|---|---|
| OLLAMA_BASE_URL | Endpoint or connection string the server talks to. | Yes |
| OLLAMA_EXTRA_HEADERS | Configuration value read at startup. | Optional |
| ANTHROPIC_API_KEY | Credential the server authenticates with. | Yes |
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.
Answers, not links — delegate questions to Perplexity's search-grounded models and get cited responses back.
Give your assistant a voice — text-to-speech, voice cloning and audio tools from the ElevenLabs API.
Give your assistant a real code sandbox — isolated cloud VMs for actually running the code it writes.
The ML hub in your context window — search models, datasets, papers and run Spaces from the official server.