mcp-turso-cloud

v0.0.9
io.github.spences10/mcp-turso-cloud Checked 17 hours ago Published 1 year ago

MCP server for integrating Turso with LLMs

Values you need

VariableWhat it is
TURSO_API_TOKENrequired secret Turso Platform API token for authentication
TURSO_ORGANIZATIONrequired Turso organization name
TURSO_DEFAULT_DATABASEoptional Default database name (optional)
TOKEN_EXPIRATIONoptional Token expiration time (default: 7d)
TOKEN_PERMISSIONoptional Default token permission level (default: full-access)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-turso-cloud -e 'TURSO_API_TOKEN=<TURSO_API_TOKEN>' -e 'TURSO_ORGANIZATION=<TURSO_ORGANIZATION>' -- npx -y mcp-turso-cloud@0.0.9
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-turso-cloud": {
      "args": [
        "-y",
        "mcp-turso-cloud@0.0.9"
      ],
      "command": "npx",
      "env": {
        "TURSO_API_TOKEN": "<TURSO_API_TOKEN>",
        "TURSO_ORGANIZATION": "<TURSO_ORGANIZATION>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-turso-cloud": {
      "args": [
        "-y",
        "mcp-turso-cloud@0.0.9"
      ],
      "command": "npx",
      "env": {
        "TURSO_API_TOKEN": "<TURSO_API_TOKEN>",
        "TURSO_ORGANIZATION": "<TURSO_ORGANIZATION>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TURSO_API_TOKEN",
      "id": "turso-api-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "TURSO_ORGANIZATION",
      "id": "turso-organization",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-turso-cloud": {
      "args": [
        "-y",
        "mcp-turso-cloud@0.0.9"
      ],
      "command": "npx",
      "env": {
        "TURSO_API_TOKEN": "${input:turso-api-token}",
        "TURSO_ORGANIZATION": "${input:turso-organization}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-turso-cloud]
command = "npx"
args = ["-y", "mcp-turso-cloud@0.0.9"]
env = { "TURSO_API_TOKEN" = "<TURSO_API_TOKEN>", "TURSO_ORGANIZATION" = "<TURSO_ORGANIZATION>" }

For AI agents

  1. Ask the user for: TURSO_API_TOKEN, TURSO_ORGANIZATION. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_databases, create_database, delete_database, generate_database_token, list_tables, execute_read_only_query, execute_query, describe_table, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json