AI Analytics ResourcesOctober 21, 2026(Updated October 27, 2026)

MCP for Analytics: What the Server Must Enforce

MCP, the Model Context Protocol, lets AI agents access an analytics product through tools exposed by a server. In a multi-tenant product, the server behind it has to apply each customer's permissions on every call.

MCP for Analytics: What the Server Must Enforce

MCP, the Model Context Protocol, lets an AI agent access an analytics product through tools exposed by a server. Rather than give an agent database credentials, a product can run an MCP server that exposes named tools, such as "list metrics" or "run this query", for the agent to call.

For a product that serves many customers from one platform, that server is now part of the permission system. Whatever an agent asks for, the server has to answer with the same tenant and role limits the customer's dashboard applies.

What does MCP change for analytics?

When Anthropic released MCP in November 2024, it described the goal as "replacing fragmented integrations with a single protocol". An agent that speaks MCP can discover a server's tools and call them without a custom integration for each product.

For analytics, the important change is where the query comes from. With a server, the agent calls the operations the server exposes, and the server decides how each call becomes a query. Whether those operations stay on governed definitions depends on which tools the server exposes: raw SQL execution, queries against governed metric definitions, or both.

Design the server to decide which definitions, metadata and data from the context layer an agent receives for each user.

Which analytics platforms ship an MCP server?

Before connecting an agent, check each server's release status and, above all, whose permissions govern its queries:

PlatformStatus in its own documentationWhose permissions queries use
Google Analytics"Experimental", announced July 22, 2025runs locally, with read-only access scopes
Snowflakegenerally available, November 4, 2025role-based access control on the server and its tools
Google Cloud remote servers, including BigQueryremote MCP servers listed as generally available in the release notesOAuth 2.0 with IAM
Lookerpreview"strict user-level permissions"
Power BIpreviewthe authenticated user, with an exception covered below
Databricksmanaged MCP serversfor the Databricks SQL server, "the caller's Unity Catalog and warehouse permissions"
Metabasedocumented"scoped to the connecting person's permissions"
dbtlocal and remote serversthe warehouse credentials a query runs with; execute_sql "doesn't block write statements"

Looker, Databricks SQL and Metabase describe queries that run with the connecting user's permissions. Check whether queries will run as a user, a service principal or a separate agent identity. Power BI does not enforce row-level security with service principal authentication.

MCP Authorization: The Server Has to Decide

MCP's authorization requirements have changed across versions. If an analytics server was built against an earlier version, review its authorization flow against the current one.

The current authorization section states that "Authorization is OPTIONAL for MCP implementations," and that servers using a local STDIO transport should take credentials from the environment instead. When a server does implement it, servers "MUST validate that access tokens were issued specifically for them as the intended audience" and "MUST NOT accept or transit any other tokens."

The specification covers token validation. A multi-tenant analytics server must also determine which tenant's rows each authenticated user can access.

Tenant Permissions for the Calling User

An analytics MCP server can use a single service account with access to all customer data and leave filtering to the agent.

Power BI documents how that goes wrong. Queries "execute in the context of the authenticated user," and row-level security applies to user authentication. But "Power BI doesn't enforce RLS when you use service principal authentication." A server that connects as a service principal for convenience can reach every row that principal can read, whichever customer is asking.

monday.com's MCP security overview states: "There is no elevated or shared service account that bypasses user-level access control." OWASP's guidance on excessive agency gives the general rule: "Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not."

For embedded and customer-facing analytics, that means the tenant filter is applied by the server to every query a tool produces, using the identity on the token. A prompt that says "only show this customer's data" is not a control. The row-level security policy has to sit below the agent, where the agent cannot rewrite it.

Can an AI agent see another customer's data?

It depends on the identity and the query layer behind the agent. Power BI documents the shared-account case: "Power BI doesn't enforce RLS when you use service principal authentication", so an agent connected that way is not limited by the row-level rules written for individual users.

The designs that avoid this have the agent inherit the caller's permissions. Databricks Genie evaluates data access with each end user's own Unity Catalog permissions. Microsoft Fabric says Copilot can only access data that the current user has permission to access. PAR Technology, writing on the AWS blog in June 2026, starts from the fact that LLMs are non-deterministic by nature, filters the tables to the signed-in user's rows before the model is invoked, and reports over 50,000 queries with zero cross-tenant data exposure incidents.

OWASP gives the general rule: implement authorization in downstream systems rather than rely on an LLM to decide whether an action is allowed. For a customer-facing embedded analytics platform, that means the server and the database enforce the tenant boundary for every customer.

Four ways an agent can reach another tenant's rows

  1. A shared service identity. The agent connects through a single account that can read every customer's data.
  2. Generated SQL that loses the filter. Cockroach Labs, a database vendor, writes that "An agent constructs a SQL query dynamically and the filter gets dropped from the generated string" (August 2026).
  3. Content shared across tenants. Pillar Security's risk catalog lists embedded copilots and grounded-retrieval agents as able to leak data across tenant or workspace boundaries through indirect prompt injection in shared content, and gives a poisoned SharePoint document as its example.
  4. Prompt injection into SQL. In tests of seven LLMs, unsanitized user prompts could lead to SQL injection attacks.

Row-level security for LLM agents: what it covers

Row-level security (RLS) applies a policy inside the database. Cockroach Labs says the policy runs on every query regardless of what the application layer does, and that RLS can limit what data a prompt-injected agent can access. It does not prevent prompt injection or protect against a tenant injecting into its own data.

