# MCP Trino

> MCP Trino is an open-source MCP server. MCP server for Trino distributed SQL query engine access. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/tuannvm/mcp-trino
- **MCP Registry name:** io.github.tuannvm/mcp-trino
- **Listing updated:** 2026-11-13

## About

MCP server for Trino distributed SQL query engine access

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-trino --env TRINO_HOST='<TRINO_HOST>' --env TRINO_USER='<TRINO_USER>' --env TRINO_PASSWORD='<TRINO_PASSWORD>' -- npx -y https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-trino": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz"
      ],
      "env": {
        "TRINO_HOST": "<TRINO_HOST>",
        "TRINO_USER": "<TRINO_USER>",
        "TRINO_PASSWORD": "<TRINO_PASSWORD>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-trino": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz"
      ],
      "env": {
        "TRINO_HOST": "<TRINO_HOST>",
        "TRINO_USER": "<TRINO_USER>",
        "TRINO_PASSWORD": "<TRINO_PASSWORD>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-trino": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz"
      ],
      "env": {
        "TRINO_HOST": "<TRINO_HOST>",
        "TRINO_USER": "<TRINO_USER>",
        "TRINO_PASSWORD": "<TRINO_PASSWORD>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-trino": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz"
      ],
      "env": {
        "TRINO_HOST": "<TRINO_HOST>",
        "TRINO_USER": "<TRINO_USER>",
        "TRINO_PASSWORD": "<TRINO_PASSWORD>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-trino": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz"
      ],
      "env": {
        "TRINO_HOST": "<TRINO_HOST>",
        "TRINO_USER": "<TRINO_USER>",
        "TRINO_PASSWORD": "<TRINO_PASSWORD>"
      }
    }
  }
}
```

## FAQ

### Is MCP Trino free?

Yes. MCP Trino is open source, so you can use and self-host it for free.

### How do I add MCP Trino to Claude Code?

Run this command in your terminal: claude mcp add mcp-trino --env TRINO_HOST='<TRINO_HOST>' --env TRINO_USER='<TRINO_USER>' --env TRINO_PASSWORD='<TRINO_PASSWORD>' -- npx -y https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz

---
Source: https://ai-powered.com/mcp/mcp-trino
