Turso MCP Server

Turso MCP Server

Enables SQL queries, table listing, schema description, and data retrieval with pagination on Turso (libSQL) databases.

Category
Visit Server

README

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

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

  1. Install Turso CLI:
# Windows (PowerShell)
irm https://get.tur.so/install.ps1 | iex

# macOS/Linux
curl -sSfL https://get.tur.so/install.sh | bash
  1. Login and create database:
turso auth login
turso db create my-database
  1. 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)

  1. Go to Claude app settings
  2. Add MCP server from Smithery: @gamzadongza/turso-mcp-server
  3. Set environment variables:
    • TURSO_DATABASE_URL: Your database URL
    • TURSO_AUTH_TOKEN: Your auth token

Available Tools

execute_query

Execute any SQL query on your Turso database.

Parameters:

  • query (string, required): SQL query to execute
  • params (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 table
  • limit (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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured