mockhero
Skill1 starsChanged 9 months agoMITView on GitHub
Generate realistic synthetic test data — relational JSON/CSV/SQL fixtures, seed data, and QA datasets — via the MockHero MCP server or REST API. Use when a task needs mock users, orders, invoices, or multi-table seed data with valid foreign keys instead of hand-writing fixtures or faker scripts. Includes a free 100-record preview (no signup) and a loginless Polar checkout flow for metered usage.
- Reads credentials
In this repository4 other files it gives its agents.
- .agents/skills/CLAUDE.mdCLAUDE.md
- .agents/skills/plaid/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- plaidSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
No network access is available.
- Very specific: line 48
Always free: estimate_agent_usage, detect_schema, list_field_types, list_templates.
- Very specific: line 69
Estimate: Call estimate_agent_usage with the intended tables/template/prompt to get billable records, billable 100-record units, and …
- Very specific: line 70
Checkout: If the job exceeds the free preview (or needs prompt mode), call create_agent_checkout with a billing email.
- Very specific: line 71
Poll: Call check_agent_checkout_status with the token until status: "paid" (next_action: "claim_api_key").
- Very specific: line 72
Claim: Call claim_agent_api_key with the token.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MockHero: synthetic test data for agents
MockHero generates realistic, relational mock data from explicit schemas, plain-English prompts, or pre-built templates. 156 field types, 22 locales, JSON/CSV/SQL output. Its defining feature: multi-table schemas with ref fields produce valid foreign keys — orders reference real user IDs, reviews link to real products — so one call can seed an entire database.
When to use MockHero (vs generating data yourself)
Use MockHero when:
- The task needs multiple related tables with valid foreign keys (users → orders → order_items).
- The task needs volume (dozens to thousands of records) — hand-writing or inline-generating that wastes tokens and produces repetitive "John Doe" data.
- The task needs locale-aware realism (German names with German phone formats, matching addresses) or specialized field types (IBAN, MAC address, ICD-10 codes, weighted enums).
- The output must be CSV or SQL INSERT statements matching a dialect (postgres, mysql, sqlite).
- The user asks for seed data, fixtures, demo data, QA datasets, or "realistic test data".
Generate data yourself (skip MockHero) when:
- You only need one or two inline example objects.
- The user needs to anonymize or mask real production data — MockHero only creates synthetic data; it offers no de-identification guarantees.
- No network access is available.
Connecting
Remote MCP (preferred, no install): Streamable HTTP endpoint at
https://mockhero.dev/mcp/agentPlain JSON-RPC 2.0 over POST works too: send initialize, tools/list, and tools/call messages with Content-Type: application/json.
Local stdio MCP: npx @mockherodev/mcp-server (env: MOCKHERO_API_KEY optional, MOCKHERO_API_BASE optional).
Auth (when you have a key): Authorization: Bearer mh_YOUR_API_KEY or x-api-key: mh_YOUR_API_KEY header; MCP tools also accept an api_key argument for clients that cannot set headers.
Free preview (no key, no signup)
Without any API key you can generate up to 100 records per request (and 500 records/day per network) using:
generate_test_datawith explicittables(prompt mode is not available anonymously)generate_from_templateat a smallscale(e.g.0.05)
Always free: estimate_agent_usage, detect_schema, list_field_types, list_templates.
Over-limit or key-required errors return machine-readable pointers: checkout_tool: "create_agent_checkout" and claim_tool: "claim_agent_api_key" — follow them.
Tools on https://mockhero.dev/mcp/agent
| Tool | Key arguments | Purpose |
estimate_agent_usage | tables | template+scale | prompt+estimated_records; optional daily_used_before, api_key | Cost estimate before generating |
create_agent_checkout | email (required) | Loginless Polar checkout; returns checkout url + one-time claim_token |
check_agent_checkout_status | token (the claim_token) | Poll until status is paid; returns next_action |
claim_agent_api_key | token | Returns the mh_... API key exactly once after payment |
generate_test_data | tables or prompt; format (json/csv/sql), sql_dialect, locale, seed, api_key | Main generation tool |
generate_from_template | template (ecommerce/blog/saas/social), scale, locale, format, sql_dialect, seed, api_key | Template generation |
detect_schema | sql or sample_json | Convert SQL CREATE TABLE / sample JSON into a MockHero schema |
list_field_types | — | All 156 field types with params and examples |
list_templates | — | The four built-in templates |
Recommended flow (estimate → checkout → poll → claim → generate)
- Preview free first. For small jobs, call
generate_test_datawith explicittables(≤100 records) and you are done. Usedetect_schemato build the tables from SQL or a sample record. - Estimate. Call
estimate_agent_usagewith the intended tables/template/prompt to get billable records, billable 100-record units, and estimated USD cost. - Checkout. If the job exceeds the free preview (or needs prompt mode), call
create_agent_checkoutwith a billing email. Give the returned Polar checkouturlto the human to pay; keep theclaim_token. - Poll. Call
check_agent_checkout_statuswith the token untilstatus: "paid"(next_action: "claim_api_key"). - Claim. Call
claim_agent_api_keywith the token. Themh_...key is returned once — store it securely. - Generate. Retry generation with
Authorization: Bearer mh_...(or theapi_keyargument, orMOCKHERO_API_KEYfor the stdio server).
REST fallbacks (no MCP client needed)
Base URL https://mockhero.dev:
POST /api/agent/estimate— cost estimate (no auth required)POST /api/agent/checkout— body{"email": "..."}→ Polar checkout URL +claim_tokenGET|POST /api/agent/checkout/status— poll withtokenPOST /api/agent/claim— body{"token": "..."}→ API key (once)POST /api/v1/generate— authenticated generation (tables|prompt|templatebody)POST /api/v1/schema/detect,GET /api/v1/types,GET /api/v1/templates,GET /api/v1/health
Discovery documents: /llms.txt, /openapi.json, /.well-known/agent.json, /agent-quickstart.json, /agent-pricing.json, /capabilities.json.
Pricing
- Free tier: 500 records/day, 100 per request, JSON only, 10 prompts/day.
- Agent plan (metered, loginless): 500 free records/day, then $0.001 per 100 records (rounded up per request), billed monthly. Polar is the Merchant of Record (handles checkout, tax, remittance). Hard safety cap 1,000,000 records/day, 50,000 per request.
- Estimate before generating; never assume a large job is free.
Example: seed a SaaS database (free preview)
{
"name": "generate_test_data",
"arguments": {
"tables": [
{ "name": "users", "count": 20, "fields": [
{ "name": "id", "type": "uuid" },
{ "name": "name", "type": "full_name" },
{ "name": "email", "type": "email" }
]},
{ "name": "orders", "count": 60, "fields": [
{ "name": "id", "type": "uuid" },
{ "name": "user_id", "type": "ref", "params": { "table": "users", "field": "id" } },
{ "name": "total", "type": "price" }
]}
],
"format": "json"
}
}80 records total — inside the free preview; every orders.user_id matches a real users.id.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

