Securing the Metabase MCP server

Turning on the Metabase MCP server lets AI clients such as Claude Code query your data, so authentication, permissions and tool approval must be set before anyone connects.

On this page

Why securing the Metabase MCP server comes before the first AI client connects

Turning on the Metabase MCP server gives an AI client such as Claude Code a route into your instance, so the security decisions belong before the first client connects, not after a pilot has already been running. A team that wants Claude Code or another MCP client to answer questions from Metabase data is, in effect, deciding which of its analytics content an external agent can reach, under which identity, and with which actions. Metabase's MCP client setup requires the client to authenticate against your Metabase instance, so every connection is tied to an account and its permissions. Each client also presents a set of tools, and those tools are approved or blocked on the client side. Those two controls, identity and tool approval, are where the first review should focus.

The reader's first task is to inventory what an MCP connection can see. Confirm which account a client will sign in with, which Metabase groups that account belongs to, and which databases, collections and tables those groups can query. The MCP server operates within Metabase's existing permissions, so an account that can see a sensitive table in the application will also expose it to an AI client using that account. Ask who owns the decision to approve each tool, and whether developers may approve tools on their own machines or whether the approval list is set by your security or data team. Because query results are sent back to the client, the data a client receives is the data that leaves your control, so the permission review must happen before the result set reaches a developer's laptop or a third-party model.

Plan this work as a gate in the rollout. Before the first client connects, you should have a tested service account or named user with the narrowest practical access, a written list of approved tools, a test plan that checks what a client can retrieve, and an owner who will repeat the check after each Metabase upgrade. Clients connected before Metabase 0.64 must sign in again after an upgrade, so upgrade planning and client re-authentication should be on the same checklist. Confirm the current MCP tool list and setup steps in the Metabase documentation for your version, since the tool set and its controls are the details most likely to change between releases.

How an MCP client request reaches your Metabase data

The request starts in the AI client's environment, where the user has approved which Metabase tools the client may call. It crosses into your network at the Metabase MCP endpoint, which authenticates the client before any tool runs. Metabase then applies the signed-in user's group, data and collection permissions before the query reaches the connected database. Check the trust boundary, the permissions on that account, and what the result returns to the client.

Requests cross the trust boundary only after client authentication, and results return through the same path.

Which MCP access settings fit which team

This table compares the main MCP access choices: how clients authenticate, which Metabase permissions the connecting user holds, whether tools are limited in the client, and whether result volume is restricted. Read each row against your team's data sensitivity and the number of people who will connect, and treat the setting names as items to confirm in the MCP docs.

Access choiceFits best whenTrade-offConfirm before rollout
Individual user accountsAnalysts and engineers each connect with their own Metabase login and expect their own permissions to applyEach person must complete setup, and clients need signing in again after upgrades to Metabase 0.64 or laterWhether a sign-in is required per client and how sessions expire, in the MCP docs
Shared credentials for a service clientA single automation or internal agent needs one fixed identity and no person is acting through itEvery query runs under one identity, so audit trails and data scope reflect the service, not the person askingWhich account the credential maps to and whether its permissions can be narrowed
Connecting user holds broad group accessThe team is small, the data is low sensitivity and read access across collections is acceptableAny AI client the user runs can reach everything that user can see in MetabaseWhich groups and collection permissions the user holds before connecting
Connecting user holds narrowly scoped group accessSensitive databases exist and AI use should match a specific analyst roleRequires designing groups and data permissions first, and some questions will fail for users with limited accessData and collection permissions for the group, tested with a sample question
Tools approved in the clientDevelopers want to allow read-only questions and block tools that change content or run broad actionsRelies on each client's approval settings, so consistency across developer machines needs a written standardTool list exposed by the MCP server and the approval options each client offers
All tools enabled by defaultA pilot group is trusted and the team accepts a wider tool surface for speedClients can call every exposed tool, which enlarges what a prompt injection or misconfigured client can doWhether any tool can modify Metabase content or change permissions
Result volume restrictedQuery results may contain personal or regulated records that should not be pulled into a chat sessionUsers may get partial answers or need to narrow questions, which slows analysisWhether the MCP server or the client offers a row or result cap, and its exact option name
Result volume unrestrictedData is aggregated or public and analysts need full extracts through the AI clientLarge or sensitive result sets can leave Metabase and enter the client's context, logs or model providerWhere results are processed and retained by the client and its model provider

