Turns vague coding requests into structured, agent-ready prompts through a single MCP tool. You call agentforge_refine_prompt with a rough task description, pick your target agent (Claude Code, Cursor, Aider, etc.), and get back a prompt that's been scored across 12 quality dimensions. The engine extracts requirements, formats for your specific tool's expectations, and checks everything before returning. Runs through npx with an API key from agentforge.sciscale.org. Free tier gives you three refinements per day; Pro unlocks unlimited use and auto-refines until the prompt scores above 90. The whole engine lives server-side, so no logic ships in the package. Useful when you're tired of the clarification loop with your coding agent and want to hand it something it can execute in one pass.
Stop re-explaining what you want to your AI coding agent.
Hand it one rough sentence — get back a structured, tool-tuned prompt
it can execute in one pass.

agentforge-mcp is the Model Context Protocol
server for AgentForge. One tool, one job: turn
a vague request into a sharp one.
You know the loop: you ask your coding agent for something, it misreads the half you didn't spell out, you correct it, it breaks something else, you re-explain. The fix isn't a smarter agent — it's a sharper prompt.
AgentForge does the prompt engineering for you. Give it
"add a dark mode toggle that persists" and it:
Harness engineering is having a moment — but prompt engineering matters more in the coding-agent era, not less. Tested across 1,000+ real coding cases, projects with AgentForge in the loop reached a deployable state 147% faster.
No install — it runs through npx.
1. Get an API key. Sign in at agentforge.sciscale.org, open API keys, and create one. The key is shown once — copy it.
2. Add it to your agent.
Claude Code:
claude mcp add agentforge --env AGENTFORGE_API_KEY=af_your_key -- npx -y agentforge-mcp
Cursor / Windsurf / Claude Desktop — add to your MCP config
(~/.cursor/mcp.json, ~/.codeium/windsurf/mcp_config.json, etc.):
{
"mcpServers": {
"agentforge": {
"command": "npx",
"args": ["-y", "agentforge-mcp"],
"env": { "AGENTFORGE_API_KEY": "af_your_key" }
}
}
}
3. Use it. Ask your agent naturally — "refine this with AgentForge, then build it: add a dark mode toggle that persists."
agentforge_refine_prompt| Argument | Default | |
|---|---|---|
request | — | Your task in plain language (1–4000 chars). Rough is fine. |
target_tool | claude-code | claude-code, codex, cursor, aider, continue, windsurf, kimi, generic |
style | plan-first | plan-first, direct-edit, explore-first |
Returns the refined prompt, plus its Quality Engine score and your remaining daily usage.
| Free | Pro | |
|---|---|---|
| Refinements | 3 / day | Unlimited |
| Quality Engine | scored across 12 dimensions | scored + auto-refined until it passes ≥ 90 |
Don't want to wire up an MCP server at all? The same engine — same Quality Engine, same per-account Pro — runs right in your browser at agentforge.sciscale.org. No install, no key, no config.
Paste a request, pick your target tool, copy the prompt — generation history and advanced modes included:

agentforge-mcp is a thin client — no engine logic ships in this package. Your
request goes to the AgentForge API, the hosted engine does the extraction,
formatting, and quality-checking, and the prompt comes back. The engine keeps
improving without you ever updating this package.
| Variable | Default | |
|---|---|---|
AGENTFORGE_API_KEY | — | Required. Your API key. |
AGENTFORGE_API_URL | https://agentforge.sciscale.org/api/v1/refine | Override the endpoint (rarely needed). |
npm install
npm run build # tsc -> dist/
node dist/index.js # runs on stdio
MIT — see LICENSE.
agentforge-mcp is part of AgentForge — a SciScale studio product.
AGENTFORGE_API_KEY*secretYour AgentForge API key from https://agentforge.sciscale.org/account/keys
AGENTFORGE_API_URLdefault: https://agentforge.sciscale.orgAgentForge API base URL (defaults to https://agentforge.sciscale.org)
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent