{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"MCP Server (Platform)","description":"Reference for Treasure AI's MCP Server (Platform): the tdx_run and tdx_search tools that let AI agents query databases, manage segments, and run workflows.","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"mcp-server-platform","__idx":0},"children":["MCP Server (Platform)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]}," command exposes the MCP server for AI tools, so 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 to operate on your data, not just search documentation."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"set-up-and-run-mcp-server-platform","__idx":1},"children":["Set Up and Run MCP Server (Platform)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @treasuredata/tdx\ntdx auth setup\ntdx mcp\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"available-tools","__idx":2},"children":["Available Tools"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Tool"},"children":["Tool"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameters"},"children":["Parameters"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["args: string[]"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Execute any tdx CLI command. Returns JSON output."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["query: string"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["category?: string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Search for relevant tdx commands based on what you want to do."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Categories for tdx_search:"]}," Data, CDP, AI, Context, Utilities"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the full tool reference, blocked commands, and troubleshooting, see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx mcp command reference"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-your-tool","__idx":3},"children":["Connect Your Tool"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Claude Code, OpenAI Codex, VS Code, and Cursor can all connect to MCP Server (Platform). See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai#connect-your-ai-coding-tool"},"children":["Connect Your AI Coding Tool"]}," for tool-specific setup steps. For other MCP clients (Claude Desktop, Windsurf), see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx mcp command reference"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":4},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":["tdx mcp command reference"]}," — full tool reference, blocked commands, and troubleshooting"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/mcp-server-docs"},"children":["MCP Server (Docs)"]}," — search documentation instead of operating on data"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai#connect-your-ai-coding-tool"},"children":["Connect Your AI Coding Tool"]}]}]}]},"headings":[{"value":"MCP Server (Platform)","id":"mcp-server-platform","depth":1},{"value":"Set Up and Run MCP Server (Platform)","id":"set-up-and-run-mcp-server-platform","depth":2},{"value":"Available Tools","id":"available-tools","depth":2},{"value":"Connect Your Tool","id":"connect-your-tool","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"MCP Server (Platform)","description":"Reference for Treasure AI's MCP Server (Platform): the tdx_run and tdx_search tools that let AI agents query databases, manage segments, and run workflows."}},"lastModified":"2026-07-17T06:11:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/getting-started/ai/mcp-server-platform","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}