Agents & MCP
Outside agents such as Claude Code, Cursor, Claude Desktop, or a data agent your team built can use Vuon over the Model Context Protocol (MCP). Vuon runs two kinds of MCP server on your workspace, each for a different job.
Running a Slack bot or another agent that many people talk to? Start with Connect your data agent. It takes four steps, with code for LangGraph, the Claude Agent SDK, the Vercel AI SDK, Pi, OpenCode, and the MCP SDKs.
The two kinds of server
Both live on your workspace host (https://<workspace>.vuon.ai) and accept either an OAuth sign-in or an API key.
| Vuon server | Governed query server | |
|---|---|---|
| For | Dataset context, interactive charts, metric definitions, Query checks evidence | Running SQL on your warehouse, checked, capped, and recorded |
| URL | https://<workspace>.vuon.ai/api/mcp | One per warehouse, such as https://<workspace>.vuon.ai/api/mcp/bigquery |
| Tools | whoami, explore_context, explore_dataset, metric tools, Query checks tools | The tools of the warehouse's own MCP server, such as the nine tools of Google's BigQuery MCP server |
| Who the call runs as | OAuth: the signed-in person. API key: the member who created the key, limited by the key's scopes | Queries are attributed to a client (one per agent) and run on that client's warehouse connection |
| Guide | Vuon MCP server | BigQuery, Snowflake, Databricks, Redshift |
The Vuon server is not tied to one warehouse. explore_context searches Vuon's catalog and metric definitions, the metric tools read and create metrics, and explore_dataset runs through the same governed path as Vuon Explore on the dataset's own connection. None of them is specific to BigQuery, so a workspace on another warehouse can use them now. explore_dataset only reaches connections that Vuon's servers can query, not ones that run through the Vuon desktop app. A key created for an agent's client can use it; a personal API key can't (see explore_dataset). See data warehouses for what Vuon connects to.
Each server is switched on per workspace and is off by default. Ask Vuon to enable them for you (your account manager or support@vuon.ai). The two are independent: you can enable either one without the other. Until a server is enabled, requests to it fail with a 403 that says so.
Governed query servers by warehouse
A governed query server is a drop-in replacement for the warehouse's own MCP server: the agent keeps the same tool names and arguments, and Vuon checks each query with its SQL checker, holds it to the client's caps, runs it on your connection, and records it on Query checks under the agent.
| Warehouse | Governed query server | Guide |
|---|---|---|
| BigQuery | A drop-in for Google's BigQuery MCP server at /api/mcp/bigquery | BigQuery MCP |
| Snowflake | A drop-in for Snowflake's managed MCP server at /api/mcp/snowflake | Snowflake MCP |
| Databricks | A drop-in for Databricks' managed MCP server for Databricks SQL at /api/mcp/databricks | Databricks MCP |
| Redshift | A drop-in for the AWS Labs Redshift MCP server at /api/mcp/redshift | Redshift MCP |
Clients, enforcement modes, caps, tool switches, and attribution work the same way on every governed query server. The BigQuery guide describes them in full.
Recommended setup
If an agent needs to look at your data, and your workspace has the Vuon server and a governed query server for your warehouse enabled, give it both:
- Run every warehouse query through the governed query server. Vuon checks each query before it runs, holds it to the client's caps, runs it on your connection, and records it on Query checks under the agent.
- Use the Vuon server for everything else.
explore_contextfinds the tables and metrics that matter, and the metric tools read metric definitions.
The agent adds both servers to its MCP config, with the same key for both. This mcpServers JSON (used by Cursor, Claude Desktop, and most other clients) shows the shape, using BigQuery as the warehouse. The config Vuon generates for a client names the servers vuon-<client slug> and vuon-bigquery-<client slug>, but any names work:
mcpServers JSON
{
"mcpServers": {
"vuon": {
"type": "http",
"url": "https://<workspace>.vuon.ai/api/mcp",
"headers": {
"Authorization": "Bearer sk_live_YOUR_KEY"
}
},
"vuon-bigquery": {
"type": "http",
"url": "https://<workspace>.vuon.ai/api/mcp/bigquery",
"headers": {
"Authorization": "Bearer sk_live_YOUR_KEY",
"X-Vuon-Environment": "production"
}
}
}
}
For Claude Code, add each server with claude mcp add:
Claude Code
claude mcp add --transport http vuon https://<workspace>.vuon.ai/api/mcp \
--header 'Authorization: Bearer sk_live_YOUR_KEY'
claude mcp add --transport http vuon-bigquery https://<workspace>.vuon.ai/api/mcp/bigquery \
--header 'Authorization: Bearer sk_live_YOUR_KEY' \
--header 'X-Vuon-Environment: production'
An admin creates the key when adding the agent's client; see Set up a client. What a client key can reach, and who it acts as, is described once, under API keys on the Vuon server page.
Admins can turn individual tools off for each client; see Tools. The setup Vuon shows contains both servers only where your workspace has the Vuon server enabled and the client has a Vuon-server tool a key can reach turned on. Otherwise it contains only the governed query server.
Remove Google's own BigQuery MCP server from the agent's config. The tool names are identical, and only Vuon's server checks, caps, and records the agent's queries.
Connecting
Both kinds of server authenticate the same way.
- OAuth sign-in. A client that supports MCP authorization is sent to sign in when its first request gets a
401. The person signs in to Vuon, must be a member of the workspace, and gets the access their role grants in the app. On the BigQuery server, the OAuth application becomes a client automatically. - API key. Send the key as
Authorization: Bearer sk_live_.... For a governed query server, admins create keys for a specific client; see Set up a client.
The BigQuery server accepts only these two kinds of credential. Vuon's own in-app agents and signed-in browser sessions are refused: the in-app agent queries through its own tools.
What each server is not for
- The Vuon server runs SQL only on a BigQuery connection an admin gave the agent's client, with its own tool names (
run_sql). An agent built on Google's BigQuery tools keeps them by using the governed query server. - The BigQuery server answers for one BigQuery project only, runs read-only queries only, and has no search, chart, or metric tools.
FAQ
Do I need both servers?
No. An agent that only needs to run SQL against BigQuery can use just the BigQuery server. An agent that only needs dataset context or metrics can use just the Vuon server. Agents that explore and then query usually want both.
Which server do I point an existing BigQuery MCP setup at?
The BigQuery server. Change the server URL to https://<workspace>.vuon.ai/api/mcp/bigquery, add the key, and keep the agent's prompts and tool names as they are. Every call must name the BigQuery project of the client's connection as its projectId.
Can I use this with Snowflake, Databricks, or Redshift?
Yes. Each has its own governed query server: see Snowflake, Databricks, and Redshift. The Vuon server is not specific to any warehouse.
Where do I see what an agent did?
Queries from a governed query server are recorded on Query checks (Settings → Query checks, workspace admins only) under the agent's client. See where queries show up.