mcp-forge
mcp-forge is an MCP stdio server that provides a deterministic prompt library for rewriting existing Node.js projects or creating new ones (including MCP servers) to production-quality TypeScript.
list_steps: List all 15 rewrite steps (0–14), optionally filtered by project type (http-api,library,cli,worker,mcp-server) to see which steps apply or are skipped.get_step: Retrieve the full prompt for a specific step (0–14). Step 8 (Entrypoint Layer) requires specifying aprojectType.get_entrypoint: Get Step 8 entrypoint-specific instructions for a given project type, covering how to scaffold the entry layer.get_master_prompt: Obtain a single-pass master prompt for small projects (< 2,000 lines), handling all project types automatically.get_create_prompt: Generate a new MCP server from an OpenAPI document or aBUILD_SPECtemplate.validate_manifest: Validate anAUDIT_MANIFESTJSON string produced by Step 0, returning any schema errors or confirming it is valid before proceeding.
The server also integrates with MCP clients like Claude Desktop and Claude Code, enabling global slash commands for common workflows (e.g., /forge-audit, /forge-create, /forge-step).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-forgelist steps for an http-api project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-forge
An MCP stdio server that serves the mcp-forge prompt library — a deterministic, enterprise-grade system for creating new, or rewriting existing, Node.js projects (including MCP servers) to production-quality TypeScript.
Connect this server to any MCP client and call its tools to retrieve the exact prompts needed to rewrite a project step by step. The same source code always produces the same output — deterministic by design. Rewrite an existing project step by step, or generate a brand-new MCP server from an API spec with Create mode.
Supported project types: http-api · library · cli · worker · mcp-server
Tools
Tool | Description |
| List all 15 rewrite steps. Pass |
| Get the full prompt for a specific step (0–14). Step 8 requires |
| Get the Step 8 entrypoint prompt for a given project type. |
| Get the single-pass master prompt for small projects (< 2 000 lines). |
| Generate a new MCP server from an OpenAPI doc or BUILD_SPEC. |
| Validate an |
Related MCP server: PromptArchitect MCP
Setup
git clone <repo-url>
cd mcp-forge
npm install
npm run setupnpm run setup builds the project and automatically:
Registers the MCP server in Claude Desktop
Registers the MCP server in Claude Code (
~/.claude.json)Installs
/forge-*slash commands globally to~/.claude/commands/
Restart Claude Desktop after running setup. Claude Code picks up changes automatically.
Manual setup (Cursor or other MCP clients)
Add this to your client's MCP config:
{
"mcpServers": {
"mcp-forge": {
"command": "node",
"args": ["/absolute/path/to/repo/dist/stdio.js"]
}
}
}Build first if you haven't already: npm run build
PROMPTS_DIRdefaults to.claude/commandsinside the repo — no environment variable needed.
Slash commands in Claude Code
After npm run setup, the following commands are available globally in any project — no per-project setup required:
Command | Description |
| Audit the codebase and emit an |
| Create a brand-new MCP server from an OpenAPI doc or BUILD_SPEC (no existing project needed). |
| List which steps apply to this project type. Run after audit. |
| Apply a specific step. Example: |
| Single-pass full rewrite for small projects (< 2 000 lines). |
Typical workflow:
/forge-audit
/forge-plan
/forge-step 1
/forge-step 2
... (continue through the steps)
/forge-step 8 mcp-server
/forge-step 9
... through /forge-step 14Or — create a new MCP server from scratch:
/forge-createSupply an OpenAPI document or fill in the BUILD_SPEC when prompted; mcp-forge generates the whole server (steps 1–14 + the mcp-server entrypoint).
Using the MCP tools directly
Incremental rewrite (large projects, recommended):
get_step({ step: 0 })→ run the audit prompt, receive anAUDIT_MANIFESTJSONvalidate_manifest({ manifestJson: "..." })→ confirm it's validlist_steps({ projectType: "mcp-server" })→ see which steps applyget_step({ step: 1 })→get_step({ step: 7 })→ scaffold in orderget_entrypoint({ projectType: "mcp-server" })→ entrypoint layer (Step 8)get_step({ step: 9 })→get_step({ step: 14 })→ testing, security, CI, docs
Single-pass rewrite (small projects, < 2 000 lines):
get_master_prompt()→ paste your entire project source into context with the returned prompt
Creating a new MCP server from an API spec:
get_create_prompt()→ returns the Create-mode promptSupply an OpenAPI document (
openapi.json/openapi.yaml) or fill in theBUILD_SPECtemplate from the promptThe prompt emits an
AUDIT_MANIFESTwithprojectType: "mcp-server"and a populatedmcpToolsarrayvalidate_manifest({ manifestJson: "..." })→ confirm it is validContinue with steps 1–14 and
get_entrypoint({ projectType: "mcp-server" })exactly as for a rewrite — all downstream steps are unchanged
Environment variables
Variable | Default | Description |
|
| Override the prompts directory location |
|
| Environment |
|
| pino log level |
Development
npm run dev # tsx watch mode
npm test # run all tests (25 unit + integration)
npm run typecheck # TypeScript check
npm run lint # ESLint
npm run build # compile to dist/Prompt library layout
.claude/commands/
shared/ Steps 00–07, 09–14 (all project types, conditional sections)
entrypoints/ Step 08 — one file per project type
masters/ MASTER.md — universal single-pass promptLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Flagler-County-BoCC/mcp-forge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server