DeepPlan MCP
Click on "Deploy 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., "@DeepPlan MCP Review my draft plan for a multi-tenant SaaS with Stripe billing"
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.
Why DeepPlan?
Every AI coding assistant can generate code — but architecture is where projects succeed or fail. DeepPlan catches design flaws, security gaps, and performance bottlenecks before they become expensive rewrites.
Without DeepPlan | With DeepPlan | |
Planning | AI gives generic, shallow plans | 4 expert architects analyze in parallel |
Quality | No guardrails — hallucination drift | Constitution enforces architectural correctness |
Perspective | Single viewpoint | Security + Performance + UX/DX + DevOps |
Output | Vague suggestions | Numbered, executable steps for your AI agent |
Your Draft Plan → 🔒 Security · ⚡ Performance · 🎨 UX/DX · 🔧 DevOps → 👑 Lead Architect → BlueprintRelated MCP server: ask-fable
Works With
DeepPlan uses the Model Context Protocol (MCP) — it works with any MCP-compatible client, not just IDEs:
Client | Use Case | |
🖥️ | Cursor, Windsurf, VS Code Copilot | Architecture review while coding |
💻 | Claude Code | Terminal-based planning and brainstorming |
🤖 | Claude Desktop, ChatGPT | Conversational architecture consulting |
🔧 | Custom MCP Clients | Build your own AI-powered architecture tools |
📡 | CI/CD & Automation | Automated architecture linting in pipelines |
Quick Start
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"deepplan": {
"command": "npx",
"args": ["-y", "deepplan-mcp"],
"env": {
"DEEPPLAN_API_KEY": "dpk_your-key-here"
}
}
}
}Windsurf
Add to your Windsurf MCP configuration:
{
"mcpServers": {
"deepplan": {
"command": "npx",
"args": ["-y", "deepplan-mcp"],
"env": {
"DEEPPLAN_API_KEY": "dpk_your-key-here"
}
}
}
}Claude Code
claude mcp add deepplan -- npx -y deepplan-mcp --api-key=dpk_your-key-hereVS Code (Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"deepplan": {
"command": "npx",
"args": ["-y", "deepplan-mcp"],
"env": {
"DEEPPLAN_API_KEY": "dpk_your-key-here"
}
}
}
}Get your API key at deepplan.dev/api-keys — free tier included.
Use Cases
🏗️ Starting a New Project
"Build me a SaaS with Stripe billing and multi-tenant auth"
Get a complete architecture blueprint — data model, API design, auth flow, deployment strategy — reviewed by 4 experts before writing a single line of code.
🔄 Major Refactoring
"Migrate our REST API to GraphQL"
Get expert analysis of migration risks, breaking changes, edge cases, and a step-by-step execution plan your AI coding assistant can follow.
🛡️ Security Review
"Review this authentication flow for vulnerabilities"
Get a Security Architect's threat model: injection vectors, data exposure risks, and concrete mitigations tied to your tech stack.
⚡ Performance Audit
"Optimize this data pipeline that's hitting 5s response times"
Get bottleneck analysis with specific optimizations: caching strategy, query patterns, cold start reduction — all for your actual stack.
🧩 API Design
"Design a public REST API for our platform"
Get DX analysis, versioning strategy, error handling patterns, rate limiting architecture, and documentation structure.
📋 Architecture Review in CI/CD
"Automatically review architecture decisions in pull requests"
Integrate DeepPlan into your pipeline to catch architectural anti-patterns before they reach production.
Tools
upgrade_architecture_blueprint
Send a draft plan to the Council of Architects for expert-level review.
Parameter | Required | Description |
| Yes | The architecture plan text to upgrade |
| No | e.g. |
| No | e.g. |
| No | AI model for the Lead Architect synthesis |
Returns: A structured blueprint with Architecture Directives, Edge Cases, Constraints, Patterns, and numbered Next Steps your AI agent can execute immediately.
auto_select_personas
Analyze a plan and recommend which expert personas are most relevant.
Parameter | Required | Description |
| Yes | The plan to analyze |
| No | Custom persona list (defaults to 4 built-in experts) |
The Constitution
Every council session enforces architectural guardrails called "The Constitution" — rules that prevent AI hallucination drift and ensure high-quality output:
Terminology Precision — Flags misused architectural terms (e.g., "fetch" for a DB query → should be "query")
Clean Architecture Metrics — Enforces low coupling, high cohesion, correct dependency direction
No Code Output — Experts focus on WHAT and WHY, never HOW in code
Tech Stack Awareness — All recommendations must reference your actual stack
Impact Prioritization — Most critical findings first, no filler
Built-in Expert Personas
Persona | Focus Areas |
🔒 Security Architect | Auth, data exposure, injection, CORS, API abuse, secrets management |
⚡ Performance Engineer | Latency, caching, token cost, cold starts, DB queries, concurrency |
🎨 UX/DX Designer | Integration smoothness, error clarity, onboarding, config simplicity |
🔧 DevOps Engineer | Deploy strategy, CI/CD, monitoring, disaster recovery, scaling |
👑 Lead Architect | Synthesizes all expert reports into a unified, executable blueprint |
Want domain-specific experts? Create custom personas at deepplan.dev — available via proxy mode.
Modes
Proxy Mode (Recommended)
Uses your DeepPlan API key (dpk_...). Requests are analyzed by DeepPlan Scout (expert analysis) and synthesized by DeepPlan Architect (blueprint generation).
DEEPPLAN_API_KEY=dpk_your-key-herePremium features via proxy mode:
Custom personas and councils
Advanced orchestration (debate mode, AI+IDE refinement)
AI-powered search context (Librarian)
Usage tracking and credit management
Direct Mode (Fallback)
Uses your own OpenRouter API key. The council runs locally with 4 built-in expert personas. No DeepPlan account needed.
OPENROUTER_API_KEY=sk-or-v1-your-key-hereConfiguration
Variable | Description |
| DeepPlan API key — enables proxy mode with full features |
| OpenRouter key — enables direct mode (fallback) |
| Max input characters (default: |
Configuration priority: CLI args > environment variables > .env file
npx deepplan-mcp --api-key=dpk_your-key-hereExtend & Build
DeepPlan is designed to be extended. The open-source core gives you building blocks to create your own architectural intelligence:
Custom Personas — Add domain-specific experts (Database Architect, ML Engineer, etc.) in
src/prompts/personas.tsSearch Providers — Plug in your own search backend by implementing the
SearchProviderinterface insrc/search/types.tsCustom Constitutions — Define your team's architectural standards and coding conventions
Pipeline Integration — Use as a pre-commit hook, CI/CD step, or automated PR reviewer
Build Your Own Client — The MCP protocol means any client can connect — build custom tools on top of DeepPlan
Architecture
┌─────────────────┐ stdio ┌──────────────┐
│ MCP Client │◄────────────►│ DeepPlan │
│ │ MCP │ MCP Server │
│ • AI IDEs │ Protocol │ (this repo) │
│ • CLI Tools │ └──────┬───────┘
│ • Custom Apps │ │
└─────────────────┘ ┌─────────────┴──────────────┐
│ │
Proxy Mode Direct Mode
│ │
┌──────▼──────┐ ┌────────▼────────┐
│ DeepPlan API │ │ OpenRouter │
│ deepplan.dev │ │ API │
│ │ │ │
│ • Scout │ │ • 4 built-in │
│ (analysis) │ │ personas │
│ • Architect │ │ • Basic council │
│ (synthesis)│ │ │
│ • Debate │ │ │
│ • AI Search │ │ │
└──────────────┘ └──────────────────┘Premium Features
The open-source client provides full council functionality with 4 built-in personas. For teams and power users, deepplan.dev offers:
Feature | Open Source | DeepPlan Pro |
4 Built-in Experts | ✅ | ✅ |
Custom Personas | — | ✅ |
Council Builder | — | ✅ |
Debate Mode (Pro/Con) | — | ✅ |
AI Search (Librarian) | — | ✅ |
Chair Persona | — | ✅ |
Constitution Editor | — | ✅ |
Usage Dashboard | — | ✅ |
Development
# Clone
git clone https://github.com/gapgapweiqi/deepplan-mcp.git
cd deepplan-mcp
# Install
npm install
# Dev (with hot reload)
npm run dev
# Build
npm run build
# Type check
npm run typecheckContributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
License
MIT — use it however you want.
Available Tools
2 toolsauto_select_personasA
Analyzes a draft architecture plan and recommends the most relevant expert personas to include in the council review. Returns a list of recommended persona names and focus areas.
Use this when:
You want the AI to pick the best experts for a specific plan
The plan covers a niche domain that may benefit from specialized personas
This tool does NOT run the full council — it only recommends which personas to use.
Inputs: draft_plan (required), available_personas.
upgrade_architecture_blueprintA
Sends a draft architecture plan to the DeepPlan backend for expert-level review. Returns structured architectural directives, edge cases, constraints, and numbered next steps that you (the IDE agent) can execute immediately.
Use this when:
A plan feels too shallow or generic
Starting a complex feature or new project
You need architecture-level guidance before writing code
The response includes a "Next Steps for Agent" section with numbered instructions you can follow directly.
Internally, this tool runs a "Council of Architects" — 4 expert AI personas (Security, Performance, UX/DX, DevOps) analyze the plan in parallel, then a Lead Architect synthesizes their reports into a unified blueprint.
Inputs: draft_plan (required), tech_stack, model_choice, context_constraints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one recommends personas, the other runs the full architecture review. The auto_select_personas description explicitly states it does not run the council, preventing confusion.
Both names use snake_case with verb-led patterns (auto_select_personas, upgrade_architecture_blueprint). The 'auto_' prefix on the first is a minor deviation, but overall the convention is consistent and readable.
Two tools is on the thin side for a server whose workflow involves selecting personas and then running a review. It covers the core actions but feels under-scoped for a full architecture-review domain.
The server lacks a way to pass selected personas into the upgrade tool, creating a dead end for auto_select_personas. It also offers no way to iterate on or retrieve previous reviews, though the core review operation is present.
Maintenance
Related MCP Connectors
AI Design Blueprint is a doctrine and runtime standard for agentic AI: 10 principles, 16 laws, and Pro/Teams validators your coding agent calls over MCP.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Multi-agent AI pipeline that generates professional Solution Architecture Documents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables multi-stage AI software development orchestration by allowing users to assign different AI models to roles like architect, developer, tester, and reviewer, and execute them via MCP tools or a desktop console.-
- AlicenseAqualityBmaintenanceEnables coding agents to request guarded code and architecture reasoning from multiple AI models through a single MCP server, with modes for direct answers, parallel councils, ordered chains, and structured debates, plus reusable context and audit tracing.28MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements and user stories, scaffold starter projects, map codebases, manage tasks, curate context, and run multi-step software-development workflows through MCP-compatible clients.30 npmMIT
- AlicenseAqualityCmaintenanceEnables users to turn ideas or PRDs into component selections and architecture designs, audit existing projects with static scans, and manage long-running planning/auditing tasks with caching, cancellation, budget tracking, and checkpoint resume via MCP tools.7MIT