Turso MCP by usefulapi

v1.1.0
io.usefulapi/turso Checked 7 hours ago Published 5 days ago

Read databases and usage, run read-only SQL, and create databases and tokens in Turso.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

turso_get_current_user Get the current user

Show the user who owns the API token. Turso API: GET /v1/user.

turso_get_organization Get the organization

Show the details of the organization. Turso API: GET /v1/organizations/{organizationSlug}.

turso_get_organization_subscription Get the subscription

Show the organization's current subscription plan and its details. Turso API: GET /v1/organizations/{organizationSlug}/subscription.

turso_get_organization_usage Get organization usage

Show the organization's billing-cycle usage: rows read and written, and total storage. Turso API: GET /v1/organizations/{organizationSlug}/usage.

turso_list_organization_members List organization members

List the members of the organization and their roles. Turso API: GET /v1/organizations/{organizationSlug}/members.

turso_list_locations List locations

List the regions where a Turso group can run databases. Turso API: GET /v1/locations.

turso_list_groups List groups

List the groups in the organization. A group holds databases in one or more regions. Turso API: GET /v1/organizations/{organizationSlug}/groups.

turso_get_group Get a group

Show one group. Turso API: GET /v1/organizations/{organizationSlug}/groups/{groupName}.

ParameterTypeDescription
group *stringGroup name (from turso_list_groups).

turso_list_databases List databases

List the databases in the organization with their names, hostnames and groups. Optionally filter by group. Turso API: GET /v1/organizations/{organizationSlug}/databases.

ParameterTypeDescription
groupstringOnly databases in this group.
parentstringOnly database branches of this parent database id.
schemastringOnly databases of this schema database.

turso_get_database Get a database

Show one database: its name, database id, hostname and block flags. Turso API: GET /v1/organizations/{organizationSlug}/databases/{databaseName}.

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).

turso_get_database_configuration Get database configuration

Show a database's settings: size limit, blocked reads and writes, delete protection and allowed IPs. Turso API: GET .../databases/{databaseName}/configuration.

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).

turso_list_database_instances List database instances

List the instances of one database: the primary and the replicas in each region of its group. Turso API: GET .../databases/{databaseName}/instances.

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).

turso_get_database_usage Get database usage

Show rows read and written and storage size for one database, per instance and in total. Dates default to the current calendar month. Turso API: GET .../databases/{databaseName}/usage.

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).
fromstringStart date yyyy-mm-dd (default: first day of this month).
tostringEnd date yyyy-mm-dd (default: today).

turso_query_database Run a read-only SQL query

Run one SQL statement against a database and return the columns and rows. Turso enforces read-only: writes are rejected. Each call mints a read-only database token that expires after 30 minutes. Uses the libSQL HTTP API (POST https://<hostname>/v2/pipeline).

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).
sql *stringOne SQL statement, for example SELECT * FROM users LIMIT 10.
argsarrayValues for the ? placeholders in the SQL, in order.
max_rowsintegerMost rows to return (default 200).

turso_create_database Create a database

Create an empty database in an existing group. The name is lowercase letters, digits and dashes. Creating a database can start billing. Turso API: POST /v1/organizations/{organizationSlug}/databases.

ParameterTypeDescription
group *stringGroup name (from turso_list_groups).
name *stringNew database name.

turso_create_database_token Create a database token

Mint a token for one database. Read-only is the default. The returned JWT is a secret: treat it like a password. Turso API: POST .../databases/{databaseName}/auth/tokens.

ParameterTypeDescription
database *stringDatabase name (from turso_list_databases).
authorizationstringread-only (default) or full-access.
expirationstringHow long the token lives, in Turso's format, for example 30m, 1h or 2w1d30m. Omit for a token that never expires.