drio
Open app

Trino MCP Server

Source

MCP Server for Trino

Catalog onlyCatalog onlySTDIO

Overview

Trino MCP Server is a Model-Control-Protocol server that enables users to list and query tables via Trino using Python, facilitating big data analytics.

To use the Trino MCP Server, configure the necessary environment variables for Trino connection details and run the server using the provided command structure.

  • Lists Trino tables as MCP resources. - Reads table contents through MCP. - Executes arbitrary SQL queries against Trino.
  1. Querying large datasets efficiently using SQL.
  2. Integrating AI models with data sources for analytics.
  3. Bridging various data tools through the MCP protocol.

Add to your AI client

Use these steps to connect Trino MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-trino-dataring-engineering": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-trino-dataring-engineering": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-trino-dataring-engineering": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-trino-dataring-engineering": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-trino-dataring-engineering": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-trino-dataring-engineering": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-trino-dataring-engineering"
      ]
    }
  }
}

FAQ

What programming language is used for the server?

The server is built using Python.

What are the requirements to run the server?

You need Python 3.9+, the trino Python driver, and the MCP library.

How do I configure the server?

Configuration is done through environment variables for Trino connection details.

Trino MCP Server — MCP Registry