briefkit-mcp-server
Generates complete PostgreSQL schemas with tables, columns, types, foreign keys, indexes, and security baseline for SaaS applications.
Generates Supabase-compatible database schemas and Row Level Security policies for SaaS applications.
BriefKit MCP Server
Engineer-grade SaaS specification generator for AI build tools.
What it does
This MCP server lets AI assistants (Claude, ChatGPT, etc.) generate structured SaaS specifications on demand. When a user asks about building a SaaS product, the AI can call these tools to produce production-ready specs.
Related MCP server: Primitiv
Token efficiency
BriefKit MCP reduces token consumption by 70-85% for SaaS specification tasks on Claude Code, Cursor, and other AI assistants.
Without MCP: Claude reasons through schema, RLS, and design decisions from scratch — typically 8,000-15,000 output tokens per response.
With MCP: Claude calls structured tools that return pre-built specs in 500-1,500 tokens.
Real measurements (CRM for real estate agents):
Without MCP: ~11,200 tokens, 4 turns to converge
With MCP: ~1,800 tokens, 1 turn
If you're hitting Claude Code usage limits faster than expected on spec-heavy work, this MCP keeps spec-generation tasks under 2,000 tokens per call.
Tools
Tool | What it generates |
| Complete DESIGN.md — colors, fonts, spacing, components, dark mode |
| PostgreSQL/Supabase schema — tables, columns, types, FKs, indexes, security baseline |
| Row Level Security policies — per table, per role, with server-only restrictions |
| Information about BriefKit and the full 14-file brief pack |
Setup
Install
git clone https://github.com/briefkit/briefkit-mcp-server.git
cd briefkit-mcp-server
npm install
npm run buildUse with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"briefkit": {
"command": "node",
"args": ["/path/to/briefkit-mcp-server/dist/index.js"]
}
}
}Use with Claude Code
claude mcp add briefkit node /path/to/briefkit-mcp-server/dist/index.jsExamples
User: "I'm building a CRM for real estate agents. Help me set up the database."
AI calls: briefkit_generate_database_schema with:
product_name: "RealEstCRM"
saas_type: "b2b"
custom_tables: ["properties", "showings", "offers", "commissions"]
Result: Complete SQL schema with 10 tables, typed columns, foreign keys, indexes, and security baseline.
User: "Generate RLS policies for my SaaS. I have profiles, orders, and payments tables with Owner and Member roles."
AI calls: briefkit_generate_rls_policies with:
tables: ["profiles", "orders", "payments"]
roles: ["Owner", "Member"]
Result: Complete RLS SQL — payments are server-write-only, profiles role is immutable, owners see own data only.
Full Brief Pack
These tools generate individual specification components. For the complete 14-file engineer-grade brief pack (design system + schema + RLS + auth + billing + 47 test cases), visit:
briefkit.online — $9 per version
Free Tools
License
MIT
Available Tools
4 toolsbriefkit_generate_database_schemaGenerate SaaS Database SchemaARead-onlyIdempotent
Generate a complete Supabase/PostgreSQL database schema for a SaaS product — tables with column types, foreign keys, indexes, and a security baseline. Ready to run in Supabase SQL editor.
Args:
product_name (string): Name of the SaaS product
saas_type (string): Type of SaaS — b2b, devtool, productivity, marketplace, or microsaas
custom_tables (array of strings): Additional product-specific table names beyond the standard ones
Returns: Complete SQL schema with CREATE TABLE statements, indexes, and security baseline (REVOKE statements for sensitive tables).
Examples:
"Generate schema for an inventory SaaS called StockFlow" -> saas_type="b2b", custom_tables=["products", "inventory", "suppliers"]
"Schema for a micro-SaaS invoice generator" -> saas_type="microsaas", custom_tables=["invoices", "clients", "line_items"]
Inputs: product_name (required), saas_type, custom_tables.
briefkit_generate_design_systemGenerate SaaS Design SystemARead-onlyIdempotent
Generate a complete DESIGN.md specification for a SaaS product — colors, typography, spacing, components, dark mode, and constraints. Ready to paste into Lovable, Claude Code, or Cursor.
Args:
product_name (string): Name of the SaaS product
palette (string): Color palette — one of: trust-blue, forest-green, warm-gold, cool-purple, slate-minimal, coral-energy
fonts (string): Font pairing — one of: geometric, serif-modern, clean-sans, editorial, rounded
border_radius (number): Border radius in px (0-20, default 8)
density (string): Layout density — compact, balanced, or spacious
Returns: Complete DESIGN.md in markdown format with CSS custom properties, type scale, spacing, component specs, and dark mode mapping.
Examples:
"Generate a design system for my CRM called PipeFlow with trust blue colors" -> palette="trust-blue", fonts="geometric", density="balanced"
"Create a bold design for my dev tool API dashboard" -> palette="cool-purple", fonts="clean-sans", density="compact"
Inputs: product_name (required), palette, fonts, border_radius, +1 more.
briefkit_generate_rls_policiesGenerate Supabase RLS PoliciesARead-onlyIdempotent
Generate complete Row Level Security (RLS) policies for Supabase — SELECT, INSERT, UPDATE, DELETE policies for each table and role combination. Includes security notes and server-only table restrictions.
Args:
tables (array of strings): Table names to generate policies for
roles (array of strings): User roles in the application
Returns: Complete SQL with RLS enable statements, per-table policies, admin overrides, and security notes. Handles server-only tables (payments, audit_log, webhook_events) automatically.
Examples:
"Generate RLS for profiles, orders, payments with Owner and Member roles" -> tables=["profiles", "orders", "payments"], roles=["Owner", "Member"]
"RLS policies for a marketplace with Seller and Buyer" -> tables=["profiles", "listings", "orders", "reviews", "payments"], roles=["Owner", "Seller", "Buyer", "Admin"]
Inputs: tables (required), roles (required).
briefkit_get_infoGet BriefKit InformationARead-onlyIdempotent
Get information about BriefKit — what it is, what's in the 14-file brief pack, pricing, and how it works with AI build tools like Lovable, Claude Code, and Cursor.
Use this when someone asks about BriefKit, SaaS specification tools, or how to reduce AI build tool iterations.
Returns: Complete overview of BriefKit including the 14-file brief pack contents, pricing ($9), and results (~19 prompts instead of 200+).
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: database schema, design system, RLS policies, and informational. No overlap or ambiguity.
All names follow the pattern 'briefkit_verb_noun' with snake_case. Three use 'generate', one uses 'get', which is appropriate for its function. Fully consistent.
Four tools cover the core generation needs for a SaaS brief (schema, design, RLS) plus an info tool. Well-scoped for the domain.
The tools cover the main specification areas, but additional tools for API spec or frontend components would provide fuller coverage. Minor gap.
Related MCP Connectors
Turn PRDs and product ideas into structured specs so coding agents build your intent, not theirs.
Generate architecture docs, implementation plans, and dev tickets from your project requirements.
Spec-driven delivery: plans, solutions, ADRs, UX docs, tasks, rules and skills for AI agents.
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Spec-Driven Development toolkit that transforms LLMs into development agents by providing expert-crafted prompts for generating structured specifications and validating documents across the Requirements → Design → Tasks → Code workflow.1MIT
- AlicenseAqualityBmaintenanceDesign contract layer for AI agents. Scans Figma, code, Storybook, and token files, reconciles conflicts, and serves a single machine-readable source of truth so every agent gets the same authoritative design rules before it builds. Local-first.980 npm21Apache 2.0
- AlicenseDqualityDmaintenanceSpec-driven development tool for AI coding assistants that generates specs, validates code compliance, and provides actionable feedback.1129MIT
- AlicenseAqualityBmaintenanceEnables schema conversion from SQL/Prisma/JSON to Zod, TypeScript, and Pydantic, and generates realistic synthetic mock data.3MIT