by nbbaier
Connect Turso to cloud-based SQLite via LibSQL for SQL data analytics and application development, simplifying content m
Connects Claude to Turso-hosted LibSQL databases for querying cloud-based SQLite databases. Execute SQL queries and explore database schemas directly from your AI assistant.
Turso is a community-built MCP server published by nbbaier that provides AI assistants with tools and capabilities via the Model Context Protocol. Connect Turso to cloud-based SQLite via LibSQL for SQL data analytics and application development, simplifying content m It is categorized under databases.
You can install Turso in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Turso is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Enable Claude to query your database directly using natural language
Example
Ask 'Show me top 10 customers by revenue this month' and get SQL results instantly
Eliminate manual SQL writing for ad-hoc queries, get insights 10x faster
Generate complex reports and analytics without leaving conversation
Example
Analyze sales trends, cohort retention, user behavior patterns conversationally
Democratize data access—non-technical team members can query databases
Understand database structure, relationships, and data models
Example
'Explain the user_orders table schema and its relationships'
Onboard engineers faster, explore unfamiliar databases efficiently
Share your MCP server with the developer community
Turso reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
According to our notes, Turso benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
We evaluated Turso against two servers with overlapping tools; this profile had the clearer scope statement.
Turso is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
I recommend Turso for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
Turso is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Turso reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
I recommend Turso for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
We wired Turso into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
We evaluated Turso against two servers with overlapping tools; this profile had the clearer scope statement.
showing 1-10 of 43
A Model Context Protocol (MCP) server that provides access to the Turso-hosted LibSQL databases. Currently, the server provides the following functionality:
Add this to your claude_desktop_config.json:
{
"mcpServers": [
"turso": {
"command": "npx",
"args": ["-y", "mcp-turso"],
"env": {
"TURSO_DATABASE_URL": "your_url",
"TURSO_AUTH_TOKEN": "your_token"
}
}
]
}
You will need an existing database to continue. If you don't have one, create one. To get the database URL via the Turso CLI, run:
turso db show --url <database-name>
Then get the database authentication token:
turso db tokens create <database-name>
Add those values to your configuration as shown above.
To configure the Turso MCP server with Cursor, add the following to your Cursor settings:
"mcpServers": {
"turso": {
"command": "npx",
"args": ["-y", "mcp-turso"],
"env": {
"TURSO_DATABASE_URL": "your_url",
"TURSO_AUTH_TOKEN": "your_token"
}
}
}
Replace your_url and your_token with your Turso database URL and authentication token as described in the previous section.
The server includes a custom logger for debugging outside of Claude Desktop. By default, this logger writes to <parent-dir>/logs/mcp-turso.log, where <parent-dir> is the parent directory of directory containing the mcp-turso script. In other words, if the path to mcp-turso is ~/foo/bin/mcp-turso, the logs will be at ~/foo/logs/mcp-turso.log. If running with NPX as above, the default logs will be:
~/.npm/_npx/<npx-dir-name>/node_modules/mcp-turso/logs/mcp-turso.log
If you would like to specify a custom path, you can include a --logs flag with an absolute posix path in the server's configuration:
{
"mcpServers": [
"turso": {
"command": "npx",
"args": ["-y", "mcp-turso", "--logs", "/Users/<username>/path/to/dir/mcp-logs.log"],
"env": {
"TURSO_DATABASE_URL": "your_url",
"TURSO_AUTH_TOKEN": "your_token"
}
}
]
}
The path to the log file (default or custom) is always logged to stderr when the server is created. For Claude desktop, this will show up in your server logs in ~/Library/Logs/Claude.
Note: Right now, I haven't implemented specifying a custom logging file for Windows, but this is coming.
The server provides the following tools:
list_tables
get_db_schema
describe_table
table_name (string): Name of table to describequery_database
sql (string): The SELECT SQL query to execute{ columns: string[]; rows: Record<string, unknown>[]; rowCount: number; }MIT License - see the LICENSE file for details.
Run data quality queries to catch anomalies and inconsistencies
Example
Find duplicate records, missing values, orphaned foreign keys automatically
Maintain data integrity with less manual SQL work
Prerequisites
Time Estimate
15-30 minutes including configuration and testing
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
MCP server acts as bridge between Claude and database, translating natural language to SQL queries and returning results in structured format.
Protocols
Compatibility
✓ Use when
Use for ad-hoc data queries, exploratory analysis, report generation, schema exploration, and democratizing data access. Best for read-heavy analytics workloads.
✗ Avoid when
Avoid for production write operations, mission-critical transactions, real-time OLTP workloads, or when database contains sensitive PII without proper access controls. Use read replicas, not primary.