Prompt Optimizer

v3.8.11
io.github.nivlewd1/mcp-prompt-optimizer Checked 5 days ago Published 28 days ago

Optimize prompts and generate agent SOPs and skill packages with the Prompt Optimizer cloud API.

Values you need

VariableWhat it is
OPTIMIZER_API_KEYrequired secret Your Prompt Optimizer API key (starts with sk-opt-). A free key takes no card: https://promptoptimizer.xyz/dashboard

npm (npx)

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-prompt-optimizer -e 'OPTIMIZER_API_KEY=<OPTIMIZER_API_KEY>' -- npx -y mcp-prompt-optimizer@3.8.11
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-prompt-optimizer": {
      "args": [
        "-y",
        "mcp-prompt-optimizer@3.8.11"
      ],
      "command": "npx",
      "env": {
        "OPTIMIZER_API_KEY": "<OPTIMIZER_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-prompt-optimizer": {
      "args": [
        "-y",
        "mcp-prompt-optimizer@3.8.11"
      ],
      "command": "npx",
      "env": {
        "OPTIMIZER_API_KEY": "<OPTIMIZER_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OPTIMIZER_API_KEY",
      "id": "optimizer-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-prompt-optimizer": {
      "args": [
        "-y",
        "mcp-prompt-optimizer@3.8.11"
      ],
      "command": "npx",
      "env": {
        "OPTIMIZER_API_KEY": "${input:optimizer-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-prompt-optimizer]
command = "npx"
args = ["-y", "mcp-prompt-optimizer@3.8.11"]
env = { "OPTIMIZER_API_KEY" = "<OPTIMIZER_API_KEY>" }

For AI agents

  1. Ask the user for: OPTIMIZER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json