Skip to main content

Prerequisites

  • Node.js:
    • Minimum: Version 22 (LTS Maintenance)
    • Recommended: Version 24 (Active LTS)
    • FrontMCP is developed and tested on Node.js 24
  • npm ≥ 10 (pnpm / yarn work too)
  • TypeScript project (the init command can set this up)

Option A — Create a new project

Use the built-in project generator. It will create a new folder under your current directory.
npx frontmcp create my-app
The create command is interactive by default:
? Project name: my-app
? Deployment target:
  > Node.js (Docker)
    Vercel (Serverless)
    AWS Lambda
    Cloudflare Workers
? Redis setup: (Docker target only)
  > Docker Compose
    Existing Redis
    None
? Enable GitHub Actions CI/CD? (Y/n)
Use --yes (or -y) to skip prompts and use defaults.

CLI Flags

FlagDescriptionDefault
--yes, -yUse defaults (non-interactive)-
--target <type>Deployment: node, vercel, lambda, cloudflarenode
--redis <setup>Redis: docker, existing, nonedocker
--cicd / --no-cicdEnable GitHub Actions--cicd
Examples:
# Interactive mode (default)
npx frontmcp create my-app

# Non-interactive with defaults
npx frontmcp create my-app --yes

# Vercel target with CI/CD
npx frontmcp create my-app --target vercel

# Docker without Redis
npx frontmcp create my-app --target node --redis none --no-cicd
This will:
  • scaffold a FrontMCP project in ./my-app
  • configure tsconfig.json for decorators and modern ESM
  • generate a package.json with helpful scripts
  • create deployment configuration for your target (Dockerfile, vercel.json, etc.)
  • generate GitHub Actions workflows (if enabled)
  • install required dev dependencies (e.g. TypeScript, tsx, zod, reflect-metadata)

Option B — Add to an existing project

Install the CLI and Node types (FrontMCP bundles compatible @frontmcp/sdk internally—no separate install needed).
npm i -D frontmcp @types/node@^24
Then initialize FrontMCP in your project root:
npx frontmcp init
init will:
  • add/update scripts in your package.json
  • ensure your tsconfig.json includes required compiler options
  • verify a sensible project layout

Package scripts

After create or init, you’ll have these scripts:
{
  "scripts": {
    "dev": "frontmcp dev",
    "build": "frontmcp build",
    "inspect": "frontmcp inspector",
    "doctor": "frontmcp doctor"
  }
}
What they do
  • frontmcp dev — run your server in watch mode (tsx)
  • frontmcp build — compile your entry with TypeScript (outputs to ./dist by default)
  • frontmcp inspector — launch the MCP Inspector (npx @modelcontextprotocol/inspector)
  • frontmcp doctor — validate Node/npm versions, tsconfig, and project setup

Verify your setup

Run:
npm run doctor
If anything is missing or misconfigured (Node/npm versions, tsconfig.json, scripts), doctor will tell you exactly what to fix.

Next steps

  • Start developing: npm run dev
  • Build for distribution: npm run build
  • Explore tools and messages live: npm run inspect