Turso MCP Server
Provides tools for executing SQL queries, listing tables, describing schemas, and retrieving data from Turso (libSQL) databases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Turso MCP Servershow me the first 10 rows from the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Turso MCP Server
A Model Context Protocol (MCP) server for Turso (libSQL) database access.
Features
Execute SQL queries (SELECT, INSERT, UPDATE, DELETE)
List all tables in your database
Describe table schemas
Retrieve table data with pagination
Full parameterized query support
Related MCP server: SQLite Cloud MCP Server
Installation
npm install -g @gamzadongza/turso-mcp-serverConfiguration
Environment Variables
You need to set these environment variables:
TURSO_DATABASE_URL: Your Turso database URL (e.g.,libsql://your-db.turso.io)TURSO_AUTH_TOKEN: Your Turso authentication token
Getting Turso Credentials
Install Turso CLI:
# Windows (PowerShell)
irm https://get.tur.so/install.ps1 | iex
# macOS/Linux
curl -sSfL https://get.tur.so/install.sh | bashLogin and create database:
turso auth login
turso db create my-databaseGet your credentials:
# Get database URL
turso db show my-database --url
# Create auth token
turso db tokens create my-databaseUsage with Claude Desktop
Add this to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"turso": {
"command": "turso-mcp-server",
"env": {
"TURSO_DATABASE_URL": "libsql://your-db.turso.io",
"TURSO_AUTH_TOKEN": "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9..."
}
}
}
}Usage with Claude Mobile (Android/iOS)
Go to Claude app settings
Add MCP server from Smithery:
@gamzadongza/turso-mcp-serverSet environment variables:
TURSO_DATABASE_URL: Your database URLTURSO_AUTH_TOKEN: Your auth token
Available Tools
execute_query
Execute any SQL query on your Turso database.
Parameters:
query(string, required): SQL query to executeparams(array, optional): Parameters for parameterized queries
Example:
SELECT * FROM users WHERE age > ?list_tables
Get a list of all tables in your database.
Example: "Show me all tables in my database"
describe_table
Get detailed schema information about a specific table.
Parameters:
table_name(string, required): Name of the table
Example: "Describe the structure of the users table"
get_table_data
Retrieve data from a table with pagination support.
Parameters:
table_name(string, required): Name of the tablelimit(number, optional): Max rows to return (default: 100, max: 1000)offset(number, optional): Rows to skip (default: 0)
Example: "Get the first 50 rows from the posts table"
Development
# Clone and install dependencies
git clone https://github.com/gamzadongza/turso-mcp-server
cd turso-mcp-server
npm install
# Build
npm run build
# Run locally
export TURSO_DATABASE_URL="libsql://your-db.turso.io"
export TURSO_AUTH_TOKEN="your-token"
node dist/index.jsLicense
MIT
Links
This server cannot be deployed
Maintenance
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Related MCP Servers
- AlicenseAqualityCmaintenanceA Model Context Protocol server that provides Claude access to Turso-hosted LibSQL databases, enabling database table listing, schema retrieval, and SELECT query execution.446 npm6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI models to interact with SQLite Cloud databases, supporting SQL queries, schema management, and performance analysis.14 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Supabase databases, including listing tables, querying, inserting, updating, deleting records, and executing RPC functions.53 npmMIT
- AlicenseBqualityDmaintenanceIntegrates Turso Cloud databases with Model Context Protocol, enabling CRUD operations and SQL queries via GitHub Copilot in VSCode.1446 npmMIT