Setting up the MCP server with checks at each step

This sequence turns on the Metabase MCP server for one AI client at a time, so each step is confirmed before the next adds access. By the end, you have a verified version, a scoped test user, one authenticated client, a minimal tool set and a test query that returns only what that user is allowed to see.

  1. Confirm the Metabase version is 0.64 or later

    Before anything else, check the version of your self-hosted Metabase instance in the admin settings and confirm it is 0.64 or later, since the MCP server setup described in the Metabase documentation depends on that release. If you are on an older version, plan the upgrade first using your own change process and a verified application database backup. The check is complete when the admin version reads 0.64 or higher on every node of your deployment. Confirm the exact version requirements against the MCP documentation before you rely on them.

  2. Create and scope a dedicated test user

    Create a separate Metabase user for MCP testing, not an administrator or a personal account, and place it in a group that can see only a small, non-sensitive set of databases and collections. Use the data permission and collection settings to restrict everything else. The output is a user whose access you can describe in one sentence. Verify it by signing in as that user in a private browser window and confirming that the data browser shows only the intended sources. Ask your security team to review the group before you go further.

  3. Connect one client through authentication

    Pick a single AI client, such as Claude Code, and connect it to the MCP server using the setup flow in the Metabase MCP documentation. The client authenticates against your Metabase instance during setup, so sign in with the test user, not an administrator. Record which identity the client is using and where the connection is configured on the workstation. The step is done when the client reports a successful connection and the Metabase audit or activity view shows the session under the test user's name. Confirm that your identity provider's session rules apply to this login.

  4. Approve only the tools the test needs

    The client lists the MCP tools Metabase exposes, and you approve or block each one inside the client. Start by blocking everything, then approve only the tools needed for the test query, such as searching for and reading an existing saved question or running a query. Leave write-oriented or broad tools blocked for now. Save the approval list in your configuration notes. The check is that the client's tool list shows only the approved tools, and a request to use a blocked tool fails. Review the full tool catalog against your own risk assessment before widening the list.

  5. Run a test query against a non-sensitive collection

    Ask the client to find or run a query against a collection you have marked as non-sensitive and that the test user can see. Keep the request simple, and use a result that you can verify directly in the Metabase interface. Note the question asked, the tool called and the rows or columns returned. The check passes when the result matches what the same user sees in Metabase, and nothing outside the collection appears. Log the test so you can reproduce it after future changes.

  6. Verify results match the user's permissions

    Compare the MCP result with the same query run by the test user in the Metabase interface, and then repeat the test for a question that targets a collection or database the test user cannot access. The expected outcome is a refusal or an empty result, not the data. Review what the client retained and what it sent to the model provider, because query results can leave the instance through the client. Only after this check passes should you consider widening access to other users or tools. Record the outcome and the sign-off in your change record.

  7. Re-authenticate clients connected before 0.64

    If any client connected to this instance before the upgrade to Metabase 0.64 or later, the Metabase MCP documentation says it must sign in again after the upgrade. Ask each owner of an earlier connection to remove the old session, sign in again, and repeat the tool approval and test query steps. The check is that each client shows a new authenticated session in the audit view, and no older session is still active. Keep this step on your rollout checklist for every upgrade that crosses the 0.64 boundary.

Which tools to approve for read-only and write-capable clients

Analysts who ask questions of existing data rarely need a client that can change anything in Metabase. For this group, approve only the tools that look up data sources, inspect the schema, and run queries under the signed-in user's permissions. Treat every query result as data leaving the instance and into the client's conversation history, so the question is which tables the user can already see in the Metabase interface.

  • Discovery tools: Approve tools that list databases, tables and saved content so the client can find what to query. Confirm with the vendor what each one returns.
  • Query execution tools: Approve only if the analyst needs ad hoc answers in the client. Results are returned to the client, so check which permissions apply to the run.
  • Content creation tools: Block tools that create or edit saved questions, dashboards or collections, since analysts can usually work in the Metabase interface.
  • Administrative tools: Block anything touching users, groups, settings or API keys. These should never be available to a read-only client.
  • Blocking method: Disable each unused tool in the client's settings, then confirm the approved list in a test session.

