Skip to Content Treasure Data Logo Treasure Data Logo
  • Product
    • Agentic Experience Platform
      • Why Treasure AI? You set the strategy and guardrails. AI executes, 24/7.
      • Agentic Experience Platform
      • Pricing
      • Trust & Security
    • AI (Artificial Intelligence)
      • Digital Workers AI teammates that take tasks off your plate.
      • Treasure AI Studio 10x campaigns. 10x conversions. One workspace.
      • Treasure Code (CLI) Reduce the operational burden of CDP by up to 90%.
      • Headless Marketing
      • AI Agent Hub
    • Activation
      • AI Suites Activate the right experience, in the right channel, every time.
      • Engagement Suite
      • Personalization Suite
      • Creative Suite
      • Paid Media Suite
      • Service Suite
    • Context
      • Customer Data Platform Manage every context around your customers.
      • Complete CDP
      • Composable CDP
      • Identity Resolution
      • Integrations
      • AI Signals
  • Solutions
    • Industries
      • Automotive
      • CPG
      • Entertainment & Media
      • Financial Services
      • Healthcare
      • Retail
      • Technology
      • Travel & Hospitality
    • Channels
      • Email Marketing
      • Mobile App Marketing
      • SMS Marketing
      • LINE Marketing
    • CDWs & AI Tools
      • Snowflake
      • Databricks
      • BigQuery
      • Claude Code
      • OpenAI Codex
      • VS Code (Github Copilot)
      • Cursor
  • Customers
  • Resources
    • Explore
      • Resource Library
      • Case Studies
      • Blog
      • Documentation
      • Trust Center
      • Training
      • Events
      • Webinars
      • Treasure AI vs. The Rest
    • Get Started
      • Demo Experience Treasure Data with an expert-led walkthrough.
      • Trade-Up Program Replace your CEP, CDP, or ESP. Save big with special incentives.
      • RFP Template Compare AI customer data vendors with a free, 400+ question RFP template.
  • Company
    • Company
      • About Us
      • Careers
      • Partners
      • News
      • Contact Us
      • Terms
Login
Get a demo

  • Menu Item 1
    • Sub-menu Item 1
      • Another Item
    • Sub-menu Item 2
  • Menu Item 2
    • Yet Another Item
  • Menu Item 3
  • Menu Item 4
Blog
    • CDP
    • Customer Data Strategy
    • AI & Machine Learning
    • Marketing
    • CDP Use Cases
    • Partners
    • Treasure Data CDP
    • Data Privacy & Security
    • AI & Marketing
    • Company News
    • Data Strategy
    • Privacy & Security
    • Treasure AI CDP
    • Customer Service
June 26, 2025

Treasure Data MCP Server: Let Your LLM Talk to Your Data

Nik Belitchenov Nik Belitchenov
  • AI & Machine Learning

We're excited to introduce something that fundamentally changes how you interact with your customer data: the Treasure Data MCP Server.

This new open-source tool connects Large Language Model (LLM) assistants like OpenAI, Claude, GitHub Copilot Chat, and Windsurf directly to your Treasure Data environment. With it, you can explore databases, analyze tables, and write SQL queries using nothing more than plain English.

And yes, it really works, and it's already transforming how our teams and customers analyze data in real time.

So, what is an MCP Server?

First things first: the Model Context Protocol (MCP) isn't your typical web server. You don't host websites with it. Instead, think of MCP as a bridge, a secure, real-time communication channel between AI assistants and the tools and data they need access to.

The @treasuredata/mcp-server acts as a local process that gives your AI assistant a secure, structured way to connect with your Treasure Data instance. Once it's running, your assistant gains superpowers: it can explore databases, describe tables, write and execute SQL, and even manage workflows like switching databases.

 

Why this changes the game

Data is only valuable if you can use it. The Treasure Data MCP Server dramatically lowers the barrier to entry for working with that data. Instead of waiting on a data team or learning SQL, anyone can now get fast, reliable answers in the tools they already use.

By combining the trusted scale of Treasure Data's CDP with the conversational flexibility of LLMs, we're giving teams a new way to work—where insights are a conversation away.

Let's talk use cases

The Treasure Data MCP Server is built for real-world workflows across departments.

1. Marketing analysts getting answers, fast

A marketing manager using Claude Desktop might ask:

"@treasuredata What were our top 5 most viewed products last week, grouped by region?"

In seconds, Claude translates that request into a Trino SQL query, runs it against Treasure Data, and delivers the answer. No SQL experience needed, no waiting on an analyst.

Example of Treasure Data MCP Server in action with Claude

Example of Treasure Data MCP Server in action with Claude

2. Data engineers debugging tables on the fly

Need to check the schema of a new ingestion table? Just ask:

"@treasuredata Describe the events_staging table."

You'll get back the column names, data types, and nullability—without jumping into the UI or manually writing DESCRIBE statements.

3. Product managers exploring customer journeys

A PM in GitHub Copilot in Visual Studio Code can type:

"@treasuredata Using the user_journeys table, find paths that start with a product view and end with a purchase within 24 hours."

The assistant builds the SQL, queries the data, and presents results—all from inside the code editor.

4. Security teams identifying suspicious activity

An analyst investigating suspicious behavior could ask:

