TiDB Cloud Zero MCP
MCP server that auto-provisions TiDB Cloud Zero on first query, keeps reusable SQL tool state, and exposes pure HTTPS SQL operations for AI agents without local driver setup.
Zero sign-up, zero config.
Provision a disposable MySQL-compatible database for AI agents, MCP servers, and RAG prototypes with vector and full-text search in milliseconds.
Provision a temporary MySQL-compatible database via API, then connect and run one SQL query using curl, jq, and mysql.
curl -s -X POST https://zero.tidbapi.com/v1beta1/instances \
-H "Content-Type: application/json" \
-d '{"tag":"cli-quickstart"}' \
| tee tidb-zero.jsonexport TIDB_CONNECTION_STRING="$(jq -r '.instance.connectionString' tidb-zero.json)"
mysql "$TIDB_CONNECTION_STRING" -e "SELECT 1 AS health_check, 2 AS example_value;"
If you want to paste multiline SQL instead:
mysql "$TIDB_CONNECTION_STRING" <<'SQL' SELECT 1 AS health_check, 2 AS example_value; SQL
You should see
+--------------+---------------+ | health_check | example_value | +--------------+---------------+ | 1 | 2 | +--------------+---------------+
What to check if something fails
v1alpha1 is deprecated and will be removed on 2026-04-06. Please migrate to v1beta1.
{
"tag": "try-in-browser"
}{
"instance": {
"id": "...",
"connection": {
"host": "...",
"port": 4000,
"username": "...",
"password": "..."
},
"connectionString": "mysql://...",
"claimInfo": {
"claimUrl": "https://tidbcloud.com/tidbs/claim/..."
},
"expiresAt": "..."
}
}MCP server that auto-provisions TiDB Cloud Zero on first query, keeps reusable SQL tool state, and exposes pure HTTPS SQL operations for AI agents without local driver setup.
TiDB Cloud Zero gives AI agents and developers instant access to a real TiDB Cloud database with no signup, no setup, and no infrastructure work.
It is built for fast prototyping, demos, automation, AI agent memory, and "try now" experiences that can later be upgraded into a full TiDB Cloud account.
TiDB Cloud Zero is for AI agents, developers, and teams that want a real SQL database in seconds.
It works especially well for prototypes, tutorials, demos, testing, product evaluation, MCP tooling, and serverless MySQL experiments.
No. You can start instantly without creating an account or adding payment details. If you want to keep the database, raise limits, or manage it long term, you can claim it later in TiDB Cloud.
TiDB Cloud Zero includes TiDB Cloud Starter free quota plus a hard $1 spending limit per temporary database.
See TiDB Cloud Starter usage quotaYes. TiDB Cloud Zero works well for agent memory prototypes because it can store structured SQL state, vector data, and searchable text in one MySQL-compatible database. That is useful when your agent needs more than embeddings alone, such as user profiles, tool outputs, or exact filters.
Yes. TiDB Cloud Zero is not itself an MCP server, but it works well as the database behind MCP tools and custom MCP server implementations. You can provision a disposable database over HTTPS, then connect with standard MySQL-compatible drivers.
Yes. TiDB Cloud Zero is a practical fit for early RAG, retrieval, and semantic search experiments because it combines MySQL compatibility with vector search and full-text search. It lets you test search-heavy AI workflows before committing to a permanent architecture.
Yes. At a high level, TiDB Cloud Zero is an API-first way to create a disposable MySQL-compatible database with no signup. That makes it useful for demos, tutorials, isolated test runs, and other short-lived SQL environments.
Use POST https://zero.tidbapi.com/v1beta1/instances.
v1alpha1 is deprecated and will be removed on 2026-04-06. Please migrate to v1beta1.
Each TiDB Cloud Zero database lasts up to 30 days unless you claim it first.
When it expires, the credentials are revoked, the claim link stops working, and the database is securely removed.
Claim lets you turn a temporary TiDB Cloud Zero database into a persistent TiDB Cloud database.
Open the claim link, sign up or log in, and the database moves under your account so you can keep using it beyond the temporary session.