# mcp-turso-cloud [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/spences10/mcp-turso-cloud  
**GitHub Stars:** 18  
**npm Downloads (last month):** 444  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-turso-cloud

## Description
MCP server for integrating Turso with LLMs

## Tools
Capabilities this server exposes over MCP:

- **list_databases** — List all databases in your Turso organization
- **create_database** — ✓ SAFE: Create a new database in your Turso organization. Database name must be unique.
- **delete_database** — ⚠️ DESTRUCTIVE: Permanently deletes a database and ALL its data. Cannot be undone. Always confirm with user before proceeding and verify correct database name.
- **generate_database_token** — Generate a new token for a specific database
- **list_tables** — Lists all tables in a database
- **execute_read_only_query** — ✓ SAFE: Execute read-only SQL queries (SELECT, PRAGMA, EXPLAIN). Automatically rejects write operations.
- **execute_query** — ⚠️ DESTRUCTIVE: Execute SQL that can modify/delete data (INSERT, UPDATE, DELETE, DROP, ALTER). Always confirm with user before destructive operations.
- **describe_table** — Gets schema information for a table
- **vector_search** — Performs vector similarity search

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-turso-cloud": {
    "command": "npx",
    "args": ["-y","mcp-turso-cloud"],
    "env": {
      "TURSO_API_TOKEN": "",
      "TURSO_ORGANIZATION": ""
    }
  }
}
```

**Requires environment variables:** `TURSO_API_TOKEN`, `TURSO_ORGANIZATION` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-turso-cloud does

The mcp-turso-cloud MCP server exposes Turso organization and database operations to an MCP client. At the organization level, it can enumerate databases, create a database with optional group and region settings, delete a database, and generate a token for a selected database. At the database level, it can list tables, inspect table schemas, execute SQL, and run vector similarity searches through SQLite vector extensions.

Database selection can be supplied to individual operations or taken from a configured default. Database and table identifiers are validated and escaped before generated SQL is sent to Turso. The server also supports pagination for database, table, and read-query results.

## How it works

The mcp-turso-cloud MCP server uses two credentials with different scopes. A Turso Platform API token authenticates organization operations. The server uses that credential to create database-specific tokens, then caches and refreshes those tokens independently for read-only and full-access use.

Read requests should use `execute_read_only_query`. This path accepts SELECT statements, read-only WITH or VALUES queries, read-oriented EXPLAIN statements, and allowlisted metadata PRAGMAs. Write operations belong in `execute_query`, including INSERT, UPDATE, DELETE, schema changes, mutating PRAGMAs, and write-prefixed WITH statements.

Before execution, local checks reject multiple statements, file or extension functions, and disallowed read-path operations. These checks are routing safeguards rather than a complete SQL parser or a replacement for Turso authorization. Destructive SQL should be reviewed before approval.

Read results can be limited and offset for paging. Returned JSON is capped at 512 KiB; oversized results may be truncated. Big integers are returned as decimal strings, while binary values use an object containing base64 data. Query parameters support named values or contiguous positional keys and accept strings, finite numbers, booleans, and null.

## Setup and configuration

Run the server through an MCP client using `npx -y mcp-turso-cloud`, or invoke its built distribution with Node.js. The required environment variables are `TURSO_API_TOKEN` and `TURSO_ORGANIZATION`. `TURSO_DEFAULT_DATABASE` optionally selects the database used when a tool call omits one.

`TOKEN_EXPIRATION` controls the lifetime of generated database tokens and defaults to `7d`. `TOKEN_PERMISSION` sets the default generated-token permission and defaults to `full-access`; individual token-generation calls can request `full-access` or `read-only`.

Cline and Claude Desktop configurations can start the package directly. A WSL-based Claude Desktop setup can instead launch `wsl.exe`, pass the environment values, and run the built `dist/index.js` file.

## Tools and capabilities

Organization tools include:

- `list_databases`, with limit and offset pagination
- `create_database`, with optional group and deployment regions
- `delete_database`
- `generate_database_token`, with an optional permission level

Database tools include:

- `list_tables`, with pagination
- `execute_read_only_query`, with parameter binding, row limits, and offsets
- `execute_query` for potentially destructive statements
- `describe_table` for schema information
- Vector search using SQLite vector extensions

SQL statements are limited to 10,000 characters. Paging is more reliable with a stable `ORDER BY`, and queries should select smaller or fewer columns when result-size truncation is possible.

_Full upstream README: https://allmcps.com/mcp/mcp-turso-cloud/readme_

