MCP Server

Connect Better Fullstack to Claude Code, Cursor, VS Code, and MCP-compatible AI coding agents.

Open documentation actions

The Better Fullstack MCP server lets agents scaffold projects through structured tool calls instead of guessing CLI flags. It handles schema lookup, compatibility validation, dry-run previews, project creation, and feature additions.

This page describes the Better Fullstack MCP server. The generated-project mcp addon is separate: it writes MCP client/server configuration into a scaffolded app and may run external setup commands.

Setup

Claude Code

claude mcp add --transport stdio better-fullstack -- npx create-better-fullstack mcp

Cursor

{
  "mcpServers": {
    "better-fullstack": {
      "command": "npx",
      "args": ["-y", "create-better-fullstack", "mcp"]
    }
  }
}

VS Code

{
  "servers": {
    "better-fullstack": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "create-better-fullstack", "mcp"]
    }
  }
}

Other MCP clients

Use the same stdio command with clients such as Claude Desktop, Zed, Cursor, Codex, OpenCode, Gemini CLI, Goose, or other MCP-compatible tools:

npx -y create-better-fullstack mcp

Tools

ToolPurpose
bfs_get_guidanceReturns workflow rules and field semantics. Call this first.
bfs_get_schemaReturns valid options for configuration categories.
bfs_check_compatibilityValidates a stack and returns adjusted selections with warnings.
bfs_plan_projectDry-runs project generation in memory.
bfs_create_projectWrites a new project to disk.
bfs_plan_additionValidates addon changes for an existing project.
bfs_add_featureAdds supported addons to an existing project.

Resources

The server exposes these MCP resources:

ResourceContents
docs://compatibility-rulesCompatibility rules for stack combinations.
docs://stack-optionsAvailable technology options by category.
docs://getting-startedQuick-start recipes for supported ecosystems.

For a new project:

  1. bfs_get_guidance
  2. bfs_get_schema
  3. bfs_check_compatibility
  4. bfs_plan_project
  5. bfs_create_project

For an existing project:

  1. bfs_plan_addition
  2. bfs_add_feature

Key rules for agents

  • frontend is an array and can contain multiple frontend targets.
  • none disables a category.
  • Set ecosystem first so the agent uses the correct field family.
  • Array fields include frontend, addons, examples, rustLibraries, pythonAi, javaLibraries, and javaTestingLibraries.
  • Current MCP project schemas do not expose aiDocs as a create field; project creation uses the server's built-in AI-doc behavior.
  • Always call bfs_check_compatibility before creating a project.

Agent prompt

Use Better Fullstack MCP. First call bfs_get_guidance to understand
the rules, then bfs_get_schema for the relevant categories, then
bfs_check_compatibility to validate the stack, then bfs_plan_project
for a dry-run. Only call bfs_create_project after the dry-run succeeds.
Skip normal dependency installation and tell me the exact commands to
install, test, and run the project.