NEWZero PolarDB-X is now in public beta. Instant database, no sign-up required.
100% MySQL Compatible · Unified Single-Node & Distributed

PolarDB-X Zero

100% MySQL Compatible, Unified Single-Node & Distributed Architecture

Get a disposable PolarDB-X distributed database in one API call. No sign-up, no config, start instantly.

Read https://zero.polardbx.com/SKILL.md and follow the instructions to create a database using PolarDB-X Zero.

Why PolarDB-X Zero?

Built on PolarDB-X's unified single-node and distributed architecture, 100% MySQL compatible, providing an instant database experience for AI-native workflows.

Unified Single & Distributed

One database engine, seamlessly switch between single-node and distributed clusters. Full distributed transactions, horizontal elastic scaling, no architectural compromise.

🗃️

100% MySQL Compatible

Full MySQL protocol and syntax support. JOINs, transactions, stored procedures, triggers — all compatible. Any MySQL client or driver works out of the box.

Disposable Instances

On-demand database instances. Perfect for CI tests, demos, Agent sessions, or short-term experiments. Automatically cleaned up on expiry.

🔒

Zero Configuration

No sign-up, no credit card, no config. One API call gets you a full distributed database.

Use Cases

A 100% MySQL-compatible distributed database, ready to use instantly. Here are typical applications for PolarDB-X Zero.

🧠
Agent Memory

AI Agent Memory Database

Built-in vector indexing, natively compatible with Mem0 and other AI memory frameworks. Store Agent state, user preferences, and vector memories in a single MySQL database — relational queries and semantic search in one place.

🚀
Rapid Dev

App Development with Instant Database

Got an idea? Start building immediately without setting up a database. One call gets you a full MySQL database — focus on business logic, leave infrastructure to us.

🔗
AI IDE Integration

Seamless Use in Qoder, Cursor & OpenClaw

Through MCP protocol or SKILL instructions, AI coding assistants can automatically create and connect to databases. Get a real MySQL environment anytime during coding, without leaving your IDE.

📦
Ephemeral DB

Ephemeral Database Workflows

Quickly create isolated sandboxes for tutorials, demos, benchmark frameworks, and short-term testing. Full MySQL compatibility, auto-cleanup when done.

MCP Server

Give any AI agent persistent MySQL databases through the Model Context Protocol. Install the MCP server and connect from your favorite IDE.

1Install
bash
pip install polardbx-zero-mcp
2Configure Your IDE

Qoder / Cursor / Windsurf / Claude Desktop — add to MCP config:

json
{
  "mcpServers": {
    "polardbx": {
      "command": "polardbx-zero-mcp"
    }
  }
}
🔧
10 MCP Tools
Instance management, SQL, stateful connections
Zero Config
No API key required — just install and connect
🔒
MySQL Protocol
Real MySQL wire protocol with SSL

CLI Quick Start

Three steps, under a minute.

1Create Instance
bash
curl -s -X POST https://zero.polardbx.com/api/v1/instances \
  -H 'Content-Type: application/json' \
  -d '{"tag":"quickstart","ttlMinutes":43200}' | tee pxz.json | jq .
2Export Connection String
bash
export MYSQL_URL="$(jq -r '.instance.connectionString' pxz.json)"
3Connect & Use
bash
eval $(jq -r '.instance.connection | "mysql -h \(.host) -P \(.port) -u \(.username) -p\(.password)"' pxz.json)
# Or use $MYSQL_URL directly in your code

API Reference

One endpoint, no auth required, get a database instantly.

POST/api/v1/instances
Request
{
  "tag": "my-agent",      // Optional, caller tag
  "edition": "enterprise", // Optional, standard or enterprise, default standard
  "ttlMinutes": 43200,     // Optional, custom TTL (minutes), default 30 days, must be ≤ 43200 (30 days)
  "whitelistIp": "1.2.3.4"  // Optional, comma-separated IPv4/CIDR whitelist
}
200Response
Response
{
  "instance": {
    "id": "pxz_a1b2c3d4e5f6",
    "connection": {
      "host": "pxc-xxxxx.polardbx.rds.aliyuncs.com",
      "port": 3306,
      "username": "polardbx_root",
      "password": "Px$9aB3cD7eF1gH",
      "database": ""
    },
    "connectionString": "mysql://polardbx_root:...@pxc-xxxxx:3306",
    "createdAt": "2026-03-20T10:30:00.000Z",
    "expiresAt": "2026-03-27T10:30:00.000Z",
    "ttlDays": 0,
    "ttlMinutes": 43200,
    "status": "ready"
  }
}

Vector Search in Action

PolarDB-X has built-in HNSW vector indexing, supporting up to 16,383 dimensions, enabling semantic search directly in standard SQL.

Send the following instruction to Qoder, OpenClaw, or other AI Agents to complete all steps automatically:

text
Read https://playbook.polardbx.com/vector.md and follow the instructions
📏
16,383 Dims
Industry-leading max vector dimensions
HNSW + SIMD
AVX512 / NEON hardware acceleration
🔄
SQL Native
Mix vector search with relational queries
AI 记忆存储 · 兼容 mem0ai SDK

🧠 Mem0 Memory Storage

Built on PolarDB-X vector engine, providing out-of-the-box long-term memory storage for AI Agents.

Agent 使用

Read https://zero.polardbx.com/MEM0_SKILL.md and follow the instructions to get a Mem0 memory storage instance using PolarDB-X Zero.

Why Mem0 on PolarDB-X Zero?

Built on PolarDB-X vector engine, providing out-of-the-box long-term memory storage for AI Agents.

🧠

AI Memory Storage

A memory layer designed for AI Agents. Store user preferences, conversation history, and context to give your Agent persistent memory.

🐍

mem0ai SDK Compatible

Fully compatible with the mem0ai Python SDK. No code changes needed — pip install mem0ai and connect.

🔍

Semantic Search

Built-in vector indexing with semantic similarity search. Recall relevant memories using natural language queries.

Instant Setup

Get a Mem0 instance in one API call. No need to deploy Redis, Qdrant, or other dependencies — works out of the box.

Three Steps to Start

From getting an instance to storing your first memory, in under a minute.

1

Get Instance

Through Agent instructions or API call, instantly get a Mem0 storage instance with API Key and connection info.

2

Connect SDK

Use the mem0ai Python SDK, configure API Key and Host to connect — fully compatible with the official Mem0 platform.

3

Store & Search

Add memories and search related memories via SDK. Organize memories by user, agent, session, and more.

SDK Example

Use the mem0ai Python SDK to add long-term memory to your Agent in just a few lines of code.

python
from mem0 import MemoryClient

# Connect to your Mem0 instance on PolarDB-X Zero
client = MemoryClient(
    api_key="your-api-key",
    host="https://your-instance.zero.polardbx.com"
)

# Add a memory
client.add(
    "I prefer dark mode and Python for coding",
    user_id="alice"
)

# Search memories
results = client.search(
    "What are alice's preferences?",
    user_id="alice"
)

Compatibility & Specs

Enterprise-grade memory storage service built on PolarDB-X vector engine.

mem0ai SDK

Fully compatible with mem0ai Python SDK

24h Free Trial

Free to use, no sign-up required

Vector + Relational

Semantic search and structured queries in one

FAQ