Before rollout, check that the account used for the client has the same data permissions you intend for that analyst, because the client inherits what the account can see.

Security risks in MCP access to Metabase data

An MCP client acts as a signed-in user who can run queries against your data, so the risks sit in where credentials live, what that user is allowed to reach, what text returns from queries, and whether anyone reviews the activity. The cards below cover each of these points and the checks to make before you turn the server on for anyone.

Credentials on developer machines

Each MCP client keeps a connection to your Metabase instance, and that connection depends on a session or key stored on the laptop running the client. A lost or unmanaged machine can carry access to every dataset its user can open. Ask which authentication method your setup uses, how long a session lasts, and how you revoke access when someone leaves or a device is retired. Confirm the answers in the current Metabase MCP docs before writing the policy.

Metabase MCP docs

Over-broad inherited group permissions

An MCP client does not get its own permission set. It works with the permissions of the Metabase user who signed in, so any group membership that user holds becomes the client's reach. A developer in a broad analytics group may be able to query tables that a narrower role would never see. Review the groups of every user who will use MCP, and confirm which data and collection permissions apply before you grant access.

Prompt injection through query results

Text stored in your tables can reach the AI model when query results return to the client. A field value, comment or product description can contain instructions that try to change what the assistant does next, such as running another query or sending data elsewhere. Treat query output as untrusted input, limit which tools the client may call, and keep the connected database read-only where you can. Test this with sample records that contain instruction-like text before you roll out.

Client-side tool approval as the only gate

Tool approval happens in the MCP client, so an approval prompt is a user decision rather than a server control. A user who approves everything, or a client configuration that auto-approves tools, removes the check entirely. Decide which tools each client may use, document that list, and confirm that the Metabase permissions behind those tools still hold if the client approves more than intended.

Logging and review of AI-driven queries

Queries sent through MCP run under a person's account, but they may not look like the queries that person writes by hand. Without review, you cannot tell which data an assistant read or whether a session pulled more rows than expected. Ask which Metabase activity records show MCP-originated queries, who reviews them, and how long they are kept. Those answers belong in your access review, so confirm them against your own logging setup before go-live.

Sign-in changes after an upgrade

Clients connected before Metabase 0.64 must sign in again after upgrading. If the upgrade happens quietly, developers may see unexpected sign-in prompts and assume a fault, or they may reuse older configurations that do not match the new setup. Plan the upgrade with a note to users, confirm which clients are affected, and check that re-authentication still goes through your approved sign-in method.

What data leaves Metabase through query results

Every row an MCP client receives from a query leaves the Metabase instance. When an AI client such as Claude Code runs a question through the MCP server, the result set is sent to the client's machine or service, and from there it may be included in prompts to whichever model provider the client uses. Metabase's own AI settings control where Metabot sends its prompts, but they do not control what an external MCP client does with results it has already received. Treat the client and its model provider as part of your data flow, and review them in the same way you would review any other system that holds production data.

Permissions decide what a result contains in the first place. Row and column level permissions are included only in the Pro and Enterprise plans, according to Metabase's pricing page, and the open source and Starter plans do not include them. On those plans, the account that authenticates the MCP client sees whatever its group's data permissions allow, which may be full tables with sensitive columns such as personal identifiers, salary or account numbers. Before you connect a client, confirm which edition you run, list the tables and columns the MCP user can reach, and decide whether an unrestricted read is acceptable for that data. If it is not, restrict the source database or the group before the client is connected, because the MCP server will not hide columns from a user who can already see them.

Confirm three things with the client vendor and your own network team before go-live: where the client sends prompts and query results, whether that traffic is logged or retained by the vendor, and which model provider and region handle it. Confirm also whether the client caches results on local disk or in conversation history, since those copies outlive the session. Record the answers in your data classification register so that the approved use is written down. Where the answers do not meet your requirements, limit the client to aggregated or non-sensitive collections, or choose a deployment that keeps model traffic inside your own network.

Limits to confirm before rolling out MCP access

The MCP server sits on top of the same permissions, plans and client behavior as the rest of your Metabase instance, so its limits are set by several parties at once. Confirm each item below in writing with Metabase and your client vendors before any AI client connects to production data.

Plan-level MCP capabilities

