MCP Client Integrations

This MCP server can be integrated with several AI applications. Choose the integration method that best suits your needs.

Using Docker Image

To use the Docker image instead of a local binary:

{
  "mcpServers": {
    "mcp-trino": {
      "command": "docker",
      "args": ["run", "--rm", "-i",
               "-e", "TRINO_HOST=<HOST>",
               "-e", "TRINO_PORT=<PORT>",
               "-e", "TRINO_USER=<USERNAME>",
               "-e", "TRINO_PASSWORD=<PASSWORD>",
               "-e", "TRINO_SCHEME=http",
               "ghcr.io/tuannvm/mcp-trino:latest"],
      "env": {}
    }
  }
}

Note: The host.docker.internal special DNS name allows the container to connect to services running on the host machine. If your Trino server is running elsewhere, replace with the appropriate host.

This Docker configuration can be used in any of the below applications.

Cursor

To use with Cursorarrow-up-right, create or edit ~/.cursor/mcp.json:

Replace the environment variables with your specific Trino configuration.

For HTTP+StreamableHTTP transport mode (recommended for web clients):

For remote MCP server with JWT authentication:

For backward compatibility with SSE (legacy endpoint):

Then start the server in a separate terminal with:

Claude Desktop

To use with Claude Desktoparrow-up-right, the easiest way is to use the install script which will automatically configure it for you. Alternatively, you can manually edit your Claude configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

After updating the configuration, restart Claude Desktop. You should see the MCP tools available in the tools menu.

Claude Code

To use with Claude Codearrow-up-right, the install script will automatically configure it for you. Alternatively, you can manually add the MCP server:

Then set your environment variables:

Restart Claude Code to see the MCP tools available.

Windsurf

To use with Windsurfarrow-up-right, create or edit your mcp_config.json:

Restart Windsurf to apply the changes. The Trino MCP tools will be available to the Cascade AI.

ChatWise

To use with ChatWisearrow-up-right, follow these steps:

Local MCP Server:

  1. Open ChatWise and go to Settings

  2. Navigate to the Tools section

  3. Click the "+" icon to add a new tool

  4. Select "Command Line MCP"

  5. Configure with the following details:

    • ID: mcp-trino (or any name you prefer)

    • Command: mcp-trino

    • Args: (leave empty)

    • Env: Add the following environment variables:

Remote MCP Server:

For remote MCP servers with JWT authentication:

  1. Copy this JSON to your clipboard:

  2. In ChatWise Settings > Tools, click the "+" icon

  3. Select "Import JSON from Clipboard"

  4. Toggle the switch next to the tool to enable it

Alternatively, you can import the local configuration from JSON:

  1. Copy this JSON to your clipboard:

  2. In ChatWise Settings > Tools, click the "+" icon

  3. Select "Import JSON from Clipboard"

  4. Toggle the switch next to the tool to enable it

Once enabled, click the hammer icon below the input box in ChatWise to access Trino MCP tools.

Last updated

Was this helpful?