drafty
Snowflake logo

Build a Snowflake warehouse dashboard with Claude

Connect the Snowflake-managed MCP server to Claude, ask for a warehouse credit-usage and query-performance dashboard from your live account, and publish it to a link your team comments on directly — no BI tool, no screenshots pasted into Slack.

What you'll build
A self-contained warehouse dashboard — credits consumed this month, spend by warehouse, query latency and queue time, the heaviest queries, and storage growth — generated by Claude from your real Snowflake usage data, then published to a drafty.im/canvas/… link. Your team clicks the exact warehouse or chart they want changed and leaves a note. Claude reads the comments and ships a revised version to the same URL.

This is an end-to-end example: connect a data source over MCP, generate a dashboard from live numbers, and close the review loop on one link. Total time, start to shared link, is under fifteen minutes. The same shape works for any of the other examples — only the connection step changes.

Here's the finished dashboard, published to a canvas — click any tile or number to leave a comment, exactly as your team would:

Live canvas — comment on any elementOpen ↗

The three moving parts

  1. The Snowflake-managed MCP server gives Claude governed access to your account — warehouse metering, query history, storage, and the rest — through a controlled set of tools, all under the RBAC of the role you grant. You approve what it can touch.
  2. Claude pulls the numbers and writes a single self-contained HTML dashboard. You iterate on it in the artifact panel until it's right.
  3. Drafty turns that HTML into a stable link your team reviews. Comments pin to the exact element; Claude ships the fix to the same URL.

The generation step is fast now. The part this example is really about is the third one — getting the dashboard in front of people without losing their feedback to a screenshot circled in Preview.

Step 1 — Connect the Snowflake-managed MCP server

Snowflake runs a managed remote MCP server scoped to your account. You create the server and an OAuth security integration once in Snowflake, then point Claude at the server's URL — which looks like https://<account>.snowflakecomputing.com/api/v2/databases/<db>/schemas/<schema>/mcp-servers/<name>. Auth is OAuth, so no password or key lands in a config file.

In Claude Code:

claude
claude mcp add --transport http snowflake https://<account>.snowflakecomputing.com/api/v2/databases/<db>/schemas/<schema>/mcp-servers/<name>

Then run /mcp inside Claude Code and follow the OAuth prompt to authorize against your account. Authorize with a role that has read access to the usage views — this dashboard never needs to write.

In Claude Desktop: open Settings → Connectors → Add custom connector, paste the same MCP server URL, enter the client ID and secret from your OAuth security integration, and authorize through the Snowflake login that opens.

Safety first
Grant the MCP server a read-only role scoped to the account-usage and metering views (SNOWFLAKE.ACCOUNT_USAGE, SNOWFLAKE.ORGANIZATION_USAGE), and nothing more. The MCP server honors that role's RBAC, so it can only see what the role can see. Use OAuth, never paste a password or private key into a config file, and never commit credentials. The dashboard only reads; it has no reason to hold write permissions.

Step 2 — Pull the numbers

Ask Claude in plain language. It uses the MCP server's SQL and analyst tools to query your usage views and return real data:

claude
Using the Snowflake MCP server, pull everything we need for a warehouse dashboard: total credits consumed month-to-date and versus last month, credits broken down by warehouse, average and p95 query execution time, average queue (provisioning) time, the 10 most expensive queries by credits this week, and total storage with month-over-month growth. Read only from the ACCOUNT_USAGE views. Summarize the figures before you build anything.

Claude runs the queries, returns the figures, and you sanity-check them against the Snowsight usage and warehouse-activity pages before going further. This is the moment to catch a wrong assumption — a warehouse you forgot was running, credits attributed to the wrong cost center, a latency average skewed by one runaway query — while it's cheap.

Step 3 — Build the dashboard

Once the numbers look right, ask for the artifact:

claude
Build a single self-contained HTML dashboard from those figures. Month-to-date credits as the hero number with the change versus last month, then tiles for spend by warehouse, query latency (avg and p95), and queue time. A bar chart of credits per warehouse, and a table of the most expensive queries at the bottom. Clean, no external dependencies — inline the CSS and any chart code.

Claude renders it live in the artifact panel. Iterate in place — you're not regenerating from scratch:

Step 4 — Publish to Drafty for review

A Claude artifact link is a preview, not a stable URL — iterate the artifact and the link you already sent now shows the old version. Ask Claude to publish it to a Drafty canvas instead, so the link you share always stays current:

claude
Publish this dashboard to Drafty as a canvas and give me the shareable link.

Claude pushes the dashboard and hands back a drafty.im/canvas/… link that renders on any device. Send it — your team opens it in a browser, no login and no Claude account needed.

Step 5 — The review loop

This is the part that's not obvious until you've done it once.

A reviewer clicks the specific tile, chart, or number they want changed and leaves a pinned comment — "this credit total looks low, are we including serverless tasks?" The comment is anchored to that element, not floating in a Slack thread. Claude reads the comments through the CLI, reruns the relevant Snowflake query if needed, and pushes a revised dashboard to the same URL. The reviewer refreshes and sees the change; the thread stays attached to the element.

The mechanic matters because of what it removes. A Slack message about a chart produces "the number on the left looks wrong." A pinned comment on the actual tile produces "this — include serverless and Snowpipe credits in the warehouse total." One of those produces a correct revision; the other produces a guess.

Keeping it fresh

An MCP-generated dashboard is a snapshot — it holds the numbers Claude pulled when it built it; it doesn't re-query Snowflake when someone opens the link. For a weekly cost review or a board-ready snapshot, that's fine.

To make it a live canvas that always shows today's figures, copy this prompt — Claude sets up the refresh for you and schedules it to run on its own:

claude
Turn this Snowflake dashboard into a live canvas: every morning, re-pull the latest credit usage, query performance, and storage figures from Snowflake via the MCP server, rebuild the dashboard, and push a new version to the same canvas URL so the link always shows today's numbers. Schedule it to run daily on its own.

The link stays stable while the content updates underneath it — see keeping a canvas updated automatically.

What to watch for

Snowflake dashboard with Claude — FAQ

Do I need to paste my Snowflake password or key anywhere?
No. The Snowflake-managed MCP server authenticates over OAuth — you create a security integration in Snowflake, then Claude runs the login flow through a browser and you approve the consent screen. No password or private key lands in a config file. Grant a read-only role scoped to the account-usage views, never a writable one.
Is the dashboard live or a snapshot?
A snapshot. It contains the figures Claude pulled when it built the file; it does not re-query Snowflake when someone opens the link. To refresh it, ask Claude to repull and re-push to the same URL — or put that on a daily schedule so the stable link always shows current numbers.
Can my team comment without a Snowflake or Claude account?
Yes. The dashboard is published to a Drafty canvas link that renders in any browser. Reviewers click the exact element they want changed and leave a pinned comment with no login required. Only the person connecting Snowflake needs access to the account.
Is it safe to give Claude access to my Snowflake account?
Connect with a read-only role scoped to the metering and usage views, and a cost dashboard never needs more than that. The MCP server honors that role's RBAC, every tool call is mediated by the server, and in Claude you approve actions. Don't grant write or broad data access for a read-only reporting task.
How is this different from a Snowsight dashboard or a BI tool on top of Snowflake?
Snowsight and BI tools query live data against models and dashboards you maintain — the right choice for governed, standing reporting. This approach is for a fast, shareable snapshot you can spin up in minutes and iterate by talking to Claude, then collect feedback on inline. Different jobs: one is a standing system, the other is a quick reviewable deliverable.