Turso MCP server

Connect Turso to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Turso MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the create database token tool in Turso
  • Use the list groups tool in Turso
  • Use the invalidate database tokens tool in Turso
  • Use the create group token tool in Turso
  • Use the delete database tool in Turso
  • Use the get group tool in Turso

Supported Tools

create_database_token

Create Database Token

Choose an organization with list_organizations. Generate an authentication token for a specific database. The token can be used by SDKs to connect to the database. Supports read-only access and custom expiration.

list_groups

List Groups

Choose an organization with list_organizations. List all database groups in the organization. Groups are logical containers for databases with regional replication.

invalidate_database_tokens

Invalidate Database Tokens

Choose an organization with list_organizations. Rotate tokens for a database, invalidating all existing database auth tokens. Any clients using old tokens will need to obtain new ones.

create_group_token

Create Group Token

Choose an organization with list_organizations. Generate an authentication token for all databases in a group. These SQL tokens grant access to every database within the group; they are different from group-scoped Platform API tokens. Supports read-only access and custom expiration.

delete_database

Delete Database

Choose an organization with list_organizations. Delete a database and its data. Recovery is available only to eligible organizations within Turso retention limits; do not rely on recovery.

get_group

Get Group

Choose an organization with list_organizations. Retrieve detailed information about a specific database group, including its locations, primary region, and archive status.

get_organization

Get Organization

Choose an organization with list_organizations. Retrieve information about the current organization, including usage statistics, subscription details, and billing information.

create_group

Create Group

Choose an organization with list_organizations. Create a new database group in a specific location. Groups serve as containers for databases and define placement. Replica management is limited to eligible existing paid accounts.

invalidate_group_tokens

Invalidate Group Tokens

Choose an organization with list_organizations. Rotate the group signing key, invalidating existing SQL credentials for every database in the group. Applications using old database or group SQL tokens must obtain new credentials. This requires the separate group rotation permission.

manage_group_locations

Manage Group Locations

Choose an organization with list_organizations. Add or remove replica locations for a database group. Adding a location creates a new replica machine. Removing a location destroys the replica at that location.

manage_members

Manage Members

Choose an organization with list_organizations. List, add, or remove members from the organization. Can also invite users by email.

list_locations

List Locations

List all available deployment locations for database groups. Also identifies the closest location to the requester.

create_database

Create Database

Choose an organization with list_organizations. Create a new database within a group. Supports seeding from an existing database or a dump URL. Dump seeds are retained in the official SDK but omitted from the current OpenAPI; availability depends on the account/API deployment. Multi-DB schemas are available only to eligible existing paid accounts.

get_database

Get Database

Choose an organization with list_organizations. Retrieve detailed information about a specific database, including its configuration, instances, usage statistics, and top queries.

list_audit_logs

List Audit Logs

Choose an organization with list_organizations. Retrieve audit logs for the organization. Audit logs track actions taken by members, useful for monitoring activity and security.

delete_group

Delete Group

Choose an organization with list_organizations. Delete a database group and all its databases. Recovery is available only to eligible organizations within Turso retention limits; do not rely on recovery.

transfer_group

Transfer Group

Choose an organization with list_organizations. Transfer a database group to another organization. Moves the group and all its databases to the target organization.

unarchive_group

Unarchive Group

Choose an organization with list_organizations. Unarchive a previously archived database group, restoring access to all its databases.

update_database_configuration

Update Database Configuration

Choose an organization with list_organizations. Update a database's configuration. Configure size limits, read/write blocking, delete protection, IP/VPC access rules and legacy ATTACH permission.

list_databases

List Databases

Choose an organization with list_organizations. List all databases in the organization. Returns database names, hostnames, regions, group assignments, and status information.

manage_api_tokens

Manage API Tokens

List, create, revoke, or validate API tokens. API tokens are used for authenticating with the Turso Platform API.

list_organizations

List Organizations

List authorized Turso organizations. Use organizationSlug from the result in database, group, member and audit tools.

get_current_user

Get Current User

Get the authenticated Turso user, account plan and security status.

Connect Turso to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Turso in Metorial. In your Metorial portal, enable the Turso MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Turso tools.

Run Turso through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Turso and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Turso tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Turso

Google Sheets

Create, read, and update spreadsheets and their cell data. Read and write values to individual cells, ranges, or multiple ranges using A1 notation or named ranges. Apply cell formatting including text styles, backgrounds, borders, number formats, and conditional formatting. Manage sheets (tabs) within a spreadsheet—add, delete, copy, rename, and reorder them. Create and manage embedded charts, pivot tables, filter views, data validation rules, protected ranges, named ranges, and merged cells. Perform batch operations to apply multiple updates atomically.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Google Drive

Upload, download, create, copy, move, rename, trash, and permanently delete files and folders in Google Drive. Search for files using complex queries filtering by name, MIME type, owner, modification date, labels, and other metadata. Share files and folders with specific users, groups, or domains with role-based permissions (owner, writer, commenter, reader). Manage shared drives and their members. Export Google Workspace files (Docs, Sheets, Slides) to standard formats like PDF, DOCX, and XLSX. Track file revision history and restore earlier versions. Create, read, update, and delete threaded comments and replies on files. Read label definitions and search files by label. Browse the Drive apps installed for your account. Store app-specific data in a hidden per-user folder.

Technical notes for Turso

Manage distributed SQLite-compatible databases on the Turso platform. Create, list, retrieve, delete, and configure databases and database groups across global locations. Seed databases from existing databases, dumps, or file uploads. Manage database schema inheritance via schema databases for multi-tenant architectures. Control group locations and replicas, generate database and group auth tokens with configurable expiration and read-only access, and rotate tokens. Manage organizations, members, invitations, and roles. Retrieve usage statistics (rows read, rows written, storage), top queries, invoices, and subscription details. Access audit logs and discover available deployment locations.

Frequently asked questions

Common questions about connecting Turso to AI agents with Metorial.

  1. How many tools does the Turso MCP server have?
    The Turso MCP server exposes 23 tools, including Create Database Token, List Groups, Invalidate Database Tokens. Each one is governed and traced through Metorial.
  2. Turso exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Turso MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Turso and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Turso MCP server yourself or use the hosted gateway.

Connect Turso to production AI agents

See how Metorial gives your team governed access to Turso, with tracing and security controls built in.