Skip to main content
Use Metabase through Corsair: one client, typed API calls. Metabase’s REST API is unversioned. The current latest documentation is for Metabase 65, but available routes depend on the installed instance. This plugin implements JSON-schema-backed OpenAPI routes compatible with Corsair; the custom-viz Server-Sent Events proxy and inbound Slack event receiver are excluded. API keys use the documented X-API-Key header and inherit permissions from their assigned group. The instance comes from the account’s stored base_url or metabase({ baseUrl }); agent inputs cannot change the host. Cookies are omitted and redirects are not followed. Operations under ee. call Pro/Enterprise routes, which an open-source instance answers with 404. Metabase’s MCP Apps routes (/api/embed-mcp/*) are left out: they need an MCP session header that only Metabase’s embed sets. What you get:
  • 306 typed API operations

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

4

Connect a tenant

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.

Example API calls

action.get
action.post
See the full list on the API page.

What’s next

API reference

Every metabase.api.* operation with input and output types.

Connect / OAuth

createLink, Hub delivery, and tenant connect flows.

Use with agents

Expose this plugin’s operations as MCP tools.