metabase-flightsql-driver: Skill for Claude Code

.claude/skills/metabase-api/SKILL.md

metabase-api is a skill for Claude Code from J0hnG4lt/metabase-flightsql-driver. It costs 63 tokens per session (741 once invoked), scanned B, original, Apache-2.0.

A cookbook for controlling a local Metabase installation through its REST API or connected tools. Metabase is an open-source application for querying databases and building charts, cards, and dashboards.

In plain words
What is it for?
Checking Metabase health, listing databases, reading metadata, retrieving or running cards, inspecting dashboards, and scripting filtered queries in a Docker Compose setup.
Why use it?
It removes the need to look up authentication details and API requests for common Metabase tasks. It also explains how to pass filters and connect dashboard parameters.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is J0hnG4lt/metabase-flightsql-driver's own configuration. It tells Claude Code how to work on metabase-flightsql-driver itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything metabase-flightsql-driver configures →

Reuse

Borrowing it

Nothing to install: this file belongs to J0hnG4lt/metabase-flightsql-driver. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/J0hnG4lt/metabase-flightsql-driver/main/.claude/skills/metabase-api/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/J0hnG4lt/metabase-flightsql-driver

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metabase-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/j0hng4lt/metabase-flightsql-driver/metabase-api/github.svg)](https://agentmods.dev/skills/j0hng4lt/metabase-flightsql-driver/metabase-api)
Your own site
<a href="https://agentmods.dev/skills/j0hng4lt/metabase-flightsql-driver/metabase-api"><img src="https://agentmods.dev/badge/skills/j0hng4lt/metabase-flightsql-driver/metabase-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metabase-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/j0hng4lt/metabase-flightsql-driver/metabase-api"><img src="https://agentmods.dev/badge/skills/j0hng4lt/metabase-flightsql-driver/metabase-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00741
Opus 5 $0.00032 $0.00370
Sonnet 5 $0.00013 $0.00148
Haiku 4.5 $0.00006 $0.00074

Measured 9d ago against content hash 9a407d24dcfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

metabase-api scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

Prefer MCP when available: `.mcp.json` runs `@imlewc/metabase-server` against `METABASE_URL=http://localhost:3000` with that key (tools: list/execute cards, dashboards, SQL). Export `METABASE_API_KEY` from `.env` before

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:3000/api/health
.claude/skills/metabase-api/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metabase API Cookbook (compose stack)

Auth: python scripts/metabase_setup.py creates the admin user and writes METABASE_API_KEY to .env. All calls: -H "x-api-key: $KEY".

Prefer MCP when available: .mcp.json runs @imlewc/metabase-server against METABASE_URL=http://localhost:3000 with that key (tools: list/execute cards, dashboards, SQL). Export METABASE_API_KEY from .env before starting Claude Code. The compose Metabase (≥ v0.60) also ships the official MCP server at /api/metabase-mcp (Admin > AI > MCP; OAuth browser flow — interactive use only).

Endpoints

curl http://localhost:3000/api/health
curl -H "x-api-key: $KEY" http://localhost:3000/api/database
curl -H "x-api-key: $KEY" http://localhost:3000/api/database/{id}/metadata
curl -H "x-api-key: $KEY" http://localhost:3000/api/card/{id}
curl -H "x-api-key: $KEY" http://localhost:3000/api/dashboard/{id}
# run a card with parameters:
curl -X POST -H "x-api-key: $KEY" -H "Content-Type: application/json" \
  http://localhost:3000/api/card/{id}/query \
  -d '{"parameters":[{"type":"string/=","value":["Delivered"],"target":["dimension",["template-tag","status"]]}]}'

Connection details note: when creating databases via POST /api/database, plain token works, but the UI stores secret-typed fields as token-value — test both shapes when touching auth code.

Field filters

Single table: SELECT * FROM orders [[WHERE {{status}}]]

With JOINs the template tag must carry the table alias:

{"status": {"id": "status", "name": "status", "display-name": "Order Status",
            "type": "dimension", "dimension": ["field", <field_id>, null],
            "widget-type": "category", "alias": "o.status"}}
SELECT * FROM orders o JOIN customers c ON o.customer_id = c.customer_id
WHERE 1=1 [[AND {{status}}]] [[AND {{country}}]]

Dashboard parameters

"parameters": [
  {"id": "status", "name": "Order Status", "slug": "status", "type": "string/=", "sectionId": "string"},
  {"id": "date_range", "name": "Date Range", "slug": "date_range", "type": "date/all-options", "sectionId": "date"}
]

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 62 lines · 63 tokens per session scan B 9a407d24dcfa

Subscribe to this mod's changes

metabase-api is a skill published in the GitHub repository J0hnG4lt/metabase-flightsql-driver (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 63 tokens to every session and 741 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (reads mcp configuration, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.