list_projects
List projects
List your SeedBase projects (id, name, database type). Use this first to find the project to work with.
无需输入参数。

io.github.marcelglaeser由 GitHub 账号 marcelglaeser 发布v0.2.2更新于 Oct 24, 2026
Generate realistic, FK-consistent synthetic test data for your databases from your AI assistant.
SeedBase MCP 服务器,让助手列出项目、导入数据库结构,并生成以外键一致方式构造的合成测试数据(SQL INSERT)。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.marcelglaeser%2Fseedbase/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"seedbase-test-data": {
"type": "http",
"url": "https://seedba.se/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}Generate realistic, relationship-preserving, privacy-safe test data for your databases — and pull it straight into your local or CI database.
Seedbase lives on seedbase.dev: you model (or import) a schema there, generate datasets, and use this package to pull them into Postgres, MySQL, SQLite and more. Schema-aware, foreign-key-correct, reproducible by seed.
This is the Node.js client, a counterpart to the Python SDK.
Zero runtime dependencies — pure ESM, built on the native fetch of Node 18+.
This package ships seedbase-mcp — a zero-dependency Model Context Protocol
server that lets AI assistants generate test data for you. Describe what you
need ("fill my Shop project with MySQL test data") and the assistant drives
SeedBase end-to-end through five tools:
Hosted (zero install) — point any Streamable-HTTP MCP client at
https://seedbase.dev/mcp with an Authorization: Bearer dr_sk_... header:
Local via Claude Code (stdio):
Claude Desktop (claude_desktop_config.json):
Create a free account at seedbase.dev/register (no
credit card), then create an API key under Settings → API keys. The free tier is
enough to generate full, foreign-key-consistent datasets. The server is stdio-only,
talks exclusively to https://seedbase.dev, and stores nothing locally.
The token is resolved in this order:
token option passed to the constructor.SEEDBASE_TOKEN environment variable.token field in ~/.seedbase/config.json (written by seedbase login).API keys with the dr_sk_ prefix are sent as Authorization: Bearer ..., other
tokens as Authorization: Token .... Get a key at
seedbase.dev/settings?tab=api-keys.
All methods are async and return Promises. Failures throw a SeedbaseError
(with .statusCode for HTTP errors), carrying a readable message that includes
the server's detail or field errors.
Fill a Prisma-managed database with realistic, foreign-key-consistent data, in
one call. Your schema must already exist (your prisma migrate owns it);
SeedBase only fills it. Free tier.
Then run prisma db seed. A runnable demo (offline, no account) is in
examples/prisma-seed-demo.mjs.
MIT licensed.
来源:README.md,提交 297782b
List projects
List your SeedBase projects (id, name, database type). Use this first to find the project to work with.
无需输入参数。
Get schema DDL
Get a project's schema as CREATE TABLE statements. Accepts a project id or name and an optional SQL dialect (postgresql, mysql, sqlite, mssql).
dialectproject必填Generate test data
Generate a fresh synthetic dataset for a project and return it as SQL INSERT statements. Optionally set rows per table. The data is foreign-key consistent.
rowsseedproject必填Fetch generation result
Fetch a previously started generation by id: returns its status, and the SQL INSERT statements once completed. Use this when generate_test_data reported the generation as still running.
generation_id必填Create project
Create a new, empty SeedBase project. Use import_schema afterwards to add the schema.
name必填db_typeImport schema
Import a database schema into a project from pasted content: SQL DDL (CREATE TABLE …, raw pg_dump/mysqldump schema output works), SQL INSERT dumps, CSV/TSV, JSON, or ORM model code (Django, Prisma, SQLAlchemy, …). Replaces the project's current schema.
formatcontent必填project必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
npm install @seedbase/clientimport { SeedbaseClient } from "@seedbase/client";
// Token from the argument, $SEEDBASE_TOKEN, or ~/.seedbase/config.jsonconst client = new SeedbaseClient({ token: "dr_sk_..." });
// Trigger a generation and wait for it to finishconst gen = await client.generate(projectId, { seed: 42, wait: true });
// Download the result (Uint8Array)const bytes = await client.download(gen.id, { format: "sql" });import { writeFile } from "node:fs/promises";await writeFile("dump.sql", bytes);claude mcp add-json seedbase '{"type":"http","url":"https://seedbase.dev/mcp","headers":{"Authorization":"Bearer dr_sk_..."}}'claude mcp add-json seedbase '{"type":"stdio","command":"npx","args":["-y","-p","@seedbase/client","seedbase-mcp"],"env":{"SEEDBASE_API_KEY":"dr_sk_..."}}'{ "mcpServers": { "seedbase": { "command": "npx", "args": ["-y", "-p", "@seedbase/client", "seedbase-mcp"], "env": { "SEEDBASE_API_KEY": "dr_sk_..." } } }}new SeedbaseClient({ token, // optional, see resolution order above apiUrl, // default "https://seedbase.dev/api/v1" (https enforced, http only for localhost) configPath, // override ~/.seedbase/config.json requestTimeout, // per-request timeout in ms, default 30000 fetch, // inject a custom fetch (e.g. for tests)});import { SeedbaseError } from "@seedbase/client";
try { await client.getProject("missing");} catch (err) { if (err instanceof SeedbaseError) { console.error(err.statusCode, err.message); }}// prisma/seed.tsimport { PrismaClient } from "@prisma/client";import { SeedbaseClient } from "@seedbase/client";import { seedPrisma } from "@seedbase/client/prisma";
const prisma = new PrismaClient();const client = new SeedbaseClient({ token: process.env.SEEDBASE_TOKEN });
await seedPrisma(prisma, client, { project: process.env.SEEDBASE_PROJECT, seed: 42 });