Skip to main content

Agent-first Metabase MCP server with a pluggable, table-scoped query-guardrail layer.

Project description

metabase-mcp-pro

An agent-first Model Context Protocol (MCP) server for Metabase with a pluggable, table-scoped query-guardrail layer.

It combines the lean ergonomics of Metabase's first-party MCP (guided MBQL builder, URI-addressed reads, pagination) with the full reach of the Metabase REST API (models, metrics, dashboards, admin — plus a generic API passthrough so nothing is out of reach), and adds the layer neither has: query guardrails that are safe-by-default, explicitly overridable, and never silently filter, plus an output sanitizer that strips connection secrets and trims token bloat.

White-label

No embedded brand, no environment defaults, no shipped table registry. Everything organization-specific (which tables are CDC, which need crawler exclusion, the vetted-query catalog) is supplied at runtime via env / config.

Configure

Env var Purpose
METABASE_URL Metabase base URL (required; no default)
METABASE_API_KEY API key, sent as x-api-key
METABASE_MCP_GUARDRAILS_CONFIG path to a guardrails.yaml (see examples/)
METABASE_MCP_READONLY 1 to hard-disable all writes

Run

uvx metabase-mcp-pro

Requires only uv — it installs the package from PyPI on demand.

Use it in another project

It's white-label, so any project reuses it by adding one MCP-server entry and supplying its own config. Drop this into a plugin manifest's mcpServers (or ~/.claude.json):

"metabase": {
  "command": "uvx",
  "args": ["metabase-mcp-pro"],
  "env": {
    "METABASE_URL": "https://metabase.your-org.com",
    "METABASE_API_KEY": "...",
    "METABASE_MCP_GUARDRAILS_CONFIG": "/path/to/your-project/guardrails.yaml"
  }
}

Each consumer brings its own METABASE_URL, API key, and guardrails.yaml (start from examples/guardrails.example.yaml) — nothing project-specific is baked into the package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metabase_mcp_pro-0.1.0.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metabase_mcp_pro-0.1.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file metabase_mcp_pro-0.1.0.tar.gz.

File metadata

  • Download URL: metabase_mcp_pro-0.1.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metabase_mcp_pro-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e6c99b26eba65640e57d7a1d342d6bb89d391d608499e41e7e02870bf0d253c
MD5 17a8a2633d8b33bce6f6d47771095b8d
BLAKE2b-256 1626bdd6f29bf532e7222abdcbfc5ad2aa4d6ddfa0554dc925538e1efdce0cb5

See more details on using hashes here.

File details

Details for the file metabase_mcp_pro-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: metabase_mcp_pro-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metabase_mcp_pro-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd5160f0f2f079b39a7769e6456b72987a552e5dcb1c1802d144e527da6f228
MD5 6618036d8d11455eeef16b64bcdacf1e
BLAKE2b-256 338fd65310df9a847c8075ec78681bbf3d5601a727135d4b7d69c48185683dd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page