MCP Setup Guide
MCP Setup Guide
The Model Context Protocol (MCP) enables AI assistants to interact directly with developer tools. Seedfast's MCP server brings intelligent database seeding into your AI workflow — no context switching required.
This guide walks through connecting Seedfast MCP to Claude Desktop, Cursor IDE, VS Code, or Claude Code CLI.
Understanding MCP Architecture
Before diving into configuration, it helps to understand what MCP actually does:
The MCP server acts as a bridge between your AI assistant and Seedfast's backend. When you ask Claude to "seed my database with test users," the assistant invokes MCP tools that execute the actual seeding operations.
Prerequisites
Before starting, ensure you have:
A Seedfast account (free tier available at dashboard.seedfa.st)
PostgreSQL database accessible from your machine
Node.js 18+ installed (for npx-based MCP server)
One of: Claude Desktop, Cursor IDE, VS Code with Continue.dev, or Claude Code CLI
Installation
No separate installation required. The MCP server is built into the Seedfast CLI and runs via npx directly from your configuration.
Configure Claude Desktop
Claude Desktop is the official Anthropic client with native MCP support.
Locate your config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the Seedfast server:
Restart Claude Desktop to load the new configuration.
Configure Cursor IDE
Cursor runs MCP servers in a sandboxed environment. Authentication is configured directly in the MCP config's env section.
Add to .cursor/mcp.json or global settings:
Configure VS Code with Continue.dev
Continue.dev provides MCP support for VS Code users.
Add to .continue/config.json:
Configure Claude Code CLI
For terminal-based workflows with Claude Code:
Add to your .mcp.json:
Verify Installation
After configuration, verify the MCP server is accessible. In your AI assistant, ask:
You should see output confirming the MCP server is running and authenticated:
Configure Authentication
Seedfast MCP uses config-based authentication via the env section in your MCP configuration.
Get Your API Key:
Log in to dashboard.seedfa.st
Navigate to Settings → API Keys
Click Create New Key
Copy the key (format:
sfk_live_xxxxx...)
Add API Key to MCP Config:
Add your API key to the env section of your MCP configuration (as shown in the configuration examples above):
Your First AI-Powered Seed
With everything configured, try your first seeding operation.
Test Database Connection:
Create a Seeding Plan:
This generates a plan without executing it, so you can review what will be seeded.
Execute Seeding:
The assistant will call seedfast_run, return a Run ID, and poll seedfast_run_status to show progress.
Example Session
Available MCP Tools
Core Tools:
seedfast_doctor— Verify CLI installation, environment, and auth statusseedfast_connections_test— Test database connectivityseedfast_run— Execute database seedingseedfast_run_status— Check seeding progressseedfast_run_cancel— Cancel running operation
Plan Management Tools:
seedfast_plan— Create seeding plan by analyzing database schemaseedfast_plans_list— List all seeding plans in current sessionseedfast_plan_get— Get a seeding plan by IDseedfast_plan_create— Create a seeding plan manually (without CLI)seedfast_plan_update— Update an existing seeding planseedfast_plan_delete— Delete a seeding plan
Troubleshooting
"npx: command not found"
Node.js isn't installed or not in your PATH. Install Node.js 18+ from nodejs.org.
"Not authenticated" or "SEEDFAST_API_KEY not configured" error
Verify your API key is configured in MCP config:
Open your MCP config file (see configuration sections above for location)
Check that the
envsection containsSEEDFAST_API_KEYVerify the key starts with
sfk_live_Restart your AI assistant to reload the config
You can also verify auth status by asking:
Expected output should show: Auth: OK (SEEDFAST_API_KEY configured)
Claude Desktop doesn't see the server
Verify JSON syntax in config file
Ensure Claude Desktop was fully restarted (not just minimized)
Check Developer Tools console for errors
Cursor IDE issues
Verify JSON syntax in
.cursor/mcp.jsonRestart Cursor completely
Check that
SEEDFAST_API_KEYis in theenvsection
npm package not found
If you see errors about the package not being found, try clearing npm cache:
Scope Best Practices
The scope parameter tells Seedfast what to seed:
seed all tables in all schemas— Seeds every table in the databaseseed only the sales schema— Seeds tables in specific schemaseed users, orders, and products tables— Seeds specific tablesseed HR department tables only— Seeds tables related to a domain
💡 Tip: Be explicit about schemas. "Seed all tables" might only seed one schema based on context. Use "seed all tables in all schemas" for full database seeding.
What's Next?
With MCP configured, explore these workflows:
Schema-specific seeding: "Seed only the hr schema with employee data"
Plan management: Create, review, and execute plans using
seedfast_plan_*toolsProgress monitoring: Poll
seedfast_run_statusto track seeding progress