MCP server for libSQL database operations
Mcp libsql mcp server lets Claude, Cursor and other MCP clients work with MCP Libsql directly. MCP server for libSQL database operations.
A Model Context Protocol (MCP) server for libSQL database operations, providing secure database access through Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.
Once connected, the assistant can call these 6 tools directly:
read-query — Execute SELECT queries with comprehensive security validationwrite-query — INSERT/UPDATE/DELETE operations with transaction supportcreate-table — DDL operations for table creation with security measuresalter-table — Table structure modifications (ADD/RENAME/DROP operations)list-tables — Database metadata browsing with filtering optionsdescribe-table — Table schema inspection with multiple output formatsThe server is distributed via npm as @xexr/mcp-libsql, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Before the server will start you need to supply one environment variable: LIBSQL_AUTH_TOKEN. Keep credentials in your client's env block or a secrets manager rather than committing them.
Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. MCP Libsql sits in that group, and the shape of its toolset — read-query, write-query, create-table among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| read-query | Execute SELECT queries with comprehensive security validation |
| write-query | INSERT/UPDATE/DELETE operations with transaction support |
| create-table | DDL operations for table creation with security measures |
| alter-table | Table structure modifications (ADD/RENAME/DROP operations) |
| list-tables | Database metadata browsing with filtering options |
| describe-table | Table schema inspection with multiple output formats |
```json
{
"mcpServers": {
"mcp-libsql": {
"command": "mcp-libsql",
"args": [
"--url",
"libsql://your-database.turso.io"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| LIBSQL_AUTH_TOKEN | Credential the server authenticates with. | Yes |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.