"@treasuredata From the www_access table, show IPs that viewed more than 50 unique pages in under 10 minutes."

Again, the assistant handles everything: it writes the SQL, uses TD_TIME_RANGE and TD_INTERVAL functions to filter time windows, and presents the results cleanly.

This type of analysis might take an hour of work normally—with MCP, it becomes a minute-long conversation.

5. Deep diving into segments

The MCP Server can query parent segments, segments, and segment query definitions. A user might not know which parent segment contains meaningful data in dev. Claude Code and the MCP Server can help them find a couple of examples by massively issuing CDP API requests in parallel.

 


 

Easy setup, instant impact

To get started, you won't need any permanent installation. The most recent Treasure Data MCP Server version will be conveniently accessed through npx.

Then, just add a simple configuration to your AI assistant. For example, in Claude Desktop:

JSON:

{
  "mcpServers": {
  "treasuredata": {
  "command": "npx",
  "args": ["@treasuredata/mcp-server"],
  "env": {
  "TD_API_KEY": "your_td_api_key_here",
  "TD_SITE": "us01",
  "TD_ENABLE_UPDATES": "false",
  "TD_DATABASE": "sample_datasets"
  }
  }
  }
 }


Once connected, you can say things like:

  • "Switch to the customer_behavior database"
  • "List all tables with 'conversion' in the name"
  • "Show me a 5-row sample from purchase_events"

It's that simple.

Tips to make the most of it

To really unlock value, try starting broad and iterating. Ask your AI to build a plan:

"Create a step-by-step plan to explore user engagement in the mobile_events database."

It might respond by listing databases, identifying key tables, describing schemas, and suggesting queries. This guided approach gives you structure—while still letting you drill deeper based on what you find.

Also, remember that your AI can improve its own queries. After seeing initial results, you can say:

"Refine this to only include users in California."

And it will adjust the SQL and re-run the query—all without you needing to touch code.

Get started now for free

Start by connecting your AI assistant like Claude, Copilot Chat, Windsurf, or another MCP-compatible tool. Then, let your imagination do the querying. No SQL? No problem. The AI figures it out.

Ask questions like:

  • "What's the top converting customer journey by country?"
  • "Show me all tables related to customer transactions in the past 30 days."
  • "Generate a query to segment users with high lifetime value and low recent engagement."

Whether you're a data scientist, a marketer, or a product leader, the Treasure Data MCP Server makes working with your data as easy as having a conversation. Let your AI assistant talk to your data, and see what it says back.

Let your AI talk to your data, and discover what it's been trying to tell you all along.

The server is available today in public preview on npm. It supports all major Treasure Data regions and is designed with enterprise security in mind.

Let's build the future of data access together.

Topics Covered

  • AI & Machine Learning

Share this story:


Subscribe
Get Treasure Data blogs, news, use cases, and platform capabilities:

Recent Posts

Black Friday Is No Time for Your MarTech to Fail
Marketing 6 min read Nov 24, 2026
Black Friday Is No Time for Your MarTech to Fail
Women's Sports Is Big Business: RAJ Sports at Agentic World
Treasure AI CDP 9 min read Nov 23, 2026
Women's Sports Is Big Business: RAJ Sports at Agentic World
9 min read Nov 16, 2026
From Idea to Customer Experience: Rafa Flores at Agentic World
Treasure Data Logo Symbol

+1 866.899.5386 (US)
+1 650.772.4500 (Non-US)

  • Product
    • Agentic Experience Platform
      • Why Now?
      • Agentic Experience Platform
      • Pricing
      • Trust & Security
    • AI (Artificial Intelligence) Layer
      • Digital Worker
      • Treasure AI Studio
      • Treasure Code
      • Headless Marketing
      • Agent Hub
    • Activation
      • Treasure AI Suites
      • Engagement AI Suite
      • Creative AI Suite
      • Personalization AI Suite
      • Paid Media AI Suite
      • Service AI Suite
    • Context
      • Customer Data Platform
      • Complete CDP
      • Composable CDP
      • Identity Resolution
      • Integrations
      • AI Signals
  • Solutions
    • Industries
      • Automotive
      • CPG
      • Entertainment & Media
      • Financial Services
      • Healthcare
      • Retail
      • Technology
      • Travel & Hospitality
    • Channels
      • Email Marketing
      • Mobile App Marketing
      • SMS Marketing
      • LINE Marketing
    • CDWs & AI Tools
      • Snowflake
      • Databricks
      • BigQuery
      • Claude Code
      • OpenAI Codex
      • VS Code (Github Copilot)
      • Cursor
  • Resources
    • Explore
      • Resource Library
      • Case Studies
      • Blog
      • Pricing
      • Documentation
      • Training
      • Events
      • Webinars
      • Treasure AI vs. The Rest
    • Get Started
      • Demo
      • AI Workshop
      • Fast Proof of Concept
      • RFP Template
      • Trade-Up Program
      • Value Calculator
      • Google API Data Policy
  • Company
    • Company
      • About Us
      • Customers
      • Partners
      • Careers
      • News
      • Contact Us
      • Terms
  • Get a demo
  • Terms & Conditions
  • Privacy Statement
  • Cookie Policy
  • Privacy Hub
  • Trademarks
  • Modern Slavery Statement
  • Your Privacy Choices
©2026 Treasure AI All rights reserved.