The Local MCP Server (tdx mcp) exposes the Treasure Code (tdx) CLI over local stdio, so AI coding agents can query databases, manage segments, and run workflows in your Treasure AI environment directly from natural-language prompts. Use it when you want an AI coding tool on your machine to operate on your data with your local tdx credentials, not just search documentation.
npm install -g @treasuredata/tdx
tdx auth setup
tdx mcp| Tool | Parameters | Description |
|---|---|---|
tdx_run | args: string[] | Executes a tdx CLI command and returns JSON output |
tdx_search | query: string, category?: string | Searches for relevant tdx commands based on what you want to do |
Categories for tdx_search: Data, CDP, AI, Context, Utilities.
For the full tool reference, blocked commands, and troubleshooting, see the tdx mcp command reference.
Claude Code, OpenAI Codex, VS Code and GitHub Copilot, Cursor, Snowflake Cortex Code, and Databricks Genie Code can all connect to the Local MCP Server. See Headless or Agent Setup for tool-specific setup steps. For other MCP clients (such as Claude Desktop or Windsurf), see the tdx mcp command reference.
tdx mcpcommand reference — full tool reference, blocked commands, and troubleshooting- MCP Server (Docs) — search live documentation instead of operating on data
- Headless — connect AI assistants and coding agents to Treasure AI
- Agent Setup — one-click setup prompt and TD Skills catalog