Skip to content
VS Code

Trino for VS Code

io.github.alaturqua/mcp-trino-python

Query Trino and inspect or maintain Iceberg tables: catalogs, schemas, SQL, snapshots.

client:VS Code transport:stdio runtime:pypi

Install Trino in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "trino-host",
      "description": "TRINO_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-port",
      "description": "TRINO_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-user",
      "description": "TRINO_USER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-password",
      "description": "TRINO_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-http-scheme",
      "description": "TRINO_HTTP_SCHEME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-catalog",
      "description": "TRINO_CATALOG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-schema",
      "description": "TRINO_SCHEMA",
      "password": true
    },
    {
      "type": "promptString",
      "id": "trino-read-only",
      "description": "TRINO_READ_ONLY",
      "password": true
    }
  ],
  "servers": {
    "mcp-trino-python": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-trino-python"
      ],
      "env": {
        "TRINO_HOST": "${input:trino-host}",
        "TRINO_PORT": "${input:trino-port}",
        "TRINO_USER": "${input:trino-user}",
        "TRINO_PASSWORD": "${input:trino-password}",
        "TRINO_HTTP_SCHEME": "${input:trino-http-scheme}",
        "TRINO_CATALOG": "${input:trino-catalog}",
        "TRINO_SCHEMA": "${input:trino-schema}",
        "TRINO_READ_ONLY": "${input:trino-read-only}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Trino in other clients