Turso Server
FreeNot checkedEnables SQL queries, table listing, schema description, and data retrieval with pagination on Turso (libSQL) databases.
About
Enables SQL queries, table listing, schema description, and data retrieval with pagination on Turso (libSQL) databases.
README
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
Installation
npm install -g @gamzadongza/turso-mcp-server
Configuration
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 | bash
- Login and create database:
turso auth login
turso db create my-database
- Get your credentials:
# Get database URL
turso db show my-database --url
# Create auth token
turso db tokens create my-database
Usage 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-server - Set 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.js
License
MIT
Links
Installing Turso Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/gamzadongza/turso-mcp-serverFAQ
Is Turso Server MCP free?
Yes, Turso Server MCP is free — one-click install via Unyly at no cost.
Does Turso Server need an API key?
No, Turso Server runs without API keys or environment variables.
Is Turso Server hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Turso Server in Claude Desktop, Claude Code or Cursor?
Open Turso Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Postgres
Query your database in natural language
by Anthropicwenb1n-dev/SmartDB_MCP
Connect to multiple databases at once (MySQL, PostgreSQL, SQL Server, MariaDB, Dameng, Oracle) for operations, health analysis and SQL optimization.
by wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
by madhurprashPostgreSQL
Read-only database access with schema inspection.
by modelcontextprotocolRedis
Interact with Redis key-value stores.
by modelcontextprotocolSQLite
Database interaction and business intelligence capabilities.
by modelcontextprotocolmxcp
Open-source framework for building enterprise-grade MCP servers using just YAML, SQL, and Python, with built-in auth, monitoring, ETL and policy enforcement.
by raw-labsjulien040/anyquery
Query apps with SQL from a single local-first binary; also connects to PostgreSQL, MySQL and SQLite-compatible databases.
by julien040drakonkat/wizzy-mcp-tmdb
Search and retrieve movie, TV show and person information from The Movie Database (TMDB) API.
by drakonkatlongevity-genie/opengenes-mcp
Query the OpenGenes database for aging and longevity research.
by longevity-genieCompare Turso Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All data MCPs
