Turso MCP Server — Hosted Database Integration
MCP Server language Hosted language PublicExecute 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.
description Overview
mcp-turso — Turso (LibSQL) MCP Server
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
What You Can Do
- Execute arbitrary SQL statements against your Turso database for full control over reads and writes
- Run batch transactions to perform multiple operations atomically
- Inspect your schema by listing tables and describing column definitions
- Query tables with structured parameters (columns, filters, ordering, limits) without writing raw SQL
- Insert, update, and delete rows using simple structured inputs with parameterized queries
Available Tools
| 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 |
Configuration
| 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 |
Quick Start
Add to Aerostack Workspace
- Go to aerostack.dev → Your Project → MCPs
- Search for "Turso" and click Add to Workspace
- Add
TURSO_DATABASE_URLandTURSO_AUTH_TOKENunder Project → Secrets
Once added, every AI agent in your workspace can call Turso tools automatically — no per-user setup needed.
Example Prompts
"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"
Direct API Call
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":{}}}'
License
MIT
terminal Tools (10)
Available tools on this MCP server. Each tool can be called directly from any AI agent.
_ping #1 Verify Turso database connectivity. Used internally by Aerostack to validate credentials.
execute #2 Execute a single SQL statement (SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, etc.)
batch #3 Execute multiple SQL statements in a batch/transaction
list_tables #4 List all tables in the Turso database
describe_table #5 Get column info (name, type, nullable, primary key, default) for a table
query #6 Shorthand SELECT query with structured parameters
insert #7 Insert one or more rows into a table
update #8 Update rows in a table matching a WHERE condition
delete_rows #9 Delete rows from a table matching a WHERE condition
count #10 Count rows in a table with an optional WHERE condition
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-turso
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in Database
Browse Database MCPs →Airtable
by @aerostack
Turn your Airtable bases into an AI-queryable database — create, update, search, and analyze records with natural language.
Notion Workspace
by @aerostack
Pages, databases, blocks, search via Notion's official MCP
Mongodb
by @aerostack
Query collections, insert documents, and run aggregation pipelines on your MongoDB Atlas database — AI-native document database access.
Redis
by @aerostack
Get, set, and manage keys, hashes, and lists in your Upstash Redis database — AI-native key-value store access.
Supabase
by @aerostack
Query Postgres tables, manage storage buckets, and interact with your Supabase backend — AI-native database access.
Dynamodb
by @aerostack
Query, put, update, delete, and scan items in Amazon DynamoDB tables — AI-native NoSQL database access for any agent.
Frequently asked questions
What is the Turso MCP server and what can it do? +
The Turso MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `execute`, `batch`, `list_tables`, `describe_table`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.
Is the Turso MCP server hosted, or do I have to run it myself? +
It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.
Which AI agents and editors can use the Turso MCP server? +
Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Turso MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.
How do I install the Turso MCP server in Claude Desktop? +
Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-turso": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-turso"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.
How do I use the Turso MCP server in Cursor? +
In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-turso", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-turso"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.
Does Turso MCP require authentication? +
Yes. Turso requires authentication. Check the MCP's documentation for the required credentials.