Asking for fifty users and two hundred orders linked to them is one call, and the seed makes the result repeatable, so a failing test can be reproduced rather than regenerated. detect_schema is the shortcut worth knowing: point it at a CREATE TABLE from an existing migration and you skip defining the schema twice.
A client for MockHero's test-data service. It generates related tables with working foreign keys from a schema you give it, a template, or a plain-English description, and can read an existing schema to start from.
- Relational test data with foreign keys honoured, in JSON, CSV or SQL for the dialect you name, and a seed for repeatable output — generate_test_data
- 156 field types across identity, location, financial, temporal, technical, content, HR, ecommerce, healthcare and edge-case categories, listed with their parameters — list_field_types
- 22 locales, so names and addresses match the market you are testing for
- Pre-built schemas for common shapes — ecommerce, blog, saas, social — with a scale multiplier instead of a table definition — generate_from_template, list_templates
- A SQL CREATE TABLE statement or a sample JSON record converted into a schema ready to generate from — detect_schema
- A cost estimate before generating, using your actual daily usage when a key is configured — estimate_agent_usage
- A purchase flow that runs entirely in tools: a checkout URL created for a billing email, its status polled, and the API key claimed once it is paid — create_agent_checkout, check_agent_checkout_status, claim_agent_api_key
It runs with or without a key. Without one, generation from explicit schemas and small templates is free up to 100 records per request, and schema detection, field-type listing, templates and estimates are always free. MOCKHERO_API_KEY unlocks plain-English prompt generation and larger requests; the agent plan gives 500 free records a day, then $0.001 per 100 records, billed through Polar as merchant of record. Run npx @mockherodev/mcp-server over stdio, or connect a Streamable HTTP client straight to https://mockhero.dev/mcp/agent with the key as a bearer token. The claimed key is shown exactly once — store it, then restart the server with it set.
One command plus a key — npx @mockherodev/mcp-server, then supply credentials
