# Ground docs Ground builds synthetic datasets, one table or several related tables, from a plain-language request. Use it in the web app, over the REST API, or from Claude and ChatGPT with the Ground MCP connector. ## Quickstart Every route does the same three things: create a dataset, check on its build, and download its tables. ### In the web app 1. Sign up or open the app, then describe the data you need, for example "customers, subscriptions and monthly invoices". 2. The dataset page shows the build as it runs, then the tables, row counts and sample rows. 3. Download the tables from the dataset page in the format you need, or open them in Python, a notebook or a coding agent. ### With the API Create a key in Account settings → API keys (on plans that include API access) and send it as a bearer token. ```bash export GROUND_API_KEY=gk_… # 1. Create a dataset curl https://useground.dev/api/dataset-graphs \ -H "Authorization: Bearer $GROUND_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: invoices-1" \ -d '{ "request": "Customers, subscriptions and monthly invoices" }' # → { "id": "8d0f…", "jobId": "…", "status": "queued", … } # 2. Check the build: repeat until job.status is succeeded curl https://useground.dev/api/dataset-graphs/$ID -H "Authorization: Bearer $GROUND_API_KEY" # 3. Download every table (one file, or a zip for several) curl -L -o dataset.zip https://useground.dev/api/dataset-graphs/$ID/download -H "Authorization: Bearer $GROUND_API_KEY" ``` Every endpoint is in the API reference: https://useground.dev/docs/api ### With the MCP connector 1. Add Ground as a connector with the server URL https://useground.dev/mcp, and sign in to Ground when asked. 2. Ask for the dataset you need. The assistant starts the build and gives you the dataset link. 3. Ask how it is going at any time. When it is done, ask for download links in the format you want. Setup for each assistant, the tools and troubleshooting: https://useground.dev/docs/mcp ## Help Support: https://useground.dev/support or support@useground.dev. Status: https://useground.dev/status. --- # Ground MCP connector Ground runs a hosted, remote MCP server over Streamable HTTP. There is nothing to install. Server URL: https://useground.dev/mcp ## Connect ### Claude 1. In Claude on the web or desktop, add a custom connector named Ground with this URL. 2. Sign in to Ground when Claude asks, and approve the connection. 3. Turn the Ground connector on in a chat and ask for a dataset. ``` https://useground.dev/mcp ``` ### Claude Code 1. Run this in your terminal. 2. In Claude Code, run /mcp and sign in to Ground. 3. Ask for a dataset in plain words. ```bash claude mcp add --transport http ground https://useground.dev/mcp ``` ### ChatGPT 1. With developer mode on, create an app with this URL and OAuth authentication. 2. Sign in to Ground when ChatGPT asks, and approve the connection. 3. Ask for a dataset in a chat with the Ground app turned on. ``` https://useground.dev/mcp ``` ### API key 1. Any MCP client that can send a header can use a Ground API key instead of signing in. 2. Create the key in Account settings → API keys. Keys need a plan that includes API access. 3. Send it as a bearer token. The example adds it to Claude Code. ```bash claude mcp add --transport http ground https://useground.dev/mcp \ --header "Authorization: Bearer $GROUND_API_KEY" ``` ## Sign-in and access - Claude and ChatGPT connect with OAuth: you sign in with your Ground account and approve the connection. The connector acts as you and sees only your datasets. - A Ground API key also works as a bearer token (Authorization: Bearer gk_…) on plans that include API access. - Creating datasets needs a Ground plan. Your plan's usage limits apply exactly as they do in the web app. - Checking status, listing datasets and file downloads are free. A build that fails uses nothing. ## Tools ### ground_create Create a Ground dataset. Uses the user's Ground plan usage: starts building a dataset from a plain-language request, or text-to-SQL training over an existing SQLite upload. A build that reaches the usage limit pauses (ground_status says so); a failed build uses nothing. | Parameter | Type | Required | Description | |---|---|---|---| | request | string | no | The user's dataset request in their words, e.g. "retail stores in the UK from 2022-2024 with monthly sales". | | rows | integer | no | Row count for the main table, only if the user stated one. | | schema_training | object | no | Files already uploaded under training-sql-database, training-sql-examples and training-sql-eval through /api/uploads. Omit request and rows for this job. | | request_id | string (UUID) | yes | A new UUID for this request. Send the same one again only to retry it: that never starts a second one. | ### ground_status Check a Ground dataset. Free. A dataset's build status with rows saved per table so far, and once complete its tables (row counts, columns with a one-line summary of their values, up to 5 sample rows each), how the tables link, checks run on the saved rows, the download formats and its link. A build paused at the usage limit returns its message, where to add usage and where to continue it. | Parameter | Type | Required | Description | |---|---|---|---| | id | string | yes | The dataset id from ground_create or ground_list_datasets. | ### ground_download Download a Ground dataset. Free saved-file links (csv, jsonl, parquet, sqlite, sql, postgres). A training format starts a training export, which uses the user's Ground plan usage: send a request_id. Check it with job_id and the same dataset and format for the signed-in download link. | Parameter | Type | Required | Description | |---|---|---|---| | id | string | yes | The dataset id. | | format | "csv" \| "jsonl" \| "parquet" \| "sqlite" \| "sql" \| "postgres" \| "openai-chat" \| "sharegpt" \| "alpaca" \| "dpo" \| "openai-preference" \| "spans" \| "text-to-sql" | no | File or training record format. Defaults to csv. | | revision | string (UUID) | no | Saved version to export for training. Defaults to the latest. | | table | string | no | Saved table id, required for a dataset with multiple tables. | | mapping | object | no | Training column mapping. For text-to-sql, pass {sql: {questions: number, table?: string}} or omit for defaults. | | split | object | no | Optional train, validation and test shares with a seed and grouping column. | | package | "jsonl" \| "huggingface" | no | | | request_id | string (UUID) | no | A new UUID for this request. Send the same one again only to retry it: that never starts a second one. | | job_id | string (UUID) | no | Check an existing training export. | ### ground_list_datasets List Ground datasets. Free. The user's most recent Ground datasets: id, name, status, tables, rows, created and link. | Parameter | Type | Required | Description | |---|---|---|---| | limit | integer | no | How many, newest first (default 10). | ## Example prompts - Create a dataset of retail stores in the UK from 2022-2024 with monthly sales. - Make 5,000 customers with subscriptions and monthly invoices. - How is my Ground dataset going? - List my recent Ground datasets. - Give me download links for that dataset as Parquet. ## Troubleshooting - The assistant asks you to sign in again: The sign-in expired or was revoked. Reconnect Ground in the assistant, or check your API key. - "This app is not approved to connect to Ground": Sign-in connections are open to Claude and ChatGPT. From any other MCP client, use an API key. - API keys refused on your plan: Keys need a plan that includes API access. Sign in with OAuth from Claude or ChatGPT instead, or change plan. - "Creating datasets needs a Ground plan": Choose a plan on the pricing page, then ask again. Status, lists and downloads still work. - A build stops at your usage limit: It pauses, it doesn't fail. Add usage on your Account page, then continue the build from the dataset page. - Your organization requires two-factor authentication: Connected apps and API keys can't confirm a second factor. Use Ground on the web, signed in with it. - "The service is busy": Ground is briefly overloaded. Try again in a few seconds. - "This account needs to be linked by support": Email support from your account's address and we'll link it. --- # API reference Create datasets and download their tables over HTTPS with JSON. Base URL: https://useground.dev ## Authentication Create a key in Account settings → API keys and send it as a bearer token. Keys act as you; they can't manage keys or your account. API keys need a plan that includes API access. ```bash curl https://useground.dev/api/dataset-graphs/$ID -H "Authorization: Bearer gk_…" ``` ## Idempotency Send an Idempotency-Key header (1–200 characters) when you create a dataset. Retrying with the same key and body returns the original result without another charge; reusing a key with a different body is refused. ## Errors Errors are JSON `{ "error": "…" }` with a status: - 400: Invalid input - 401: Missing or revoked key - 402: Usage limit reached - 403: Not allowed on your plan - 404: Not found, or not yours - 409: Out of date, or not ready yet ## Create a dataset ### POST /api/dataset-graphs Send a request with an optional row count. Ground builds the tables in the background under your plan's usage limit. - `request` (string, required): What you need, in plain words. - `rows` (integer): How many rows the main table should have. Leave it out to let Ground choose. Body: ```json { "request": "Customers, subscriptions and monthly invoices", "rows": 5000 } ``` Returns: ```json { "id": "8d0f…", "version": "…", "jobId": "…", "status": "queued" } ``` ### GET /api/dataset-graphs/{id} The dataset's current version, its tables and the state of its build. Poll it until the build finishes. ### POST /api/dataset-graphs/{id}/confirm Give the go-ahead to a build that is waiting for confirmation. ## Download ### GET /api/dataset-graphs/{id}/download Every table of the current version: one table as its file, several as a zip. Add ?format=json for a short-lived link instead of the file. ### GET /api/dataset-graphs/{id}/download/{table} One table. ## Delete ### DELETE /api/datasets/{id} Move the dataset to the trash. It can be restored until it is purged with its files. ### POST /api/datasets/trash/{id} Restore a dataset from the trash. ### DELETE /api/datasets/trash/{id} Delete a trashed dataset and its files forever.