Docs / MCP connector

Get started

MCP connector

Ask Claude or ChatGPT for the data you need and Ground builds it. Ground runs a hosted, remote MCP server, so there is nothing to install.

Server URL#

Streamable HTTP · OAuth or API key
https://useground.dev/mcp

Connect#

Pick your assistant. Each connection signs in as your Ground account, so it sees only your datasets and uses your plan.

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.
Connector URL
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.
Terminal
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.
Connector URL
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.
Terminal
claude mcp add --transport http ground https://useground.dev/mcp \
  --header "Authorization: Bearer $GROUND_API_KEY"

More detail, including the Ground plugin for Claude Code, is in the Claude and ChatGPT setup guide.

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#

The server exposes 4 tools. This list is read from the server's own definitions, so it always matches what your assistant sees.

ground_create

Can start work

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.

ParameterTypeDescription
requeststringThe user's dataset request in their words, e.g. "retail stores in the UK from 2022-2024 with monthly sales".
rowsintegerRow count for the main table, only if the user stated one.
schema_trainingobjectFiles already uploaded under training-sql-database, training-sql-examples and training-sql-eval through /api/uploads. Omit request and rows for this job.
request_idrequiredstring (UUID)A new UUID for this request. Send the same one again only to retry it: that never starts a second one.

ground_status

Read-only

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.

ParameterTypeDescription
idrequiredstringThe dataset id from ground_create or ground_list_datasets.

ground_download

Can start work

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.

ParameterTypeDescription
idrequiredstringThe dataset id.
format"csv" | "jsonl" | "parquet" | "sqlite" | "sql" | "postgres" | "openai-chat" | "sharegpt" | "alpaca" | "dpo" | "openai-preference" | "spans" | "text-to-sql"File or training record format. Defaults to csv.
revisionstring (UUID)Saved version to export for training. Defaults to the latest.
tablestringSaved table id, required for a dataset with multiple tables.
mappingobjectTraining column mapping. For text-to-sql, pass {sql: {questions: number, table?: string}} or omit for defaults.
splitobjectOptional train, validation and test shares with a seed and grouping column.
package"jsonl" | "huggingface"—
request_idstring (UUID)A new UUID for this request. Send the same one again only to retry it: that never starts a second one.
job_idstring (UUID)Check an existing training export.

ground_list_datasets

Read-only

List Ground datasets

Free. The user's most recent Ground datasets: id, name, status, tables, rows, created and link.

ParameterTypeDescription
limitintegerHow 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.”

Builds take a few minutes

The assistant starts the build and gives you the dataset link straight away. Ask how it is going whenever you like: checking is free, and a build that fails uses nothing.

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.

Still stuck? The support page says what to send us.

What the server tells assistants#

When an assistant connects, the server gives it this guidance, so it knows how builds, usage and downloads work.

Server instructions
Ground creates synthetic datasets (single or related tables) from a plain-language request. Each build uses the user's Ground plan usage.
Flow: 1) call ground_create with the user's request in their words (and rows only if they gave a count) and a new request_id. Reuse that request_id if you retry the same request; it never starts a second build.
2) A build takes minutes. Tell the user it has started and share the dataset link; call ground_status when the user asks how it is going. 3) When it is complete, summarise the tables and share the dataset link (or a ground_download link).
If a build reaches the usage limit it pauses: ground_status says so. Pass on its message and links: the user adds usage on their Account page, then continues the build from the dataset page. A build that fails uses nothing.
For training exports, call ground_download with the training format and a new request_id; it starts the export. Use the returned job_id with the same dataset and format to get the download link.
To train on a SQLite database, pass schema_training to ground_create with files already uploaded to the same Ground account through /api/uploads. ground_status accepts the returned training ID and gives the download link.
Do not paste many rows into the chat: show at most a few sample rows and link to the dataset.