Confirm in writing which MCP capabilities and tools your plan includes, since plan tiers change over time and the pricing page is the reference for what each tier covers. Open Source and Starter plans do not include SSO, row and column level permissions, or usage analytics and auditing, so a team on those plans cannot rely on those controls to limit what an AI client sees. Ask Metabase which plan your instance runs and which controls that plan enables.

Metabase pricing

Supported AI clients and versions

Confirm which AI clients your team plans to use, such as Claude Code, and which versions Metabase supports for MCP connections. Client behavior around sign-in, tool approval and token storage differs between products, so test each client against a non-production instance first. Record the client version used in testing, because a client update can change how it stores credentials or presents tools.

SSO interaction on Pro and Enterprise

On Pro and Enterprise plans, SSO is available, so confirm how MCP client sign-in behaves when the instance uses SAML, OIDC or JWT. Check whether a client session continues after the user leaves the identity provider or after group membership changes, and whether disabling an account in your identity provider also removes MCP access. Ask Metabase to document this behavior for your specific SSO setup before you rely on it for offboarding.

People and groups docs

Data retention and training terms

Query results returned to an AI client leave your instance and enter the client vendor's service, so the vendor's retention and model training terms apply to that data. Ask each client vendor whether prompts and tool outputs are stored, for how long, whether they are used for training, and which contract or account tier controls those answers. Include the same questions for any proxy or gateway your team places between the client and Metabase.

Rate limits and result size behavior

Confirm how the MCP server handles large result sets, row caps, query timeouts and repeated tool calls from an AI client, because these determine how much warehouse data a single session can pull. Ask Metabase what limits apply by default and which ones you can configure. Then run a test that asks for a broad table to see whether results are truncated and whether the warehouse receives a heavy load.

Instance version and upgrade status

Confirm which Metabase version your instance runs, since clients connected before Metabase 0.64 must sign in again after upgrading. Check the version support page for the end-of-life date of your release and plan the MCP rollout against your upgrade window. Record the version in your change ticket so reviewers can match the tested behavior to the running release.

Metabase version support

Questions teams ask before securing the Metabase MCP server

Can our team secure the Metabase MCP server without outside help?

Yes, if your team already administers Metabase and your identity provider, and has time to test client behavior carefully. The work involves turning on the MCP server, deciding how each AI client signs in, setting which Metabase permissions apply to that access, and checking which tools each client can use. Teams that already run Metabase with SSO and group-based permissions usually have most of the skills needed. Teams new to MCP should plan extra time to test clients with a limited account before any production use. An outside partner adds value mainly when the scope spans several clients, several data sources and a formal security review.

What drives the effort of an MCP security project?

Effort rises with the number of things that need a decision. The main drivers are:

  • The number of AI clients, such as Claude Code, and how many people use each one
  • The number of permission groups and how much they differ in data access
  • The number of connected data sources and whether any hold sensitive records
  • The sign-in method, since a single provider with group sync is simpler to govern than local accounts
  • Whether tools need to be restricted per client, and whether results need review before they reach an AI model

Each added client or group multiplies the test cases. Ask for a quote that lists each client, group and data source in scope so the cost follows the actual setup.

Does the Metabase MCP server require a paid plan?

Confirm this against the current pricing page and the MCP documentation before you commit, because plan rules can change. Metabase's pricing page lists Open Source as free, and Starter and Pro with per-user pricing, with Enterprise priced by quote. Some controls matter more for MCP than the MCP feature itself: SSO, row and column level permissions, and usage analytics and auditing are listed as included only in the Pro and Enterprise plans. If your MCP plan depends on those controls, the paid plan may be the deciding cost. Ask your Metabase representative to confirm in writing which edition includes the MCP server and each access control you plan to use.

What does the work need from our internal team?

The work needs three inputs from your team. First, an administrator account on the Metabase instance and access to the identity provider, so sign-in and group mapping can be set and tested. Second, a test dataset or a read-only database account that mirrors production tables without exposing sensitive records, so tool behavior can be checked safely. Third, a security reviewer who can approve the permission model, the list of allowed tools and the data classes that AI clients may receive. Agree on who signs off each decision before testing starts. Delays usually come from waiting for approvals, not from configuration work.

How long does securing the Metabase MCP server take?

