mcp-turso
@spences10
About mcp-turso
🗂️ 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
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-turso": {
"command": "node",
"args": [
"/path/to/mcp-turso/dist/index.js"
],
"env": {
"TURSO_API_TOKEN": "your-turso-api-token",
"TURSO_ORGANIZATION": "your-organization-name",
"TURSO_DEFAULT_DATABASE": "optional-default-database"
},
"disabled": false,
"autoApprove": []
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp-turso?
mcp-turso is a Model Context Protocol (MCP) server that integrates Turso databases with LLMs, using a two-level authentication system to manage organization-level and database-level operations directly from LLMs.
How to use mcp-turso?
Configure the server in your MCP client (e.g., Cline or Claude Desktop) by setting the required environment variables TURSO_API_TOKEN and TURSO_ORGANIZATION, and optionally TURSO_DEFAULT_DATABASE. Run with npx -y mcp-turso-cloud. Invoke tools like list_databases, create_database, execute_read_only_query, or vector_search via the LLM.
Key features of mcp-turso
- Two-level authentication (organization and database tokens)
- Organization operations: list, create, delete databases, generate tokens
- Database operations: list tables, read-only and destructive SQL queries
- Vector similarity search using SQLite vector extensions
- Schema description via
describe_tabletool - Security separation between read-only and destructive queries
Use cases of mcp-turso
- Let an LLM list all databases in a Turso organization and manage them
- Query a specific database with read-only SQL (SELECT, PRAGMA) through an LLM
- Automate database schema exploration and table description in conversational workflows
FAQ from mcp-turso
What distinguishes read-only from destructive queries?
The server provides separate tools: execute_read_only_query for SELECT/PRAGMA (safe, can be auto-approved) and execute_query for INSERT/UPDATE/DELETE/CREATE (requires explicit approval).
What environment variables are required?
TURSO_API_TOKEN (Turso Platform API token) and TURSO_ORGANIZATION (organization name) are required. TURSO_DEFAULT_DATABASE, TOKEN_EXPIRATION (default '7d'), and TOKEN_PERMISSION (default 'full-access') are optional.
How are database tokens managed?
Database tokens are generated automatically using the organization token, cached for performance, and rotated as needed. Their expiration and permissions can be configured via environment variables.
What transports or authentication does the server use?
The server uses standard MCP tool-based transport (stdio via npx), authenticating via the Turso Platform API token for organization-level actions and database-specific tokens for database-level operations.
Are there any known limits or dependencies?
The server depends on the @libsql/client and Turso’s API. It runs via Node.js and requires network access to Turso. No other runtime dependencies are mentioned.
Frequently asked questions
What distinguishes read-only from destructive queries?
The server provides separate tools: `execute_read_only_query` for SELECT/PRAGMA (safe, can be auto-approved) and `execute_query` for INSERT/UPDATE/DELETE/CREATE (requires explicit approval).
What environment variables are required?
`TURSO_API_TOKEN` (Turso Platform API token) and `TURSO_ORGANIZATION` (organization name) are required. `TURSO_DEFAULT_DATABASE`, `TOKEN_EXPIRATION` (default '7d'), and `TOKEN_PERMISSION` (default 'full-access') are optional.
How are database tokens managed?
Database tokens are generated automatically using the organization token, cached for performance, and rotated as needed. Their expiration and permissions can be configured via environment variables.
What transports or authentication does the server use?
The server uses standard MCP tool-based transport (stdio via `npx`), authenticating via the Turso Platform API token for organization-level actions and database-specific tokens for database-level operations.
Are there any known limits or dependencies?
The server depends on the @libsql/client and Turso’s API. It runs via Node.js and requires network access to Turso. No other runtime dependencies are mentioned.
Basic information
More Databases MCP servers
Dbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.

Redis
modelcontextprotocolModel Context Protocol Servers
mcp_mysql_server
xwb602625136Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展

PostgreSQL
modelcontextprotocolModel Context Protocol Servers
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
Comments