# Zapier — TiDB Cloud Integrations
> zapier.com/apps/tidb-cloud/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
TiDB Cloud is a fully-managed Database-as-a-Service (DBaaS) that brings TiDB, a MySQL-Compatible serverless HTAP database, to your business.

- App slug: tidb-cloud
- Operations published here: 17 (4 events, 5 functions, 5 queries, 3 search-or-write actions)

## Authentication
Zapier connects to TiDB Cloud via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection tidb-cloud
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/tidb-cloud/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect TiDB Cloud through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · clusterCreate`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "tidb-cloud", owner: "me" });

const { data } = await zapier.runAction({
  app: "tidb-cloud",
  actionType: "write",
  action: "clusterCreate",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action tidb-cloud write clusterCreate \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing TiDB Cloud's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "tidb-cloud" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions tidb-cloud --page-size 50 --max-items 200 --json
```

### Events (4)

Events fire when something happens in TiDB Cloud. Use them to start a run.

#### New Cluster
Triggers when a new cluster is created.

- Type: read · Key: `clusterList`
- Requires: projectId
- SDK: `runAction({ app: "tidb-cloud", actionType: "read", action: "clusterList" })`
- CLI: `npx zapier-sdk run-action tidb-cloud read clusterList`

#### New Row
Triggers when new rows are created. Only fetch the recently 10000 new rows.

- Type: read · Key: `row`
- Requires: projectId, clusterId, database, table
- Optional: order_by, dedupe_key
- SDK: `runAction({ app: "tidb-cloud", actionType: "read", action: "row" })`
- CLI: `npx zapier-sdk run-action tidb-cloud read row`

#### New Row (Custom Query)
Triggers when new rows are returned from a custom query that you provide.

- Type: read · Key: `row_query`
- Requires: projectId, clusterId, query
- SDK: `runAction({ app: "tidb-cloud", actionType: "read", action: "row_query" })`
- CLI: `npx zapier-sdk run-action tidb-cloud read row_query`

#### New Table
Triggers when a new table is created in a given database.

- Type: read · Key: `tableList`
- Requires: projectId, clusterId, database
- SDK: `runAction({ app: "tidb-cloud", actionType: "read", action: "tableList" })`
- CLI: `npx zapier-sdk run-action tidb-cloud read tableList`

### Functions (5)

Functions change something in TiDB Cloud.

#### Create Cluster
Creates a new cluster. Only support create a free serverless tier now.

- Type: write · Key: `clusterCreate`
- Requires: projectId, clusterName, region, tidbPassword
- SDK: `runAction({ app: "tidb-cloud", actionType: "write", action: "clusterCreate" })`
- CLI: `npx zapier-sdk run-action tidb-cloud write clusterCreate`

#### Create Database
Creates a new database.

- Type: write · Key: `databaseCreate`
- Requires: projectId, clusterId, database
- SDK: `runAction({ app: "tidb-cloud", actionType: "write", action: "databaseCreate" })`
- CLI: `npx zapier-sdk run-action tidb-cloud write databaseCreate`

#### Create Row
Creates a new row.

- Type: write · Key: `row`
- Requires: projectId, clusterId, database, table
- SDK: `runAction({ app: "tidb-cloud", actionType: "write", action: "row" })`
- CLI: `npx zapier-sdk run-action tidb-cloud write row`

#### Update Row
Updates an existing row.

- Type: write · Key: `row_update`
- Requires: projectId, clusterId, database, table, id_column, id_column_value
- SDK: `runAction({ app: "tidb-cloud", actionType: "write", action: "row_update" })`
- CLI: `npx zapier-sdk run-action tidb-cloud write row_update`

#### Create Table
Creates a new table.

- Type: write · Key: `tableCreate`
- Requires: projectId, clusterId, database, tableDDL
- SDK: `runAction({ app: "tidb-cloud", actionType: "write", action: "tableCreate" })`
- CLI: `npx zapier-sdk run-action tidb-cloud write tableCreate`

### Queries (5)

Queries read from TiDB Cloud and return data. They change nothing.

#### Find Cluster
Finds an existing Serverless tier or Dedicated tier.

- Type: search · Key: `clusterSearch`
- Requires: projectId, clusterType, clusterName
- SDK: `runAction({ app: "tidb-cloud", actionType: "search", action: "clusterSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search clusterSearch`

#### Find Database
Finds an existing Database.

- Type: search · Key: `databaseSearch`
- Requires: projectId, clusterId, database
- SDK: `runAction({ app: "tidb-cloud", actionType: "search", action: "databaseSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search databaseSearch`

#### Find Row
Finds a row in a table via a lookup column.

- Type: search · Key: `row`
- Requires: projectId, clusterId, database, table, lookup_column, lookup_value
- SDK: `runAction({ app: "tidb-cloud", actionType: "search", action: "row" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search row`

#### Find Row (Custom Query)
Finds a Row in a table via a custom query in your control.

- Type: search · Key: `row_query`
- Requires: projectId, clusterId, query
- SDK: `runAction({ app: "tidb-cloud", actionType: "search", action: "row_query" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search row_query`

#### Find Table
Finds an existing table.

- Type: search · Key: `tableSearch`
- Requires: projectId, clusterId, database, table
- SDK: `runAction({ app: "tidb-cloud", actionType: "search", action: "tableSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search tableSearch`

### Search or Write Actions (3)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Cluster
Finds an existing Serverless tier or Dedicated tier.

- Type: search_or_write · Key: `clusterSearch`
- Requires: projectId, clusterType, clusterName, region, tidbPassword
- SDK: `runAction({ app: "tidb-cloud", actionType: "search_or_write", action: "clusterSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search_or_write clusterSearch`

#### Find or Create Database
Finds an existing Database.

- Type: search_or_write · Key: `databaseSearch`
- Requires: projectId, clusterId, database
- SDK: `runAction({ app: "tidb-cloud", actionType: "search_or_write", action: "databaseSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search_or_write databaseSearch`

#### Find or Create Table
Finds an existing table.

- Type: search_or_write · Key: `tableSearch`
- Requires: projectId, clusterId, database, table, tableDDL
- SDK: `runAction({ app: "tidb-cloud", actionType: "search_or_write", action: "tableSearch" })`
- CLI: `npx zapier-sdk run-action tidb-cloud search_or_write tableSearch`

## Popular integrations
- [TiDB Cloud + Slack](zapier.com/apps/tidb-cloud/integrations/slack.md)
- [TiDB Cloud + Google Sheets](zapier.com/apps/tidb-cloud/integrations/google-sheets.md)
- [TiDB Cloud + YouTube](zapier.com/apps/tidb-cloud/integrations/youtube.md)
- [TiDB Cloud + ChatBot.com](zapier.com/apps/tidb-cloud/integrations/chatbotcom.md)
- [TiDB Cloud + FullEnrich](zapier.com/apps/tidb-cloud/integrations/fullenrich.md)
- [TiDB Cloud + Vercel](zapier.com/apps/tidb-cloud/integrations/vercel.md)

## Links
- Full app page: zapier.com/apps/tidb-cloud/integrations
- MCP: zapier.com/mcp/tidb-cloud
- SDK: npmjs.com/package/@zapier/zapier-sdk