@abhi1381/promptpilot-mcp
v1.0.4
Published
MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more
Maintainers
Readme
promptpilot-mcp
MCP server for PromptPilot — AI-powered prompt optimization for Claude Code, Cursor, Codex, Windsurf, VS Code, and any MCP-compatible client.
Quick Setup
1. Get an API key
Go to promptpilotai.in/settings → Developers → Generate API Key.
2. Add to your MCP config
{
"mcpServers": {
"promptpilot": {
"command": "npx",
"args": ["-y", "@abhi1381/promptpilot-mcp"],
"env": {
"PROMPTPILOT_API_KEY": "pp_live_your_key_here"
}
}
}
}3. Config file locations
| Platform | Config file |
|----------|-------------|
| Claude Code | ~/.claude.json or .claude/mcp.json |
| Cursor | .cursor/mcp.json |
| VS Code | .vscode/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Codex | ~/.codex/mcp.json |
4. Restart your MCP client
The server validates your API key on startup and connects via stdio transport.
Usage Examples
Optimize a coding prompt:
optimize this prompt for coding: "write a function that sorts users by activity score"Optimize a writing prompt:
optimize this prompt: "write a blog post about remote work productivity"Optimize an image generation prompt:
optimize this image prompt: "a cat sitting on a rooftop at sunset, cinematic lighting"Optimize a general prompt:
optimize this: "explain how database indexing works"Check your credits:
how many promptpilot credits do I have?Tools
promptpilot_optimize
Optimize a prompt with auto-detected or explicit platform targeting.
Input:
prompt(string, required) — The raw prompt to optimize (1–10,000 chars)platform(string, optional) —general,coding,writing,research,image_gen
Output:
optimized— Enhanced prompt textscore— Quality score 0–100improvements— List of what was improvedplatform_detected— Platform usedcredits_remaining— Balance after this call
promptpilot_credits
Check your credit balance and subscription tier.
Output:
credits_remaining— Current balancesubscription_tier—free,starter,pro,maxmonthly_credits— Total monthly allocation
Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| PROMPTPILOT_API_KEY | Yes | Your API key (starts with pp_live_) |
| PROMPTPILOT_API_URL | No | Override API base URL (default: https://www.promptpilotai.in/api/mcp) |
Troubleshooting
"PROMPTPILOT_API_KEY environment variable is required"
Set the PROMPTPILOT_API_KEY in your MCP config's env block.
"Invalid API key format"
Keys start with pp_live_. Generate a new one at promptpilotai.in/settings.
"API key validation failed" The key may have been revoked. Generate a new one from Settings → Developers.
"Insufficient credits" Upgrade your plan at promptpilotai.in/pricing.
License
MIT
