{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"AI","product_name":"Headless","type":"markdown"},"seo":{"title":"Local MCP Server (tdx mcp)","description":"Reference for Treasure AI's Local MCP Server (tdx mcp): tdx_run and tdx_search let AI coding agents query databases, manage segments, and run workflows.","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"local-mcp-server","__idx":0},"children":["Local MCP Server"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Local MCP Server (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx mcp"]},") exposes the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/"},"children":["Treasure Code (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]},") CLI"]}," over local ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["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 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," credentials, not just search documentation."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"set-up-and-run-the-local-mcp-server","__idx":1},"children":["Set Up and Run the Local MCP Server"]},{"$$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":{"width":"20%","data-label":"Tool"},"children":["Tool "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"32%","data-label":"Parameters"},"children":["Parameters "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"48%","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":["Executes a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," CLI command and 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":["Searches for relevant ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," commands based on what you want to do"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Categories for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Data"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CDP"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AI"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Context"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["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":[{"$$mdtype":"Tag","name":"code","attributes":{},"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":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/claude-code"},"children":["Claude Code"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/openai-codex"},"children":["OpenAI Codex"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/vscode-github-copilot"},"children":["VS Code and GitHub Copilot"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/cursor"},"children":["Cursor"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/snowflake-cortex-code"},"children":["Snowflake Cortex Code"]},", and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless/databricks-genie-code"},"children":["Databricks Genie Code"]}," can all connect to the Local MCP Server. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless"},"children":["Headless"]}," or ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai#pick-your-agent"},"children":["Agent Setup"]}," for tool-specific setup steps. For other MCP clients (such as Claude Desktop or Windsurf), see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/commands/mcp"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"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":[{"$$mdtype":"Tag","name":"code","attributes":{},"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 live documentation instead of operating on data"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/headless"},"children":["Headless"]}," — connect AI assistants and coding agents to Treasure AI"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai"},"children":["Agent Setup"]}," — one-click setup prompt and TD Skills catalog"]}]}]},"headings":[{"value":"Local MCP Server","id":"local-mcp-server","depth":1},{"value":"Set Up and Run the Local MCP Server","id":"set-up-and-run-the-local-mcp-server","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":"Local MCP Server (tdx mcp)","description":"Reference for Treasure AI's Local MCP Server (tdx mcp): tdx_run and tdx_search let AI coding agents query databases, manage segments, and run workflows."}},"lastModified":"2026-11-16T07:29:15.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/headless/local-mcp-server","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}