Prompt Optimizer
v3.8.11Optimize prompts and generate agent SOPs and skill packages with the Prompt Optimizer cloud API.
Values you need
| Variable | What it is | |
|---|---|---|
OPTIMIZER_API_KEY | required 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.11Add 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
- Ask the user for: OPTIMIZER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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