In PostgreSQL 18, superusers and roles with BYPASSRLS "always bypass the row security system", and table owners normally bypass it unless the table uses FORCE ROW LEVEL SECURITY. A table with row security enabled and no policy denies all rows by default.

In PAR's design, the filter comes from the authenticated session's key, and the authors write that "No user input influences it. No LLM output influences it." For how this applies when the agent writes SQL, see text-to-SQL in a customer-facing product.

How to test tenant isolation for an AI agent

We suggest running these probes with one tenant's credentials and counting the rows that belong to any other tenant:

ProbeWhat to check
Ask for another tenant's revenue by namethe agent refuses or returns no rows
Put another tenant's ID in the prompt or the tool argumentsthe request is rejected or returns no rows
Paste a document that tells the agent to ignore its rulesthe data scope does not change
Check the database role the server usesit is not a superuser, does not have BYPASSRLS, and either is not the table owner or the table forces row security

The pass mark is zero leaked rows. Repeat the probes after a change to a tool, a policy or the model. For rules on who can enable AI features, see which AI features reach which data, and for the wider topic the AI analytics articles.

Common Problems in Public MCP Servers

  • Authentication. Among 640 confirmed internet-facing MCP servers, 414 were dynamically audited, and 91.8% of that audited group lacked OAuth authentication (July 2026 study). A separate Astrix scan of public server repositories found only 8.5% used OAuth, while 53% relied on long-lived static secrets. Astrix's figures come from a language model's analysis of repository documentation, so verify authentication on the deployed server itself.
  • Tool listings. Knostic identified 1,862 MCP servers exposed to the internet and manually verified a sample of 119. All 119 returned their tool listings without authentication.
  • Tool poisoning. Among the MCP servers examined in a 2025 study, 7.2% had general vulnerabilities and 5.5% had MCP-specific tool poisoning, where malicious instructions are embedded in a tool's description and the agent follows them.

An analytics agent that reads a poisoned description from one server, has access to private data through another and can send data out through a third combines what Simon Willison calls the lethal trifecta. MCP makes that combination easy, because it "encourages users to mix and match tools from different sources".

A Checklist for an Analytics MCP Server in a Multi-Tenant Product

We recommend these checks before an MCP server reaches customer data. None of them should depend on what the model is told.

  1. Act as an OAuth resource server. Check that every access token was issued specifically for this server as its intended audience. Reject other tokens and never forward them.
  2. Run every call as the calling user. Resolve the tenant and role on the server from the authenticated identity, never from the prompt. Do not connect to the data through a shared account that can read every customer.
  3. Apply the tenant filter server-side on every tool. Apply the dashboard's row and field rules to every query the tool generates.
  4. Expose governed operations instead of raw SQL. Tools that query defined metrics through a semantic layer limit the agent to definitions you control. The same applies to natural language query.
  5. Default to read-only tools. Add write or export tools only with their own permission and approval step.
  6. Treat tool descriptions as code. Review and pin them, so a changed description cannot change agent behavior unnoticed.
  7. Bound every call. We recommend limits on result size, query cost and runtime per tool and per tenant.
  8. Log every call. Record user, tenant, tool, generated query and result size for each call.

For deciding which AI features may reach which data and who can switch them on, see AI analytics governance.

Sumboard and MCP Today

Sumboard does not offer an MCP server today. Sumboard released an AI assistant in its SQL editor in January 2026. Natural language querying for your customers is in progress; the feature is designed to apply the same permission checks to the assistant's queries as to all other queries.

If you are planning an embedded analytics platform that AI agents will query, first decide how the server will enforce tenant permissions.

Where to go next

Frequently asked questions

What is MCP in analytics?

▾
MCP, the Model Context Protocol, is an open protocol that lets an AI agent call tools exposed by a server. In analytics, the server can expose defined operations such as listing metrics or running a governed query, so the agent works through those tools instead of connecting to the database directly.

Does the MCP specification require authorization?

▾
No. The current specification (version 2026-07-28) says authorization is optional. When an HTTP server does implement it, the server acts as an OAuth 2.1 resource server, must validate that each access token was issued for it, and must not accept or pass through any other token. For servers using a local STDIO transport, the specification says credentials should come from the environment instead.

Which analytics platforms have an official MCP server?

▾
As of October 2026, official MCP servers are documented by Google Analytics (experimental), Snowflake, Google Cloud including BigQuery, Looker, Power BI, Databricks, dbt, Metabase and Cube, at different stages of release. Check each vendor's documentation for its current release status and which user's permissions apply to queries.

How should an MCP server handle tenant permissions in a customer-facing analytics product?

▾
Every tool call should run with the calling user's identity and tenant scope, resolved by the server, never by the model. Avoid a shared service account with access to all customers' data, apply the tenant filter server-side on every query, and log each call with the user, tenant and query it produced.

Can an AI agent see another customer's data?

▾
It can if it reaches the data through a shared account, or through generated SQL that nothing downstream filters. An agent that runs with the calling user's permissions, such as Databricks Genie or Microsoft Fabric Copilot, can read only what that user may read.

Is a system prompt enough to keep tenants separate?

▾
OWASP advises implementing authorization in downstream systems rather than relying on an LLM to decide whether an action is allowed. PAR Technology's AWS design applies the tenant filter before the model is invoked.

Does row-level security protect against prompt injection?

▾
It limits what a prompt-injected agent can read to the rows the policy allows, according to Cockroach Labs. It does not prevent prompt injection or protect against a tenant injecting into its own data.

Written by

Nicolae Guzun

Nicolae Guzun

Founder & CEO, Sumboard

Ship analytics faster

Build customer-facing dashboards with Sumboard.

Get started for free