Execute SQL queries, manage tables, and interact with your Turso (LibSQL) edge database — AI-native SQLite at the edge.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"turso": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-turso",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify turso database connectivity. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
Execute SQL queries, manage tables, and interact with your Turso edge database from your AI agents.
Turso is the edge-native SQLite-compatible distributed database by ChiselStrike — designed for low-latency reads at the edge with embedded replicas and branching. This MCP server gives your AI agents direct read/write access to your Turso database: executing SQL, querying and mutating rows, describing schemas, and running batch transactions — all through natural language.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-turso
| Tool | Description |
|---|---|
execute | Execute a single SQL statement with optional parameterized args |
batch | Execute multiple SQL statements in a batch/transaction |
list_tables | List all user tables in the database |
describe_table | Get column info (name, type, nullable, primary key) for a table |
query | Shorthand SELECT with table, columns, where, order_by, limit |
insert | Insert one or more rows into a table |
update | Update rows matching a WHERE condition |
delete_rows | Delete rows matching a WHERE condition |
count | Count rows in a table with optional WHERE filter |
| Variable | Required | Description | How to Get |
|---|---|---|---|
TURSO_DATABASE_URL | Yes | Your Turso database HTTP URL | turso.tech/app → Select database → copy HTTP URL (e.g. https://mydb-myorg.turso.io) |
TURSO_AUTH_TOKEN | Yes | Turso database auth token | Run turso db tokens create <db-name> in the Turso CLI, or generate in the dashboard under Database → Settings |
TURSO_DATABASE_URL and TURSO_AUTH_TOKEN under Project → SecretsOnce added, every AI agent in your workspace can call Turso tools automatically — no per-user setup needed.
"List all tables in my Turso database and describe their columns"
"Select all rows from the users table where role is admin, ordered by created_at descending"
"Insert a new row into the events table with name: signup and user_id: 42"
"Count how many orders have status pending"
"Run a batch: create a products table, then insert 3 sample rows"
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-turso \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-TURSO-DATABASE-URL: https://mydb-myorg.turso.io' \
-H 'X-Mcp-Secret-TURSO-AUTH-TOKEN: your-auth-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_tables","arguments":{}}}'
MIT
Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-turso
Sub-50ms globally · Zero cold start
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
by @aerostack
Turn your Airtable bases into an AI-queryable database — create, update, search, and analyze records with natural language.
by @aerostack
Pages, databases, blocks, search via Notion's official MCP
by @aerostack
Query collections, insert documents, and run aggregation pipelines on your MongoDB Atlas database — AI-native document database access.
by @aerostack
Get, set, and manage keys, hashes, and lists in your Upstash Redis database — AI-native key-value store access.
by @aerostack
Query Postgres tables, manage storage buckets, and interact with your Supabase backend — AI-native database access.
by @aerostack
Query, put, update, delete, and scan items in Amazon DynamoDB tables — AI-native NoSQL database access for any agent.
Yes. The batch tool executes an array of LibSQL statements in a single Turso transaction. If any statement fails the whole batch is rolled back, preserving data consistency at the edge.
Call list_tables to enumerate tables, then describe_table on each to get column names and types. Claude can build correct INSERT or UPDATE statements without guessing the Turso schema.
execute is intended for write statements (INSERT, UPDATE, DELETE) and returns affected row count. query is optimised for SELECT statements and returns rows as structured JSON from Turso.
Yes. The count tool accepts a table name and optional WHERE clause and returns only the integer count. This avoids transferring large result sets from Turso just to measure data volume.