Prompt MCP Server

Local MCP server that optimizes rough prompt drafts using a local Ollama model

Local serverstdio

What is the Prompt MCP Server?

Local MCP server that optimizes rough prompt drafts using a local Ollama model

What it actually does

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.

Configuration

  • Node.js 20+ - Option A (Local Ollama): Ollama running locally with a model pulled, e.g.: - Option B (Remote Ollama): Ollama running on a machine you control (e.g. a home server exposed through a tunnel), with OLLAMA_BASE_URL (and optionally OLLAMA_EXTRA_HEADERS for an authenticating proxy) pointed at it. See Remote Ollama endpoint

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
optimize_promptOptimizes a rough prompt draft using a local LLM before sending it to a paid API.
lint_promptChecks any prompt for common issues without making LLM calls. Detects unresolved placeholders ({{placeholder}}), suspect acronym expansions (against the glossary), and leaked meta-commentary.
score_promptJudge-grades a prompt 1-5 on five dimensions: clarity, specificity, structure, guardrails, and token efficiency. Pass baseline to switch to comparison mode.
generate_system_promptDrafts 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_healthChecks 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

How to install the Prompt MCP Server

{
  "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.

Configuration

  • Node.js 20+ - Option A (Local Ollama): Ollama running locally with a model pulled, e.g.: - Option B (Remote Ollama): Ollama running on a machine you control (e.g. a home server exposed through a tunnel), with OLLAMA_BASE_URL (and optionally OLLAMA_EXTRA_HEADERS for an authenticating proxy) pointed at it. See Remote Ollama endpoint
VariableDescriptionRequired
OLLAMA_BASE_URLEndpoint or connection string the server talks to.Yes
OLLAMA_EXTRA_HEADERSConfiguration value read at startup.Optional
ANTHROPIC_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Prompt to Cursor.”
  • “Use Prompt to optimize prompt.”
  • “Use Prompt to lint prompt.”

Frequently asked questions

Local MCP server that optimizes rough prompt drafts using a local Ollama model Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.