npm agentforge-mcpstdioMITupdated 3mo ago
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.
What can you do with AgentForge?
agentforge-mcp
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.sciscale.org ยท Quick start ยท npm

agentforge-mcp is the Model Context Protocol
server for AgentForge. One tool, one job: turn
a vague request into a sharp one.
Why
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:
- extracts the real requirements โ the edge cases, the acceptance criteria, the things you'd have forgotten to mention;
- formats for your specific agent โ Claude Code wants file:line references, Cursor wants directives, Aider wants tight context;
- quality-checks before returning โ every prompt is scored across 12 dimensions before it leaves the engine.
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.
Quick start
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."
The tool โ 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 vs Pro
| Free | Pro | |
|---|---|---|
| Refinements | 3 / day | Unlimited |
| Quality Engine | scored across 12 dimensions | scored + auto-refined until it passes โฅ 90 |
Or use the web app
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.
โ Try it now at agentforge.sciscale.org
Paste a request, pick your target tool, copy the prompt โ generation history and advanced modes included:

How it works
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.
Configuration
| Variable | Default | |
|---|---|---|
AGENTFORGE_API_KEY |
โ | Required. Your API key. |
AGENTFORGE_API_URL |
https://agentforge.sciscale.org/api/v1/refine |
Override the endpoint (rarely needed). |
Develop
npm install
npm run build # tsc -> dist/
node dist/index.js # runs on stdio
License
MIT โ see LICENSE.
agentforge-mcp is part of AgentForge โ a SciScale studio product.
Install
Add AgentForge to your client. Pick the one you use.
claude mcp add agentforge-mcp -- npx -y agentforge-mcpcodex mcp add agentforge-mcp -- npx -y agentforge-mcpamp mcp add agentforge-mcp -- npx -y agentforge-mcp{
"mcpServers": {
"agentforge-mcp": {
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"agentforge-mcp": {
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"agentforge-mcp","command":"npx","args":["-y","agentforge-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"agentforge-mcp": {
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"agentforge-mcp": {
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"agentforge-mcp": {
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"agentforge-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"agentforge-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"agentforge-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"agentforge-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y agentforge-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance13/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 96 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.4Latest | May 24, 2026 |
| 0.1.3 | May 24, 2026 |
