Feedback

Turso SQLite MCP Server

@spences10 Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
spences10
Submitted by
Community
Quality
40
Stars
16

About Turso SQLite MCP Server

Turso SQLite connects AI assistants to Turso SQLite databases, offering organization management, queries, and advanced vector search features.

Turso SQLite is a MCP server in the Databases category listed in the AddMCP.net directory, published by spences10. It exposes 9 tools, including list_databases, create_database, delete_database, generate_database_token and more. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 16 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, community, databases, mcp, model-context-protocol.

Setup

{
    "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"
            }
        }
    }
}

Turso SQLite MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "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"
            }
        }
    }
}

Turso SQLite MCP Server tools

  • list_databases — List all databases in your Turso organization
    (no parameters)
  • create_database — ✓ SAFE: Create a new database in your Turso organization. Database name must be unique.
    name:string*, group:string, regions:array
  • 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.
    name:string*
  • generate_database_token — Generate a new token for a specific database
    database:string*, permission:string
  • list_tables — Lists all tables in a database
    database:string
  • execute_read_only_query — ✓ SAFE: Execute read-only SQL queries (SELECT, PRAGMA, EXPLAIN). Automatically rejects write operations.
    query:string*, params:object, database:string
  • execute_query — ⚠️ DESTRUCTIVE: Execute SQL that can modify/delete data (INSERT, UPDATE, DELETE, DROP, ALTER). Always confirm with user before destructive operations.
    query:string*, params:object, database:string
  • describe_table — Gets schema information for a table
    table:string*, database:string
  • vector_search — Performs vector similarity search
    table:string*, vector_column:string*, query_vector:array*, limit:number, database:string

Overview

What is Turso SQLite?

mcp-turso-cloud is an MCP server that integrates Turso databases with LLMs. It provides a two-level authentication system for organization-level and database-level operations, enabling LLMs to manage and query Turso databases directly.

How to use Turso SQLite?

Configure it in your MCP client using npx with environment variables: TURSO_API_TOKEN, TURSO_ORGANIZATION, and optionally TURSO_DEFAULT_DATABASE, TOKEN_EXPIRATION, and TOKEN_PERMISSION. Then use the provided MCP tools to interact with your Turso databases.

Key features of Turso SQLite

  • List, create, and delete databases in your Turso organization
  • Generate authentication tokens for specific databases
  • Execute read-only SQL queries (SELECT, PRAGMA) safely
  • Execute destructive SQL queries (INSERT, UPDATE, DELETE, etc.)
  • List tables and describe table schemas
  • Perform vector similarity search using SQLite vector extensions

Use cases of Turso SQLite

  • An LLM lists all databases in a Turso organization to get an overview.
  • An LLM creates a new database and then generates a read-only token for it.
  • An LLM runs a SELECT query to retrieve customer data from a database.
  • An LLM inserts new records into a table after manual approval.
  • An LLM performs a vector search on embeddings stored in a Turso database.

Frequently asked questions

1 How does the two-level authentication work?

The server uses a Turso Platform API token for organization-level operations (managing databases) and database-specific tokens for database-level operations. Database tokens are generated automatically from the organization token and cached.

2 What environment variables are required?

You must set TURSO_API_TOKEN (your Turso Platform API token) and TURSO_ORGANIZATION (your Turso organization name). Optional variables include TURSO_DEFAULT_DATABASE, TOKEN_EXPIRATION (default '7d'), and TOKEN_PERMISSION (default 'full-access').

3 What security separation exists between query types?

Read-only queries (SELECT, PRAGMA) use the execute_read_only_query tool, while destructive queries (INSERT, UPDATE, DELETE, etc.) use execute_query. This allows different approval levels—read-only can be auto-approved, while destructive operations require explicit review.

4 What tools are provided for database operations?

Database tools include list_tables, execute_read_only_query, execute_query, describe_table, and vector_search. Organization tools include list_databases, create_database, delete_database, and generate_database_token.

5 What are the dependencies or runtime requirements?

The server runs via Node.js and is distributed as an npm package. It uses the Model Context Protocol, Turso, and libSQL. You can run it with npx mcp-turso-cloud after setting environment variables.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