Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
MCP server for integrating Turso with LLMs
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
TURSO_API_TOKEN, TURSO_ORGANIZATION, TURSO_DEFAULT_DATABASE, TOKEN_EXPIRATION, TOKEN_PERMISSIONValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"turso-cloud": {
"command": "npx",
"args": [
"-y",
"mcp-turso-cloud"
],
"env": {
"TURSO_API_TOKEN": "your-value",
"TURSO_ORGANIZATION": "your-value",
"TURSO_DEFAULT_DATABASE": "your-value",
"TOKEN_EXPIRATION": "your-value",
"TOKEN_PERMISSION": "your-value"
}
}
}
}Run this in your terminal
claude mcp add turso-cloud --env TURSO_API_TOKEN=your-value --env TURSO_ORGANIZATION=your-value --env TURSO_DEFAULT_DATABASE=your-value --env TOKEN_EXPIRATION=your-value --env TOKEN_PERMISSION=your-value -- npx -y mcp-turso-cloudFill in the empty values before running it.
Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"turso-cloud": {
"command": "npx",
"args": [
"-y",
"mcp-turso-cloud"
],
"env": {
"TURSO_API_TOKEN": "your-value",
"TURSO_ORGANIZATION": "your-value",
"TURSO_DEFAULT_DATABASE": "your-value",
"TOKEN_EXPIRATION": "your-value",
"TOKEN_PERMISSION": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"turso-cloud": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-turso-cloud"
],
"env": {
"TURSO_API_TOKEN": "your-value",
"TURSO_ORGANIZATION": "your-value",
"TURSO_DEFAULT_DATABASE": "your-value",
"TOKEN_EXPIRATION": "your-value",
"TOKEN_PERMISSION": "your-value"
}
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
TURSO_DEFAULT_DATABASE envTOKEN_EXPIRATION envTOKEN_PERMISSION envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026
The registry name was verified with the GitHub account spences10, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: TURSO_API_TOKEN, TURSO_ORGANIZATION
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.0.9) reached the registry 14 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
A Model Context Protocol (MCP) server that provides integration with Turso databases for LLMs. This server implements a two-level authentication system to handle both organization-level and database-level operations, making it easy to manage and query Turso databases directly from LLMs.
This server implements a security-focused separation between read-only and destructive database operations:
execute_read_only_query for SELECT, read-only WITH/VALUES, EXPLAIN of reads, and allowlisted metadata PRAGMAs.execute_query for INSERT, UPDATE, DELETE, CREATE, DROP, mutating PRAGMAs, and other operations that modify data.Read tools always request read-only Turso credentials, including when full-access clients are already cached. The token endpoint receives authorization=read-only as a query parameter. Read failures never fall back to full access. Tokens and clients are cached separately by permission and refreshed when tokens expire.
Local SQL validation rejects multiple statements, mutating PRAGMAs on the read path, and file/extension functions. It is a conservative routing check, not a complete SQL parser or a substitute for Turso's server-side authorization. Unknown or quoted PRAGMA names require the write tool. Compound statements containing internal semicolons (such as trigger definitions) are not supported. Identifiers in generated SQL are quoted; data values use bindings.
This separation allows for different permission levels and approval requirements:
ALWAYS CAREFULLY READ AND REVIEW SQL QUERIES BEFORE APPROVING THEM! This is especially critical for destructive operations that can modify or delete data. Take time to understand what each query does before allowing it to execute.
The server implements a sophisticated authentication system:
This server requires configuration through your MCP client. Here are examples for different environments:
Add this to your Cline/Claude Desktop MCP settings:
{
"mcpServers": { "mcp-turso-cloud": { "command": "npx", "args": ["-y", "mcp-turso-cloud"], "env": { "TURSO_API_TOKEN": "your-turso-api-token", "TURSO_ORGANIZATION": "your-organization-name", "TURSO_DEFAULT_DATABASE": "optional-default-database" } } } }
For WSL environments, add this to your Claude Desktop configuration:
{
"mcpServers": { "mcp-turso-cloud": { "command": "wsl.exe", "args": [ "bash", "-c", "TURSO_API_TOKEN=your-token TURSO_ORGANIZATION=your-org node /path/to/mcp-turso-cloud/dist/index.js" ] } } }
The server requires the following environment variables:
TURSO_API_TOKEN: Your Turso Platform API token (required)TURSO_ORGANIZATION: Your Turso organization name (required)TURSO_DEFAULT_DATABASE: Default database to use when none is specified (optional)TOKEN_EXPIRATION: Expiration time for generated database tokens (optional, default: '7d')TOKEN_PERMISSION: Permission level for generated tokens (optional, default: 'full-access')The server implements MCP Tools organized by category:
Lists all databases in your Turso organization.
Parameters:
limit (integer, optional): Maximum results, default 1000, maximum 10000offset (integer, optional): Results to skip, default 0, maximum 1000000Responses include pagination with returned_count, has_more, and next_offset.
Example response:
{
"databases": [ { "name": "customer_db", "id": "abc123", "region": "us-east", "created_at": "2023-01-15T12:00:00Z" }, { "name": "product_db", "id": "def456", "region": "eu-west", "created_at": "2023-02-20T15:30:00Z" } ] }
Creates a new database in your organization.
Parameters:
name (string, required): Name for the new databasegroup (string, optional): Group to assign the database toregions (string[], optional): Regions to deploy the database toExample:
{
"name": "analytics_db", "group": "production", "regions": ["us-east", "eu-west"] }
Deletes a database from your organization.
Parameters:
name (string, required): Name of the database to deleteExample:
{
"name": "test_db" }
Generates a new token for a specific database. Expiration is configured through TOKEN_EXPIRATION; the returned JWT is a secret.
Parameters:
database (string, required): Database namepermission (string, optional): Permission level ('full-access' or 'read-only')Example:
{
"database": "customer_db", "permission": "read-only" }
Database names are limited to 1–64 letters, digits, underscores, or hyphens. Table/column identifiers accept 1–64 characters, excluding null bytes; punctuation and quotes are safely escaped. A supplied database becomes the current context only after its operation succeeds.
Lists all tables in a database, with pagination metadata.
Parameters:
database (string, optional): Database name (uses context if not provided)limit (integer, optional): Maximum results, default 1000, maximum 10000offset (integer, optional): Results to skip, default 0, maximum 1000000Example:
{
"database": "customer_db" }
Executes one SELECT, read-only WITH/VALUES query, EXPLAIN of a read, or allowlisted metadata PRAGMA against a database.
Parameters:
query (string, required): One SQL statement, maximum 10000 charactersparams (object, optional): Named parameters or contiguous positional keys starting at "1"; values must be strings, finite numbers, booleans, or nulldatabase (string, optional): Database name (uses context if not provided)limit (integer, optional): Maximum rows, default 1000, maximum 10000offset (integer, optional): Rows to skip, default 0, maximum 1000000SELECT-style queries are wrapped with an outer limit/offset, preserving any limit already present in your SQL. Metadata PRAGMA and EXPLAIN results are sliced after fetching. Use a stable ORDER BY when paging. Responses retain result.rows and add pagination metadata.
Query result rows and column names have a 512 KiB JSON budget. If a row cannot fit, select fewer/smaller columns (for example, substr). result.truncated and truncation_reason explain omitted results; next_offset is null when no row fits. BigInts are decimal strings and blobs are { "type": "blob", "base64": "..." }.
Example:
{
"query": "SELECT * FROM users WHERE age > ?", "params": { "1": 21 }, "database": "customer_db" }
Executes a potentially destructive SQL query (INSERT, UPDATE, DELETE, CREATE, etc.) against a database.
Parameters:
query (string, required): One write statement, maximum 10000 characters; includes mutating PRAGMAs and WITH-prefixed writesparams (object, optional): Same parameter types as the read tooldatabase (string, optional): Database name (uses context if not provided)Example:
{
"query": "INSERT INTO users (name, age) VALUES (?, ?)", "params": { "1": "Alice", "2": 30 }, "database": "customer_db" }
Write result rows (such as RETURNING) are capped at 1000 rows and the same byte budget. rowsAffected remains intact. Truncation does not undo the write: do not rerun a write to fetch omitted rows.
Gets schema information for a table.
Parameters:
table (string, required): Table namedatabase (string, optional): Database name (uses context if not provided)Example:
{
"table": "users", "database": "customer_db" }
Performs vector similarity search using SQLite vector extensions.
Parameters:
table (string, required): Table namevector_column (string, required): Column containing vectorsquery_vector (number[], required): 1–4096 finite numberslimit (integer, optional): Maximum results, default 10, maximum 1000database (string, optional): Database name (uses context if not provided)Example:
{
"table": "embeddings", "vector_column": "embedding", "query_vector": [0.1, 0.2, 0.3, 0.4], "limit": 5, "database": "vector_db" }
Use Node.js 24.15.0 or newer and pnpm 12.5.1 (pinned in package.json). .node-version selects the development runtime.
pnpm install
pnpm check pnpm test
Vite+ provides the build, formatting, linting, type checking, and test runner through vite.config.ts:
pnpm build — bundle the executable and declarations into dist/pnpm start — run the built server with your Turso configurationpnpm dev — rebuild on source changespnpm inspect — open the MCP inspector against the built serverpnpm check — check formatting, lint, and typespnpm check:fix — apply formatting and safe lint fixespnpm format / pnpm format:check — format or check formattingpnpm test — build and run offline SQL, permission, token, MCP handler, and CLI tests; no Turso credentials or live database access needed. SQL execution tests use an isolated in-memory libSQL database.Dependency versions live in the pnpm-workspace.yaml catalog. New releases must be at least two days old before installation.
Install the Oxc extension in Zed or the Vite Plus Extension Pack in VS Code. Checked-in .zed/settings.json and .vscode/settings.json use Oxfmt with the shared vite.config.ts formatting settings. Prettier configuration is no longer used.
pnpm changeset
pnpm version pnpm check pnpm test pnpm release
pnpm release builds and publishes through Changesets. pnpm pack can verify the package locally without publishing.
If you encounter authentication errors:
If you have trouble connecting to databases:
Only the beginning is shown; read the rest in the repo