The duration depends on scope, and no fixed figure applies to every environment. Ask for a schedule built from the same drivers that set cost: the number of clients, groups, data sources and the sign-in method. Timing also depends on your change process, how quickly approvals return and whether a Metabase upgrade is needed first. Clients connected before Metabase 0.64 must sign in again after an upgrade, so plan a re-sign-in step and a retest if you are upgrading. A written scope with named deliverables and milestones is the most reliable basis for a timeline.

Does a retainer cover ongoing tool and permission review?

Ongoing review can be covered by a retainer, which is available for ongoing support, upgrades and continuous testing. Its scope should be written down before work starts. Ask whether it includes checking the list of allowed tools for each client after Metabase upgrades, reviewing group permissions when people change roles, and retesting after new data sources are connected. Also confirm who handles new AI clients and how quickly requests are answered. A retainer reduces the chance that permissions drift, but your internal owner still needs to approve changes.

Which data leaves Metabase through MCP query results?

Whatever a connected client is allowed to query can leave Metabase in query results and reach the AI model behind that client. The data exposed depends on the permissions of the signed-in account, the data sources it can reach and the tools it has been allowed to use. Review each group for sensitive columns and tables before enabling a client. Limit the data available to MCP accounts to what the use case needs, and note that row and column level permissions are listed as Pro and Enterprise features. Confirm your AI provider's data handling terms separately, since they govern what happens to prompts and results after they leave the instance.

How a DeployOpen scope covers MCP access reviews

A fixed-scope engagement for the Metabase MCP server starts by writing down the access model before any configuration changes. The scope document should name every AI client that will connect (for example, Claude Code on specific developer machines or a named analytics group), the Metabase accounts each client signs in with, the groups those accounts belong to, and the collections and databases those groups can reach. It should also list which MCP tools each client is allowed to use and which are blocked in the client, because tool approval happens on the client side and must be recorded as a decision, not left to defaults. Ask your partner to confirm in the quote how each client's sign-in is tied to a named Metabase user, so that query activity can be attributed later.

Test cases are the second part of the written scope, and they are what make the review repeatable. For each client and account, the scope should define checks such as: can the account see only the databases its group permits, can it reach collections outside its group, which tools respond, and what a query result contains before and after permission changes. Where your team wants an independent view, DeployOpen can run these tests through its security testing practice, including prompt injection attempts against the assistant, and deliver a findings report with fixes and a retest. Confirm with the partner whether the test plan covers the client machines as well as the Metabase instance, since data leaves through query results on both.

Agree on the acceptance evidence before work starts. Typical evidence includes the list of approved clients and accounts, screenshots or exported settings showing permission scope, the test case results with timestamps, and the upgrade check performed against the Metabase version your instance runs. Clients connected before Metabase 0.64 must sign in again after an upgrade, so the scope should include re-testing each client after any upgrade. DeployOpen prepares this evidence for your compliance and security teams to review; it does not issue audit reports or certifications, and any external assessment remains with your independent auditor.

How DeployOpen secures Metabase MCP access

DeployOpen plans and builds the Metabase MCP server setup inside your own infrastructure, from who may connect and which tools clients may call to how query results are handled. The work is documented and handed over so your security and data teams can review the configuration and operate it.

How we scope

  • Engagements are fixed-scope, with the MCP server, client list, tool exposure and permission model agreed in writing before work starts.
  • We confirm which Metabase edition and plan your instance runs, since SSO and row-level permissions depend on it.
  • We map which AI clients, such as Claude Code, will connect and which databases their query results could reach.

How we build

  • We configure client authentication against your Metabase instance and document how each client signs in during setup.
  • We set the permission scope for the MCP connection so it matches the data access your existing groups already have.
  • We test which tools each client can call and confirm that blocked tools are refused in both the client and Metabase.

How we hand over

  • You receive a written configuration record covering authentication, permission scope, approved tools and the data that leaves through query results.
  • We document the steps clients must repeat after a Metabase upgrade, including re-authentication for clients connected before Metabase 0.64.
  • Your security and data teams get a walkthrough so they can review the setup against their own access and logging requirements.

How we support

  • Ongoing support, upgrades and continuous testing of the MCP configuration are available as a retainer.
  • Retainer work can include re-testing tool permissions after Metabase upgrades and when new AI clients are approved.
  • Ask any provider to confirm in writing which environments, client types and review steps are included in the quote.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.