# libSQL MCP server

> Run secure SQL queries, create and alter tables, and inspect libSQL database schemas from an AI client with connection pooling and transactions.

- Repository: https://github.com/Xexr/mcp-libsql
- Page: https://hostedmcp.org/servers/xexr/mcp-libsql
- Transport: —
- Stars: 21
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LIBSQL_AUTH_TOKEN` | no | no |  |

## Tools (6)

- `read-query`
- `write-query`
- `create-table`
- `alter-table`
- `list-tables`
- `describe-table`

## FAQ

### What tools does the libSQL MCP server provide?

It provides six tools: read-query, write-query, create-table, alter-table, list-tables, and describe-table.

### How do I authenticate to a Turso database?

Provide a libSQL auth token, either through the LIBSQL_AUTH_TOKEN environment variable (recommended) or the --auth-token CLI parameter.

### Does it support transactions?

Yes, write operations support transactions with automatic rollback on errors.

### Does it prevent SQL injection?

Yes, it applies multi-layer SQL injection prevention with security validation and has 67 security tests.
