App Factory MCP
App Factory MCP is an AI orchestrator that guides agents through the full lifecycle of building, auditing, and deploying applications from plain-language descriptions. Key capabilities include:
Guided app creation: Start projects, enhance prompts, run planning interviews covering auth, data, UX, observability, and legal, then generate parallelizable build blueprints and coordinate subagents.
Design studio: Launch an interactive browser-based gallery with 16 UI mockups, font pairings, icon sets, animations, color wheel, and a drag-and-drop layout designer, plus 100 design languages to choose from.
Quality & security audits: Run comprehensive audits (typecheck, lint, tests, dependency vuln scan, secret scan, semgrep, Lighthouse) with a configurable pass score; works on any codebase.
Deployment: Deploy to Vercel, Netlify, Docker, local, Expo EAS, or Tauri; can generate deployment configs without executing.
Existing app support: Analyze, import, test, and suggest improvements for existing codebases; standalone audits available.
Persistent memory & goals: Store global and project-specific memories (SQLite), maintain a journal of events, and track measurable goals across sessions.
Self‑improvement & context continuity: Distill actionable lessons from the journal via 'refine', auto‑journaling, context reconstruction, and portable brain files (
AGENTS.md,BRAIN.md) for smooth handoffs to other AI tools.Research & utilities: Web search (DuckDuckGo), URL fetching, GitHub repository scouting with license/maintenance signals.
Legal & compliance: Generate tailored Privacy Policy, Terms of Service, Cookie Policy templates plus region‑aware compliance checklists (GDPR, CCPA, etc.).
Instant sites: Fast‑track creation by skipping the deep interview and going directly to design → build → deploy.
Cross‑agent handoff: Portable in‑repo brain enables agents like Cursor, Claude Code, or Devin to resume work without MCP.
Headless operation: Supports environment variables for browser‑less and GitHub token usage.
Generates Docker configuration and enables deployment of the app in a Docker container.
Targets Expo for native mobile development and supports deployment via Expo EAS.
Enables searching GitHub for supporting repositories and libraries with license and maintenance signals.
Allows deploying the generated web application to Netlify.
Targets Tauri for desktop application bundles and deployment.
Allows deploying the generated web application to Vercel.
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., "@App Factory MCPCreate a habit tracker app with reminders"
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.
App Factory MCP
An orchestrator MCP server that takes a plain-language app description all the way to a deployed, audited application. It guides the host agent (Cursor, Devin, Claude Desktop - any MCP client) and its parallel subagents through a strict quality workflow - the MCP owns the state machine, memory, checklists, design gallery and audit/deploy pipelines; the agent writes the code.
The workflow
intake -> interview -> design -> blueprint -> build -> audit -> deployIntake -
start_project+enhance_prompt: your description becomes a production-grade master prompt (goal, flows, non-goals, acceptance criteria, architecture sketch, threat model lite, UX principles, success metrics) plus a gap list against the checklist, with prior lessons injected when relevant.Interview -
get_next_questions/record_answer: a checklist-driven planning interview (auth, data, UX empty/loading/error states, migrations, rate limits, observability, payments, offline, accessibility, legal, deployment...). Core questions are always asked; others appear only when relevant.Design -
launch_design_gallery: a local web page opens in your browser - a full design studio. Required sections: sixteen live UI mockups of your app (each inspired by famous products - Spotify, Notion, Linear, Stripe, Airbnb, Netflix, Duolingo, Apple and more), eight real font pairings, six icon sets and four animation levels. Optional sections: card style (flat / outlined / elevated / frosted glass), background treatment (solid / subtle gradient / vivid gradient / aurora blur), an interactive color wheel (pick your own accent, optionally a two-color gradient), and a drag-and-drop layout designer where you arrange Navbar, Sidebar, Hero, Card Grid and more on a 12x8 grid to design the main screen yourself. Everything flows back throughget_design_choices. For even broader direction,get_design_inspirationserves the design languages of 100 of the world's most famous apps (palettes and patterns as inspiration - never logos or brand assets).Blueprint -
generate_blueprint: design choices become a precisedesignImplementation(tokens, component rules, a11y, motion budget) and parallelizable work packages (foundation, frontend, backend, tests, polish) withownsPaths/mustNotTouch, contracts-first foundation, and verifiable done criteria. Scaffold targets: Next.js PWA, Expo, Tauri, Docker.Build -
get_work_package/report_package_donecoordinate subagents; ranked lessons are binding rules in every package spec.Audit -
run_audit: typecheck, lint, tests, dependency vulnerability scan, secret scan, semgrep (if installed) and Lighthouse (if given a running URL). Fix root causes (not suppresses); failed audits journalaudit-failedand recovery journals arefine-candidate. Gate: score >= configurableminScore(default 80) with zero critical findings.Deploy -
get_deploy_options/deploy: Vercel, Netlify, Docker, local, Expo EAS or Tauri bundles. Failures journaldeploy-failed; success nudgesrefine+ preference memory.
Plus:
The brain - every tool call is journaled automatically; the agent records decisions, problems and milestones with
log_event, andget_contextreconstructs what is happening, what has happened and what to do next - across sessions. Long journals are compacted automatically into digest entries so recaps stay sharp on big projects.Portable brain (handoff across agents) - each app with a
workspacePathalso gets an in-repo brain (AGENTS.md,CLAUDE.md,.app-factory/BRAIN.md,state.json,journal.jsonl, …) so Cursor, Claude Code, Codex, Devin, or any agent can resume mid-stream without App Factory MCP. Synced automatically on major tools; alsoinit_portable_brain/sync_portable_brain/read_portable_brain/write_portable_brain.Self-improvement -
refinereviews the journal (errors, open problems, failed audits, deploy failures, repeated/error-prone tools) with an explicit quality bar and anti-patterns. Near- duplicate lessons are rejected. Surviving lessons are ranked by relevance and injected intoget_context,get_project_state, work packages, and the portable brain (BRAIN.md), so behavior actually changes. Server instructions steer every host agent into this loop by default.Self-evolution (gated) - App Factory can improve its own codebase from what it learns in use. A tool that keeps failing is automatically flagged as a
self-improvement-candidatein the journal. The agent files a proposal (propose_self_improvement) with evidence, and then the gate applies: the proposal must be justified twice (justify_self_improvement) with independent reasoning - near-duplicate justifications are rejected by a similarity check, and the second justification must include measured evidence. Only then doesapply_self_improvementunlock, and the finalcommit_self_improvementre-runs build + unit tests + smoke itself and refuses to git commit/push unless everything passes - "definite improvement" is enforced by the machine, not claimed by the agent. Weak proposals getreject_self_improvement, with the reasoning preserved.Persistent goals -
set_goal/update_goalkeep an objective and measurable success criteria alive across sessions, so any future session knows exactly what "done" means.Memory -
remember/recall(SQLite): global user preferences persist across projects, so every new project starts smarter.Existing apps -
analyze_appunderstands any codebase (frameworks, capabilities, issues),import_appadopts it as a maintenance-mode project for the improve/fix loop, andtest_appverifies it builds, passes tests and actually responds over HTTP.Improvement engine -
suggest_improvementsproposes upgrades on two levels: the app (UX, performance, retention, quality gaps) and the idea itself (positioning, differentiation, monetization).GitHub scout -
search_githubfinds supporting repos/libraries with license and maintenance signals.Legal & compliance -
generate_legal_docsproduces tailored Privacy Policy, Terms of Service and Cookie Policy templates plus a region-aware compliance checklist (GDPR, CCPA/CPRA, DPDP, COPPA, PCI-DSS), and the interview asks where your users live so the right regulations apply. Templates, not legal advice - the tool says so too.Instant websites -
instant_site: skips the deep interview, auto-fills sensible answers, jumps straight to the design gallery, then scaffold-audit-deploy.Internet -
web_search/fetch_urlfor research during any phase.Standalone audits -
run_auditworks on any codebase, no project required.
Related MCP server: MCP Director
Install
Requires Node.js >= 22.5 (uses the built-in node:sqlite).
From source:
npm install
npm run buildRegister in Cursor's ~/.cursor/mcp.json:
{
"mcpServers": {
"app-factory": {
"command": "node",
"args": ["<absolute path to this folder>/dist/server.js"]
}
}
}Then reload Cursor and say e.g. "Use app-factory to build me a recipe manager app".
State is stored in ~/.app-factory (or ./data when running from a clone that already has one);
override with the APP_FACTORY_DATA_DIR environment variable.
Beyond Cursor: Devin and other MCP clients
App Factory speaks standard MCP over stdio, so any MCP-capable agent can run it:
Devin (cloud): Settings -> MCP Marketplace -> Add a custom MCP -> transport STDIO, command
node, args<path>/dist/server.js.Devin CLI:
devin mcp add app-factory -- node <path>/dist/server.jsClaude Desktop / others: add the same command/args to their MCP config.
Notes for headless/VM environments (like Devin's workspace): set APP_FACTORY_NO_BROWSER=1 so
launch_design_gallery serves the page without trying to open a browser (fetch the URL or use
set_design_choice as the no-UI fallback), and set GITHUB_TOKEN for higher search_github rate
limits. The SQLite brain, goals and lessons live in the data dir, so the same project can be
advanced from Cursor one day and Devin the next. The portable brain in the app repo is the
handoff layer when MCP is unavailable (see below).
Portable brain / handoff across agents
When a project has a workspacePath (set on start_project, import_app, generate_blueprint,
or init_portable_brain), App Factory keeps a durable, AI-readable context store inside the app
repo:
<app>/
AGENTS.md # entrypoint: how to resume
CLAUDE.md # Claude Code pointer (same brain)
.app-factory/
BRAIN.md # always-current narrative recap
state.json # machine-readable state
journal.jsonl # append-only event log
decisions.md # decisions made
open-problems.md # unresolved issuesSecrets are scrubbed before write. Sync is idempotent and runs automatically after start/import,
answers, design choices, blueprint/build progress, audits, goals, refine, and log_event.
state.json includes lessonsRanked (id, scope, relevance, rankReason) and
lessonsLearned (formatted lines); AGENTS.md / BRAIN.md surface the top ranked lessons
prominently so outside agents obey the same binding rules as get_context.
Agent | How it picks up |
Cursor | Opens |
Claude Code | Reads |
Codex | Start from |
Devin | Same files in the workspace; with MCP configured, prefer |
Explicit tools: init_portable_brain, sync_portable_brain, read_portable_brain,
write_portable_brain. Outside agents without MCP can still continue from disk alone.
Optional audit tools
The audit uses what it finds and skips the rest gracefully:
gitleaks- deeper secret scanning (built-in regex scan is the fallback)osv-scanner- dependency CVEs (npm audit is the fallback)semgrep- static security analysis (pip install semgrep)Lighthouse - runs via
npx lighthousewhen you pass a running appurl
Development
npm run build # compile TypeScript
npm test # unit tests (store, lessons ranking, evolve gate, portable brain, blueprint quality, catalog)
npm run smoke # end-to-end test of the whole workflow over real stdio MCPCI runs build + unit tests + smoke on Ubuntu and Windows, Node 22 and 24, for every push and PR.
Layout:
src/server.ts- MCP entry pointsrc/state/- SQLite store (projects, memory, answers, choices, packages, audits) + checklist loadersrc/portable-brain/- in-repo AGENTS.md /.app-factory/*writer for cross-agent handoffsrc/learning/- lesson ranking / refine quality helperssrc/phases/- one module per workflow phase (tools live here)src/learning/- lesson ranking, quality bar, duplicate detection for the always-learning loopsrc/portable-brain/- in-repo AGENTS.md /.app-factorysync for cross-agent handoffsrc/gallery/- the design gallery: option data, HTML renderer, local HTTP serversrc/audit/- audit runners and scoringchecklists/- the "everything an app needs" knowledge base (edit to extend the interview/audit)templates/- scaffold guides per target (nextjs-pwa, expo, tauri, docker)
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceAn intelligent MCP server that orchestrates multiple MCP servers with AI-enhanced workflow automation and production-ready context engine capabilities for codebase analysis.37
- -licenseNot gradedqualityNot gradedmaintenanceAn intelligent orchestration server that routes user requests to appropriate specialized MCP servers and manages complex workflows.
- AlicenseNot gradedqualityDmaintenanceIntelligent MCP server orchestrator that automates configuration, orchestration, and lifecycle management of other MCP servers for AI agents.MIT
- AlicenseNot gradedqualityAmaintenanceMCP server that enables AI agents to run a deterministic orchestration loop with decomposition, subagent execution, and review feedback across multiple LLM backends.54MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Agent Orchestrator MCP Server by MEOK AI Labs
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/DPGS-oss/app-factory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server