At a glance
- Availability: Experimental (how to enable).
- Auth: API key.
- Connection: The key from
METABASE_API_KEYis sent as thex-api-keyheader. - Docs: https://www.metabase.com/docs/latest/people-and-groups/api-keys
Credentials
Set these per environment. See Connect an integration.Setup
- Locate your Metabase instance: Note your instance hostname, e.g. acme.metabaseapp.com (Metabase Cloud) or your self-hosted domain. Every tool takes it as the required ‘host’ parameter. For local testing you can run Metabase with ‘docker run -p 3000:3000 metabase/metabase’.
- Create an API key: As an admin, go to Admin settings > Authentication > API keys, create a key, and assign it to a group whose permissions cover the databases and collections you need. Copy the key (shown once, prefixed mb_).
- Set the environment variable: Add the key to your .env as METABASE_API_KEY=mb_…
- Verify access: Run List Databases with your hostname as the host parameter.
- Metabase authenticates with an ‘x-api-key’ header
- Metabase is self-hosted or tenant-hosted, so tools require a ‘host’ parameter (hostname only, HTTPS is assumed) on every call
- The API key inherits the permissions of the group it is assigned to
Tools
Example prompts
- Search my Metabase instance for questions about a topic and run the most relevant one.
- Get one of my Metabase dashboards and summarize what each card shows.