PRD Builder MCP
Enables product managers to create, edit, and export product requirements documents interactively within Claude's chat, with real-time completeness scoring and suggestions.
README
PRD Builder — MCP App
An interactive PRD (Product Requirements Document) builder that renders inside Claude's chat. Built on the MCP Apps extension.
What This Is
An MCP server + interactive React UI that gives product managers a structured, visual PRD builder embedded directly in their Claude conversation. The PM chats with Claude to draft content, while a real-time visual interface shows section completion status, quality scores, and actionable suggestions.
This is not a text-only tool. Unlike existing PRD skills and MCP integrations, this renders an interactive UI inline in the chat — the PM can edit sections, reorder them, see completeness feedback, and export, all without leaving the conversation.
The Experience
PM: "Help me write a PRD for the onboarding redesign"
Claude: *calls open_prd_builder → interactive UI renders inline*
┌─────────────────────────────────────────────┐
│ Untitled PRD [Template ▼] [Export] │
├─────────────┬───────────────────────────────┤
│ Sections │ Problem Statement │
│ │ ┌─────────────────────────┐ │
│ ⬜ Title* │ │ [editable textarea] │ │
│ ⬜ Problem* │ │ │ │
│ ⬜ Users* │ └─────────────────────────┘ │
│ ⬜ Solution* │ ⚠️ Only 12 chars — aim for 50+│
│ ⬜ Stories* ├───────────────────────────────┤
│ ⬜ Reqs* │ Completeness: 0% │
│ ⬜ Metrics* │ ⬜ 8 empty 🔄 0 👀 0 ✅ 0 │
│ ⬜ Timeline │ 💡 Start with: "What problem │
│ ⬜ Risks │ are users experiencing?" │
└─────────────┴───────────────────────────────┘
PM: "The problem is that 67% of users abandon signup at step 3"
Claude: *drafts problem statement, calls update_prd_section*
→ Content appears in the UI, status changes ⬜→🔄, score updates
Project Structure
prd-builder-mcp/
├── packages/
│ ├── shared/ # Core domain types (the contract)
│ │ └── src/types.ts
│ │
│ ├── prd-engine/ # Business logic (no MCP/UI dependencies)
│ │ ├── src/
│ │ │ ├── templates/ # PRD template definitions
│ │ │ │ └── default-prd.ts # 3 templates: feature, platform, bugfix
│ │ │ ├── validation/ # Section validation rules
│ │ │ │ └── section-rules.ts # Text, list, user-story, metrics rules
│ │ │ ├── scoring/ # Completeness scoring engine
│ │ │ │ └── completeness.ts # Weighted scoring + suggestions
│ │ │ ├── factory.ts # Create PRD from template, update/reorder
│ │ │ ├── export.ts # Markdown, JSON, plain text export
│ │ │ └── index.ts # Public API
│ │ └── package.json
│ │
│ ├── mcp-server/ # MCP protocol layer
│ │ ├── src/
│ │ │ ├── tools/ # Tool definitions with UI metadata
│ │ │ │ └── prd-tools.ts # 5 tools: open, analyze, update, export, list
│ │ │ ├── handlers/ # Tool call handlers
│ │ │ │ ├── prd-handlers.ts # Business logic per tool
│ │ │ │ └── store.ts # In-memory PRD store (swap for persistent)
│ │ │ ├── resources/ # UI resource serving (ui:// scheme)
│ │ │ │ └── ui-resources.ts # Returns HTML for iframe rendering
│ │ │ └── index.ts # Server entry — stdio transport
│ │ └── package.json
│ │
│ └── ui/ # Interactive React frontend
│ ├── src/
│ │ ├── hooks/ # MCP communication + state management
│ │ │ ├── useMCPApp.ts # postMessage bridge to host/server
│ │ │ └── usePRDState.ts # Optimistic local state
│ │ ├── components/ # Visual components
│ │ │ ├── Toolbar.tsx # Title, template selector, export
│ │ │ ├── PRDOutline.tsx # Sidebar: section list + drag reorder
│ │ │ ├── SectionEditor.tsx# Inline editing + validation feedback
│ │ │ └── CompletenessMeter.tsx # Score gauge + breakdown
│ │ ├── App.tsx # Main layout wiring everything together
│ │ ├── main.tsx # React entry point
│ │ └── styles/main.css # Self-contained styling
│ └── package.json
│
├── docs/
│ ├── DEPLOYMENT.md # Comprehensive guide: local dev → production
│ └── ARCHITECTURE.md # Technical architecture deep-dive
│
├── package.json # Root workspace config
├── tsconfig.json # TypeScript config with path aliases
└── vite.config.ts # Vite build config for UI
MCP Tools
| Tool | UI? | Description |
|---|---|---|
open_prd_builder |
✅ | Opens the interactive PRD builder UI inline |
analyze_prd |
— | Returns completeness score + suggestions (text only) |
update_prd_section |
— | Pushes content into a section (used by Claude) |
export_prd |
— | Exports PRD to markdown/JSON |
list_prd_templates |
— | Lists available templates |
PRD Templates
| Template | Sections | Use Case |
|---|---|---|
| Standard Feature | 11 | New product features (default) |
| Platform Initiative | 9 | Infrastructure / cross-cutting changes |
| Bugfix / Small Change | 5 | Lightweight documentation for fixes |
Getting Started
# Install
npm install
# Build
npm run build
# Configure in Claude Desktop
# See docs/DEPLOYMENT.md → Phase 3
Local deployment guide: docs/DEPLOYMENT.md
External hosting (Railway): docs/DEPLOY-RAILWAY.md
Architecture deep-dive: docs/ARCHITECTURE.md
Tech Stack
- MCP SDK:
@modelcontextprotocol/sdk+@modelcontextprotocol/ext-apps - Server: Node.js + TypeScript
- UI: React 18 + Vite
- Transport: stdio (local) / SSE (remote)
- No runtime database — in-memory store (persistent storage is a drop-in replacement, see DEPLOYMENT.md)
Status
Prototype — core code is complete and functional. Not yet built or tested against a live Claude instance. The DEPLOYMENT.md guide walks through everything needed to take it live.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.