Back to Home
treasure-data icon

td-mcp-server

Verified Safe

by treasure-data

Overview

Provides a secure, controlled interface for AI assistants to query and interact with Treasure Data (Trino SQL, CDP, and Workflow APIs) via the Model Context Protocol.

Installation

Run Command
npx @treasuredata/mcp-server

Environment Variables

  • TD_API_KEY
  • TD_SITE
  • TD_ENABLE_UPDATES
  • TD_DATABASE
  • TD_LLM_API_BASE
  • TD_DEFAULT_PROJECT_NAME
  • TD_DEFAULT_AGENT_ID
  • TD_MCP_LOG_TO_CONSOLE

Security Notes

The server is designed with security in mind, defaulting to read-only operations unless 'TD_ENABLE_UPDATES=true' is explicitly set. It includes a `QueryValidator` to enforce read/write restrictions and prevent SQL injection through identifier/string escaping. All SQL queries are subjected to validation, including checking for write operations within 'WITH' clauses in read-only mode. API keys are masked in all error messages. An `AuditLogger` tracks all query executions (success/failure, query type, duration, affected rows) for monitoring. Input schemas for CDP tools are validated using Zod. Network communication with Treasure Data APIs uses HTTPS. Overall, strong security practices are evident.

Similar Servers

Stats

Interest Score33
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars3
Forks1
Last Update2026-01-19

Tags

mcptreasure-datatrinosqlaicdpworkflow