CockroachDB MCP server: connect your AI to live CockroachDB data

CData Connect AI is a managed MCP server for CockroachDB. Connect it once, then ask about live CockroachDB data in Claude, ChatGPT, Copilot Studio or any other MCP client. Answers follow your CockroachDB permissions, with no data replication.

Sync source to destination diagram
CockroachDB Logo

How do I connect CockroachDB to my AI tool?

01

Connect CockroachDB in Connect AI

Get Started Free and connect CockroachDB.

02

Connect your AI tool in Connect AI

Connect Claude, ChatGPT, Copilot Studio or any other MCP client.

03

Ask CockroachDB questions

For example: "What was our payment volume by day over the last 30 days?"

What can I ask my AI about CockroachDB?

Engineering, product, finance and operations teams can ask these in plain language.

Ask Claude a question
CockroachDB Logo
What was our payment volume by day over the last 30 days?
I'll help you analyze your CockroachDB data to answer this question. First, let me query CockroachDB structure and data to understand what we're working with.

View result from CockroachDBMCP_run_query from CockroachDBMCP (local)

…
Stakeholder
Ask in English
What Connect AI does
Finance Analyst
What was our payment volume by day over the last 30 days?
Totals the payment amounts per day for the last 30 days.
Product Manager
How many new users signed up each week this quarter?
Counts user rows by signup week for the quarter.
Customer Success
Which customers had more than three failed payments this month?
Filters payments for failures and lists the customers above three.
Operations Manager
Which orders are still open and older than seven days?
Filters orders by status and age and lists the ones over seven days.
Sales Operations
What are our top 10 products by units sold this month?
Joins order lines with products and totals the units per product.
Data Engineer
Which tables and views are available in our public schema?
Lists the tables, views and columns in the schema you connected.
Data Engineer
Which schemas in our CockroachDB database are available to the AI?
Lists only the schemas named in the BrowsableSchemas setting when it is set, and all available schemas otherwise.
RevOps Analyst
How does our payment volume in CockroachDB compare with the open pipeline in our CRM, by region?
Joins the CockroachDB payment data with open opportunities from your CRM, live, and compares them by region.

Table and column names in these examples are illustrative. Connect AI uses the tables and views in your own CockroachDB database.

How does Connect AI help my AI understand our CockroachDB data?

An AI answers correctly when it understands what your data means, not just where it lives. Connect AI builds that understanding from four sources of context.

Source of context
How it gets created
What it looks like for CockroachDB
System context
Built into the connector
Table, view and column names with their data types, read live from the schema you connect, for example orders, customers and amount_net.
Data model
You define datasets and joins once, and they are queried live
CockroachDB tables combined with data from your CRM or ERP, without copying the data.
Semantic definitions
Import them from dbt, Power BI, Tableau, Snowflake or BigQuery, or create them with AI guidance
What "active customer" or "failed payment" means in your company.
Company knowledge
Import it from documents or capture it as your team works with AI, then have your data owners approve it
The rules your team applies, for example when a payment counts as failed or a customer as active.

A definition for "Payments (example table)", for example, can tell the AI:

  • Other names people use: transactions, charges, receipts
  • What it is for: payment volume, failures and customer spend
  • Related records: Customers, Orders, Refunds
  • What key fields mean: pay_ts is the time of the payment, amt_net is the amount after fees, cust_id is the customer, and stat_cd is the payment status

Connect AI also learns from use: corrections and frequently asked questions turn into suggestions, and your data owners approve them before they apply.

Learn about the Context Engine

How do I control what my AI can access in CockroachDB?

You control it in Connect AI: every question runs live in CockroachDB, is checked against your CockroachDB permissions and your own policies, and is logged before an answer comes back.

  • Your CockroachDB permissions apply, and IT can tighten them. Connect AI enforces your CockroachDB roles. IT can add rules on top, down to the field, without changing anything in CockroachDB.
  • Sensitive data stays protected. Policies can warn on, redact or block sensitive data in requests and answers.
  • Every question is logged. Query-level logs show who asked, which AI tool was involved, what ran and what data came back. They can flow into your SIEM, such as Splunk or Datadog.
  • Access can be shut off in seconds. Revoke one user, disable one connection, or lock down the whole account.
Learn about governance and observability

Which AI tools work with the CockroachDB MCP server?

Securely connect live CockroachDB data with any of these AI tools.

FAQ

Ready to get started? Try Connect AI + CockroachDB today.

Also available for analytics tools: Power BI, Tableau, Excel, AWS Glue and Azure Data Factory.