{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Guides","type":"markdown"},"seo":{"title":"Connect Cursor to Treasure AI","description":"Connect Cursor to Treasure AI via MCP to query databases, build segments in YAML, and debug workflows from Cursor's agent chat, with TD Skills included.","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/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"connecting-cursor-to-treasure-ai","__idx":0},"children":["Connecting Cursor to Treasure AI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Connect Cursor to Treasure AI to query databases, build and manage segments in YAML, and debug workflows from Cursor's agent chat, using your existing Cursor plan. This page covers connecting MCP Server (Platform) for platform operations, MCP Server (Docs) for documentation search, and installing TD Skills."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Cursor installed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Node.js and npm"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Treasure AI account with API access"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-mcp-server-platform","__idx":2},"children":["Connect MCP Server (Platform)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @treasuredata/tdx\ntdx auth setup\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Cursor, open the command palette (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Command + Shift + P"]}," on macOS, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl + Shift + P"]}," on Windows/Linux), select \"Open MCP settings\", then \"Add custom MCP\". Cursor opens ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]}," — add the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," server:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"tdx\": {\n      \"command\": \"tdx\",\n      \"args\": [\"mcp\"]\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To roll this out to your team, commit the same configuration to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".cursor/mcp.json"]}," in your repository instead. Each teammate still runs ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx auth setup"]}," individually to authenticate."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connect-mcp-server-docs","__idx":3},"children":["Connect MCP Server (Docs)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To let Cursor search Treasure AI documentation directly, add a second entry to the same ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mcp.json"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"mcpServers\": {\n    \"td-docs\": {\n      \"url\": \"https://docs.treasure.ai/mcp\"\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"install-td-skills","__idx":4},"children":["Install TD Skills"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"git clone https://github.com/treasure-data/td-skills\nmkdir -p ~/.cursor/skills\ncp -r td-skills/tdx-skills/* td-skills/sql-skills/* td-skills/workflow-skills/* ~/.cursor/skills/\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/td-skills"},"children":["TD Skills"]}," for the full skill catalog."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"try-it","__idx":5},"children":["Try It"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In Cursor's agent chat, confirm the connection appears, then ask a question that requires querying your data:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"> List the databases in my Treasure AI environment\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Cursor responds with the list of databases from your account, confirming MCP Server (Platform) is connected."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":6},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/mcp-server-docs"},"children":["MCP Server (Docs)"]}," — reference for documentation search tools"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/mcp-server-platform"},"children":["MCP Server (Platform)"]}," — reference for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_run"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx_search"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/treasure-code/guide/td-skills"},"children":["TD Skills"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Connect a different tool: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/claude-code"},"children":["Claude Code"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/openai-codex"},"children":["OpenAI Codex"]}," · ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/getting-started/ai/vscode-github-copilot"},"children":["VS Code and GitHub Copilot"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.treasure.ai/works-with/spacex-cursor"},"children":["Why teams pair Cursor with Treasure AI"]}]}]}]},"headings":[{"value":"Connecting Cursor to Treasure AI","id":"connecting-cursor-to-treasure-ai","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Connect MCP Server (Platform)","id":"connect-mcp-server-platform","depth":2},{"value":"Connect MCP Server (Docs)","id":"connect-mcp-server-docs","depth":2},{"value":"Install TD Skills","id":"install-td-skills","depth":2},{"value":"Try It","id":"try-it","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Connect Cursor to Treasure AI","description":"Connect Cursor to Treasure AI via MCP to query databases, build segments in YAML, and debug workflows from Cursor's agent chat, with TD Skills included."}},"lastModified":"2026-07-17T06:11:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/getting-started/ai/cursor","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}