SQLite MCP Server
Provides tools for querying and managing SQLite databases, including executing SQL, inspecting and altering schema, managing indexes, and running maintenance tasks such as vacuum and integrity checks.
Connects to remote Turso/libSQL databases via URL and auth token, providing tools for querying, executing SQL, managing schema and indexes, and performing database maintenance.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SQLite MCP Server
MCP server for SQLite databases — local files or remote Turso/libSQL via URL. 15 tools for query, schema, indexes, and optimization.
Quick Start
Local Database (Claude Desktop / Cursor)
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["-y", "@node2flow/sqlite-mcp"],
"env": {
"SQLITE_DB_PATH": "/path/to/your/database.db"
}
}
}
}Remote Database (Turso/libSQL)
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["-y", "@node2flow/sqlite-mcp"],
"env": {
"SQLITE_DB_URL": "libsql://your-db-name.turso.io",
"SQLITE_AUTH_TOKEN": "your-auth-token"
}
}
}
}HTTP Mode
# Local
SQLITE_DB_PATH=/path/to/database.db npx @node2flow/sqlite-mcp --http
# Remote
SQLITE_DB_URL=libsql://your-db.turso.io SQLITE_AUTH_TOKEN=xxx npx @node2flow/sqlite-mcp --httpMCP endpoint: http://localhost:3000/mcp
Cloudflare Worker (Remote Only)
Available at: https://sqlite-mcp-community.node2flow.net/mcp
POST https://sqlite-mcp-community.node2flow.net/mcp?SQLITE_DB_URL=libsql://your-db.turso.io&SQLITE_AUTH_TOKEN=xxxCF Workers have no filesystem — only
SQLITE_DB_URLis supported.
Related MCP server: Turso MCP Server
Configuration
Variable | Required | Mode | Description |
| No | Local | Path to SQLite file (creates if not exists) |
| No | Remote | Turso/libSQL URL (e.g. |
| No | Remote | Auth token for Turso (required with URL) |
| No | Local | Busy timeout in ms (default: 5000) |
Priority: SQLITE_DB_URL > SQLITE_DB_PATH (if both set, URL wins)
Tools (15)
Query & Execute (3)
Tool | Description |
| Execute SELECT query, return rows as JSON |
| Execute write statement (INSERT/UPDATE/DELETE/CREATE) |
| Execute multiple statements in transaction |
Schema Inspection (4)
Tool | Description |
| List all tables with row counts |
| Get columns, types, constraints |
| List indexes for a table |
| List foreign key constraints |
Schema Management (3)
Tool | Description |
| Create new table with column definitions |
| Add column, rename column, rename table |
| Drop a table |
Index Management (2)
Tool | Description |
| Create index on columns |
| Drop an index |
Database Management (3)
Tool | Description |
| Database metadata (size, tables, journal mode) |
| Optimize and compact database |
| Check database health |
Turso Setup
Install Turso CLI:
curl -sSfL https://get.tur.so/install.sh | bashSign up:
turso auth signupCreate database:
turso db create my-databaseGet URL:
turso db show my-database --urlGet token:
turso db tokens create my-database
Free tier: 500 databases, 9GB storage, 25M reads/month.
Docker
docker compose up -d
# Endpoint: http://localhost:3025/mcpMount database files or use remote URL:
services:
sqlite-mcp-community:
build: .
ports:
- "127.0.0.1:3025:3000"
environment:
# Local mode:
- SQLITE_DB_PATH=/data/database.db
# OR Remote mode:
# - SQLITE_DB_URL=libsql://your-db.turso.io
# - SQLITE_AUTH_TOKEN=your-token
volumes:
- ./data:/dataLicense
MIT License - see LICENSE
Copyright (c) 2026 Node2Flow
Links
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read databases and usage, run read-only SQL, and create databases and tokens in Turso.
1Explore, 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
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
Related MCP Servers
- AlicenseAqualityBmaintenanceOperations toolchain for SQLite, Cloudflare D1, and Turso. Every command is available as both a CLI and an MCP tool: inspect, diff, migrate, monitor, back up, and repair databases. 22 stdio tools, read-only by default.141AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables SQL queries, table listing, schema description, and data retrieval with pagination on Turso (libSQL) databases.MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to inspect and query local SQLite databases and, when write mode is enabled, perform inserts, updates, deletes, schema changes, and atomic transactions over stdio.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to explore schemas, trace lineage and procedure call graphs, run bounded SQL and PostgreSQL diagnostics, and manage cryptographically governed changes across PostgreSQL, MySQL, and SQLite over stdio or HTTP.Apache 2.0