Set up Metabase in Metorial for Claude, ChatGPT and Cursor
Share Metabase with your team in Claude, ChatGPT and Cursor through Metorial: username & password or API key sign-in, 16 tools (6 read-only).
To give your team Metabase in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Metabase integration in a Metorial portal, and each person connects with a username & password. Agents can run and export saved questions, execute SQL or MBQL queries, inspect database and table metadata, and manage questions, dashboards, collections, users, groups, permissions, public links, and scheduled question alerts. The integration has 16 tools, 6 read-only, 1 write and 9 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Metabase in a portal and how each person connects
- What Metabase asks for when you connect, and where to find it
- How to keep the 6 read-only tools and reject the other 10
Before you start
- A portal with at least one access group
- A username & password from Metabase for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Username & Password (default) | Custom credentials | username, password and instanceUrl |
| API Key | API token | token and instanceUrl |
The portal and metorial setup use Username & Password unless someone picks another method.
Username & Password
To connect, a person enters these values:
username: Your Metabase email addresspassword: Your Metabase passwordinstanceUrl: The URL of your Metabase instance (e.g., https://your-metabase.example.com)
API Key
To connect, a person enters these values:
token: Metabase API key (created in Admin Settings > Authentication > API Keys)instanceUrl: The URL of your Metabase instance (e.g., https://your-metabase.example.com)
Setup settings
Whichever method you pick, setup also asks for:
instanceUrl: The URL of your Metabase instance (e.g., https://your-metabase.example.com)
Admin: share Metabase in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Metabase. Under Auth Method, keep Username & Password or pick another. For how members connect, choose Each person connects so everyone enters their own username & password, or Shared connection to enter one username & password for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Metabase.
Choose who gets it
Add the access groups that should see Metabase. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Metabase integration. Once it exists, check which groups have it:
Employee: connect Metabase
In the portal
Open Metabase in the catalog
Sign in to your portal and open Metabase. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your username & password (username, password and instanceUrl).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses Username & Password. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Metabase connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as search and list_questions, and lose the write tool manage_database, and the 9 destructive tools, such as manage_user or manage_alert.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 16 tools, minus any you rejected. list_questions takes no input. It lists saved questions (cards) in Metabase with optional filtering.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (6)
list_dashboards: List dashboards in Metabase with optional filtering.list_questions: List saved questions (cards) in Metabase with optional filtering.search: Search across all Metabase objects — questions, dashboards, collections, databases, and tables.get_current_user: Return the Metabase user represented by the current connection.export_question_results: Run a saved question and return its complete CSV, JSON, or XLSX result as a downloadable file.get_table_metadata: Inspect a table and its fields before building an MBQL query or understanding available data.
Write tools (1)
manage_database: List connected databases, retrieve database details and metadata, or trigger a sync/rescan. Needsaction.
Destructive tools (9)
execute_query: Execute an ad-hoc query or run a saved question's query against a connected database.manage_dashboard_cards: Add or remove question cards from a dashboard. NeedsactionanddashboardId.manage_dashboard: Create, update, retrieve, copy, or archive a dashboard in Metabase. Needsaction.manage_alert: Create, update, retrieve, list, or archive scheduled alerts for saved questions. Needsaction.manage_permissions: Manage permission groups and group memberships in Metabase. Needsaction.manage_user: Create, update, retrieve, deactivate, or reactivate a user in Metabase. Needsaction.manage_question: Create, update, retrieve, or archive a saved question (card) in Metabase. Needsaction.manage_public_link: Generate or revoke public sharing links for questions and dashboards in Metabase. Needsaction,resourceTypeandresourceId.manage_collection: Create, update, retrieve, list, or archive collections in Metabase. Needsaction.
Triggers
Metabase has 1 trigger, which fire on events in Metabase:
alert_webhook: Receives webhook notifications from Metabase alerts.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Metabase there
- Tool permissions: tool filters and what employees see
- Metabase on metorial.com: the integration overview