Generate-Data

io.github.ns-3e由 GitHub 帳號 ns-3e 發布v2.0.1更新於 Oct 24, 2026

MCP server for Generate-Data.com: dataset generation, AI schema design, Project management.

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理產生合成資料集、用自然語言設計資料結構,並管理 Generate-Data.com 專案。

可以做什麼
依欄位清單產生合成資料列,支援 CSV、JSON、XML、Parquet 與 ZIP,二進位格式以 base64 回傳,列數與欄數上限由 API 金鑰等級決定。依自然語言提示設計資料集結構,或傳入對話與目前結構來調整既有結構。依類別瀏覽可用欄位類型,並查詢單一欄位類型的設定選項。查看 API 金鑰用量:當日呼叫次數、等級與限額。分頁列出使用者的專案,並產生專案中的所有資料表並下載結果。
適用情境
適合需要為展示、測試資料或開發準備擬真假資料時使用,也適合讓助理把一段自然語言描述轉成資料集結構並直接產出資料列,不必離開對話。
執行需求
透過 stdio 在本機執行,通常以 uvx 啟動或透過 pip 安裝。需要 Generate-Data.com 帳號,並在 GENERATE_DATA_API_KEY 環境變數中提供 API 金鑰;選用的 GENERATE_DATA_API_BASE_URL 可覆寫 API 位址。需要能連線至 Generate-Data.com API 的網路。進階工具需要 Premium 等級的金鑰。
安裝前請注意
API 金鑰屬於機密,README 提醒不要提交含真實金鑰的設定檔。產生資料受等級限制:免費金鑰僅支援 100 列、10 欄、僅 CSV、每天 10 次呼叫;Premium 提高到 100,000 列、50 欄、更多格式與每天 1,000 次呼叫。資料集提示與結構會傳送到 Generate-Data.com API。產生專案會下載產生的資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Generate-Data,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

generate-data-mcp

[PyPI]

An MCP server for Generate-Data.com — generate synthetic datasets, design schemas from natural language, and manage Projects, straight from your agent.

Thin HTTP wrapper over the Generate-Data.com API. No generation logic lives in this repo — it's a curated, agent-friendly interface onto the real thing: 7 tools, one consistent response shape, binary-safe output, and server-side validation on every input.

Installation (30-second setup)

You need a Generate-Data.com API key first — create one in Settings → API Access on generate-data.com.

Claude Desktop / Cursor (recommended)

Add this to your MCP client config (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json):

json
{  "mcpServers": {    "generate-data": {      "command": "uvx",      "args": ["generate-data-mcp"],      "env": {        "GENERATE_DATA_API_KEY": "your-uuid-key-here"      }    }  }}

uvx fetches and runs the latest published version on demand — no separate install step, nothing to update by hand. Restart your client and the 7 gd_* tools are available.

Do not commit a config file containing your real API key.

uv / uvx (any MCP client)
bash
# run once, ad hoc:uvx generate-data-mcp
# or install it as a persistent CLI tool:uv tool install generate-data-mcp
pip (fallback)
bash
pip install generate-data-mcp

For local development against this repo directly:

bash
git clone https://github.com/ns-3e/generate-data-mcp.gitcd generate-data-mcppip install -e ".[dev]"

Verify it works

bash
export GENERATE_DATA_API_KEY=your-keygenerate-data-mcp

From your MCP client, invoke gd_get_usage — it should return your tier and call counts. Then invoke gd_list_field_types — it should return the category map.

Bam — you're ready to generate data.

Ask your agent something like "generate 50 rows of fake e-commerce customers as CSV" and it will call gd_design_schema then gd_generate_dataset on its own.

Quick start

A typical session looks like this — the agent chains tools on its own, you just describe the outcome:

  1. Discover what's possible. gd_list_field_types — see every field type, grouped by category.
  2. Design a schema. gd_design_schema(prompt="E-commerce customers with name, email, and signup date") — proposes a fields array from plain English.
  3. Generate the data. gd_generate_dataset(fields=..., num_rows=10, format="csv") — returns the rows.
  4. Refine if needed. Call gd_design_schema again, this time passing messages (the running conversation) + current_schema (the prior result) together — it refines instead of proposing fresh.

Every tool returns the same envelope: {"ok": true, "summary": "...", "data": {...}} on success, or {"ok": false, "error": {"code": ..., "message": ...}} on failure — errors always tell you what to do next, never a raw stack trace.

Local development

json
{  "env": { "GENERATE_DATA_API_BASE_URL": "http://localhost:8000" }}

Point at a locally running Django backend instead of the hosted API.

Migrating from v1

v2.0.0 renames every tool (breaking change). Old name → new name:

  • generate_data → gd_generate_dataset
  • list_field_types → gd_list_field_types
  • get_field_options → gd_get_field_type_options
  • propose_schema → gd_design_schema (first call, no messages/current_schema)
  • refine_schema → gd_design_schema (pass messages + current_schema together)
  • get_api_usage → gd_get_usage
  • list_projects → gd_list_projects (now paginated: limit/offset)
  • generate_project → gd_generate_project (binary formats now returned base64-encoded, not corrupted utf-8)

Reference

All 7 tools, split by tier.

Free tier

  • gd_generate_dataset — Generate synthetic dataset rows from a field list. format: csv, json, xml, parquet, or zip (binary formats return base64-encoded).
  • gd_list_field_types — List all available field types grouped by category. Takes no arguments.
  • gd_get_field_type_options — Get the configuration option schema for one field type. field_type must match ^[a-z0-9_]+$.
  • gd_design_schema — Design a dataset schema from natural language, or refine an existing one — one tool for both the first proposal and follow-up conversation turns.
  • gd_get_usage — Get current API key usage stats: calls today, tier, limits. Takes no arguments.

Premium tier

Requires a Premium API key — Free-tier keys get a tier_forbidden error.

  • gd_list_projects — List the user's Projects, paginated (limit/offset, default 20/0).
  • gd_generate_project — Generate all tables in a Project and download the result. Same format/binary rules as gd_generate_dataset.

Tier limits (API key)

CapabilityFreePremium
Max rows / request100100,000
Max columns1050
FormatsCSVCSV, JSON, XML, Parquet
Daily API calls101,000

Limits are enforced by the Django API, not this MCP server.

Configuration

VariableRequiredDefault
GENERATE_DATA_API_KEYYes—
GENERATE_DATA_API_BASE_URLNohttps://api.generate-data.com

Troubleshooting

SymptomFix
GENERATE_DATA_API_KEY is requiredSet env var before starting the server
HTTP 401 / auth_failedInvalid or deactivated key
HTTP 429 / rate_limitedPer-minute or daily cap hit; wait or upgrade tier
HTTP 403 / tier_forbiddenFree tier lacks access; upgrade plan
unsupported_formatformat must be one of csv, json, xml, parquet, zip
invalid_input on a field type or project IDValue failed server-side validation before any request was sent — check spelling/type

Development

bash
git clone https://github.com/ns-3e/generate-data-mcp.gitcd generate-data-mcppip install -e ".[dev]"pytest tests/ -v

API docs

Docs live on generate-data.com. See this repo's tool docstrings (generate_data_mcp/server.py) for the authoritative request/response shapes.

來源:README.md,提交 b10ee5b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分