Get set up before the workshop

Build Self-Service Analytics You Can Trust with Claude + MCP

A Maven Analytics workshop with Stephen Tracy. Thursday, December 3, 2026. 90 minutes.

In the session we'll connect Claude to a database, so you can ask a question in plain English and get an answer drawn from real data. This page explains what we'll use and how to get it running on your own computer first. Setup is optional. You can also watch on the day and try it afterwards.

Youask a question Claude Desktopwrites the query connector Easy route Advanced route MotherDuckyour data, in the cloud Secure tunnelthrough Cloudflare Metabasein Docker, on your laptop Youask a question Claude Desktopwrites the query connector MotherDuckdata in the cloud Easy route Secure tunnelthrough Cloudflare MetabaseDocker, your laptop Advanced route
Two routes to the same place: Claude answering questions from your data.

Choose your route

There are two ways to get ready. You only need one. If you're not sure, take the easy route: it gets you to the same result in a fraction of the time.

Easy route

with MotherDuck

Your data lives in a free cloud database. There is nothing to install except Claude, and nothing to keep running on your laptop.

Time
About 15 minutes
Cost
Free
You need
Claude Desktop, a MotherDuck account, and the workshop data file

Best if you're new to this, short on time, or using a work laptop that limits what you can install.

Start the easy route

Advanced route

with Metabase

You run Metabase, a full analytics tool, on your own laptop and give Claude a secure way in. This is the setup used in the live demo.

Time
60 to 90 minutes, plus up to a day of waiting if your domain is new to Cloudflare
Cost
The software is free. You need a domain name you own. A new one is a yearly fee that depends on the ending you pick (.com, .net and so on).
You need
Docker Desktop, Metabase, a Cloudflare account with a domain, and Claude Desktop

Best if you're comfortable pasting commands into a terminal and want the setup closest to what a data team would run.

Start the advanced route

Whichever you pick, start a few days early. If something doesn't work, you'll have time to sort it out, and there is a section below on getting Claude to help you.

What we'll use

Every tool here has a free option. The last column shows which route needs it.

ToolWhat it doesCostRoute
Claude Desktop The AI assistant you'll talk to. It turns your question into a database query and explains the result. Runs on Mac and Windows. The Free plan works, with one connector, which is enough for one route. A paid Pro plan is recommended: it allows more connectors and has higher usage limits, so you're less likely to run out of messages mid-session. Both
MotherDuck A database in the cloud. You upload a file in your browser and it becomes a table you can query. Free. New accounts start with a 7-day trial, then you choose the Lite plan, which is $0 and needs no credit card. Easy
Docker Desktop Runs ready-made apps in sealed boxes called containers, so you don't have to install and configure them by hand. Free for personal use, education and small businesses. Larger companies need a paid subscription, so check with IT before installing on a work laptop. Advanced
Metabase An open-source tool for charts and dashboards. It comes with sample data and a built-in way for Claude to connect. Free (open-source edition). Advanced
Cloudflare Creates a secure tunnel that gives the Metabase on your laptop a web address Claude can reach. Free plan. The tunnel needs a domain name on your Cloudflare account. Advanced

Why does the advanced route need a tunnel?

When Claude uses a connector, the request comes from Anthropic's servers on the internet, not from the Claude app on your computer. Something that only exists on your laptop is invisible to it. The tunnel gives your Metabase a public https:// address, so Claude has somewhere to knock. MotherDuck is already on the internet, which is why the easy route skips this.

Easy route: MotherDuck

Six steps, about 15 minutes. Tick each one off as you go; your progress is saved in this browser.

  1. Install Claude Desktop

    Go to claude.com/download, download the app for Mac or Windows, and install it like any other program. Open it and sign in, or create a free account.

    Already use Claude in your browser? Sign in to the desktop app with the same account.

    It worked when you can type a message in Claude Desktop and get a reply.

  2. Create a free MotherDuck account

    Go to app.motherduck.com and sign up. You don't need a credit card.

    About the trial

    New accounts start with a 7-day free trial. If yours ends before the workshop, MotherDuck will ask you to pick a plan before you can run queries again. Choose Lite. It costs $0 and is plenty for this session.

    It worked when you're looking at the MotherDuck workspace, with a sidebar on the left.

  3. Download the workshop data

    This is the dataset we'll explore together: 18,760 orders from a fictional online shop.

    Download orders.csv 1.7 MB

    Save it somewhere easy to find, like your Desktop. Leave the file exactly as it is. There's no need to open or tidy it.

  4. Upload the data to MotherDuck

    1. In MotherDuck, click New… at the top of the left sidebar, then choose Upload files.
    2. Select the orders.csv file you just downloaded.
    3. MotherDuck drafts a short query that turns the file into a table. Check the table is named orders, then run it.

    It worked when a table called orders appears in the left sidebar under your database.

  5. Connect Claude to MotherDuck

    1. In Claude Desktop, open Customize › Connectors.
    2. Click + to browse the connector directory and find MotherDuck.
    3. Open it and click Connect.
    4. A MotherDuck page opens in your browser. Sign in and approve the connection.

    It worked when MotherDuck shows as connected in your list of connectors.

  6. Ask your first question

    Start a new chat in Claude Desktop and send this:

    List all my databases on MotherDuck.

    The first time, Claude asks permission to use the MotherDuck tools. Allow it. Then try:

    How many rows are in my orders table?

    It worked when Claude answers 18,760. You're ready for the workshop.

    One permission to leave alone

    The connector can read your data and also change it. When Claude asks to use the tool that makes changes (query_rw), keep it on "ask every time" instead of "always allow". Reading is all we need.

Advanced route: Metabase

Ten steps in three parts. Allow 60 to 90 minutes, and start at least two days before the workshop.

Before you start: you need a domain name

The tunnel in Part 2 needs a web address that belongs to you, such as yourname.com, managed in a Cloudflare account. Use a personal or spare domain. Don't use your employer's domain, or one that already runs an important website or email, unless you manage it yourself and know what moving it to Cloudflare involves.

No domain and don't want to buy one? Take the easy route. You'll learn the same ideas.

Part 1: Run Metabase on your laptop

  1. Install Docker Desktop

    Download it from docker.com/products/docker-desktop and run the installer.

    On a Mac

    Pick the download that matches your chip. Click the Apple menu, then About This Mac: "Apple M1" or later means Apple silicon; otherwise choose Intel. Docker needs at least 4 GB of memory.

    On Windows

    Most PCs need the AMD64 download. The installer may ask to turn on a Windows feature called WSL 2 and restart. Say yes. Docker needs at least 8 GB of memory.

    Open Docker Desktop when it's installed. You can skip creating a Docker account if it offers to.

    It worked when Docker Desktop is open and shows that the engine is running.

  2. Start Metabase

    Open a terminal. On a Mac, press Cmd + Space, type Terminal and press Enter. On Windows, open the Start menu, type PowerShell and press Enter.

    Paste this command and press Enter:

    docker run -d -p 3000:3000 --name metabase metabase/metabase:latest

    Docker downloads Metabase and starts it. The download is a few hundred megabytes, and the first start can take several minutes while Metabase prepares itself. A long pause is normal.

    It worked when you open http://localhost:3000 in your browser and see the Metabase welcome screen. If the page won't load, wait two minutes and refresh.

  3. Finish the Metabase welcome screens

    Metabase walks you through a short setup. Create your admin account and pick a strong password you don't use anywhere else. Keep a note of the email and password; you'll need them again when Claude connects.

    When it asks you to add your data, skip that step. Metabase includes a Sample Database for a fictional online shop, and that's what we'll use.

    It worked when you land on the Metabase home page and can see the Sample Database.

Part 2: Give Metabase a web address

Right now Metabase only exists on your laptop. These steps create the tunnel that lets Claude reach it.

  1. Set up Cloudflare and your domain

    Create a free account at dash.cloudflare.com/sign-up. Then get a domain into that account, one of two ways:

    Buy a new domain from Cloudflare

    The quickest option. Follow Cloudflare's guide to register a new domain. Cloudflare sells domains at cost, and yours is ready to use as soon as the purchase goes through.

    Bring a domain you already own

    In the dashboard choose Onboard a domain, enter the domain, and pick the Free plan. Cloudflare then gives you two nameservers to enter at the company where you bought the domain. This change can take up to 24 hours.

    It worked when your domain shows as Active in the Cloudflare dashboard.

  2. Create the tunnel

    1. In the Cloudflare dashboard, go to Networking › Tunnels and select Create Tunnel.
    2. Name it metabase-workshop and select Create Tunnel again.
    3. Under Setup Environment, choose Docker. Cloudflare shows a command ending in a long string of letters and numbers. That string is your tunnel token.
    4. Copy Cloudflare's command into your terminal, but before pressing Enter, add -d --name cloudflared straight after docker run. It should look like this, with your own token at the end:
    docker run -d --name cloudflared cloudflare/cloudflared:latest tunnel --no-autoupdate run --token PASTE_YOUR_TOKEN_HERE

    The extra words make the tunnel run in the background and give it a name, so you can stop and start it from Docker Desktop later. Back in Cloudflare, wait for the tunnel to connect, then select Continue.

    Treat the token like a password

    Anyone who has it can run your tunnel. Don't paste it into chats, screenshots or shared documents.

    It worked when the tunnel shows as Healthy on the Tunnels page.

  3. Point a web address at Metabase

    1. On the Networking › Tunnels page, select your tunnel.
    2. Under Routes, select Add route, then Published application.
    3. Under Hostname, type metabase as the subdomain and choose your domain from the list.
    4. For Service URL, enter exactly:
    http://host.docker.internal:3000
    1. Select Add route.

    Why that odd address? The tunnel runs inside its own container, where "localhost" would mean the container itself. host.docker.internal is Docker's name for "the computer I'm running on", which is where Metabase is listening.

    It worked when you open https://metabase.yourdomain.com (with your own domain) and see the Metabase sign-in page. Give it a minute the first time.

Part 3: Connect Claude

  1. Tell Metabase its new address

    Metabase needs to know the address people use to reach it, or Claude's sign-in will fail.

    1. In Metabase, open the menu in the top-right corner and go to Admin › Settings › General.
    2. Set Site URL to your new address, for example https://metabase.yourdomain.com. Make sure it starts with https.

    It worked when the Site URL matches the address in step 6 exactly, with no extra slash or path on the end.

  2. Switch on Metabase's connection for AI tools

    1. Go to Admin › AI and open the MCP tab in the left sidebar.
    2. Turn on the MCP server switch.
    3. In the same place, turn on Claude in the list of apps allowed to show charts.
    4. Copy the MCP server URL shown in the settings. It ends in /api/metabase-mcp.

    You don't need to add an AI provider or an API key here. Claude brings its own intelligence; Metabase only supplies the tools.

    It worked when the MCP server URL starts with your https://metabase. address. If it starts with localhost, go back to step 7.

  3. Add the Metabase connector in Claude

    If you haven't yet, install Claude Desktop from claude.com/download and sign in.

    1. Open Customize › Connectors, click +, and find Metabase in the directory.
    2. Paste the MCP server URL you copied in step 8.
    3. If Claude shows sign-in options, keep the suggested ones: sign in now, register automatically, and no request headers.
    4. A Metabase page opens in your browser. Sign in with the admin account from step 3 and approve the connection.

    It worked when Metabase shows as connected in your list of connectors.

  4. Ask your first question

    Start a new chat in Claude Desktop. Use a regular Chat, not Cowork, so that charts can appear in the conversation. Send:

    What Metabase tools do you have?

    Allow Claude to use Metabase when it asks. Then try:

    I'm new to this Metabase. What data do we have about our online shop?

    It worked when Claude describes the Sample Database tables, such as Orders, Products and People. You're ready for the workshop.

Stay safe: switch it off when you're not using it

While the tunnel is running, your Metabase sign-in page is reachable by anyone on the internet who knows the address. Your password is what protects it, which is why it needs to be strong and unique.

When you're done for the day, open Docker Desktop, go to Containers, and stop both cloudflared and metabase. Start them again with the play button when you need them. Don't delete the metabase container, or you'll lose your setup and have to repeat steps 2, 3, 7 and 8.

Get help from Claude

If a step doesn't behave the way this guide says, Claude is a patient helper. Open a new chat, paste the prompt below, fill in the square brackets, and describe what you're seeing. Screenshots help too, as long as they don't show your tunnel token or password.

Please help me fix a setup problem. I'm not technical, so give me one step at a time and tell me exactly what to click or paste.

My setup: Metabase (open source) runs in Docker Desktop on my [Mac / Windows] laptop at http://localhost:3000. A Cloudflare Tunnel, also running in Docker as a container called cloudflared, publishes it at https://[my address]. The tunnel's service URL is http://host.docker.internal:3000. In Metabase, the Site URL is set to that same https address, and the MCP server is switched on under Admin > AI > MCP. I'm connecting from Claude Desktop using the Metabase connector with the address https://[my address]/api/metabase-mcp.

Check these in order and stop at the first one that fails:
1. Is Metabase running and reachable at http://localhost:3000?
2. Does the public https address show the Metabase sign-in page?
3. Does the Site URL in Metabase match the public address exactly?
4. Is the MCP server switched on?
5. Does the connector's sign-in complete?

Here is what's happening: [describe it, and paste any error message word for word]

Taking the easy route? You can skip the prompt and simply tell Claude which step of this guide you're on and what you see.

Optional: let Claude read Cloudflare's manual

Cloudflare has its own connector in Claude's directory. Add it from Customize › Connectors › + by searching for Cloudflare, and Claude can look up Cloudflare's current documentation while it helps you with the tunnel. This means two connectors in total, so it needs a paid Claude plan.

If something goes wrong

Both routes

Claude answers without using my data

The connector may be switched off for that chat. Click the + button next to the message box, choose Connectors, and turn on MotherDuck or Metabase. It also helps to name it in your question: "Using MotherDuck, how many orders…"

Claude won't let me add a connector

The Free plan allows one connector. Remove one you aren't using, or move to a paid plan.

I've run out of messages

The Free plan has a tighter usage limit than the paid plans. Claude tells you when it will reset. If you plan to follow along live for the full 90 minutes, a Pro plan gives you much more room.

Easy route

MotherDuck says my trial has ended

Choose the Lite plan when asked. It's free and doesn't need a card. Your data stays where it is.

Claude can't find the orders table

Check the table's name in the MotherDuck sidebar. If it was created with a different name, either tell Claude that name or upload the file again and name the table orders.

The row count isn't 18,760

The file was probably uploaded twice or changed before upload. Download a fresh copy from this page and upload it again without opening it first.

Advanced route

localhost:3000 won't load

Give it a few minutes on first start. Then open Docker Desktop and look under Containers: metabase should be running. If it's stopped, press play. If the command failed because the port is already in use, another program is using port 3000; close it and try again.

The terminal says a container named "metabase" already exists

You've run the command before, so Metabase is already set up. Open Docker Desktop, find metabase under Containers, and press play instead.

localhost works, but my https address shows a Cloudflare error

The problem is the tunnel, not Metabase. Check that the cloudflared container is running in Docker Desktop and the tunnel shows as Healthy in Cloudflare. Then check the route's Service URL is exactly http://host.docker.internal:3000, starting with http and not https.

My domain is stuck on "Pending"

If you brought an existing domain, Cloudflare is waiting to see the new nameservers. Double-check you entered both at the company where you bought the domain, and that a setting called DNSSEC is switched off there. The change can take up to 24 hours.

Claude says it failed to connect, and never asks me to sign in

This almost always means the Site URL in Metabase doesn't match your public address. Go to Admin › Settings › General and set it to your full https://metabase. address. Then remove the connector in Claude and add it again.

The MCP switch in Metabase is greyed out

AI features are turned off for the whole Metabase. In Admin › AI, make sure "Disable all AI features" is not switched on.

Claude answers in text, but charts don't appear

In Metabase, go to Admin › AI › MCP and turn on Claude in the list of apps allowed to show charts. In Claude Desktop, use a regular Chat; charts don't display in Cowork.

On workshop day

Five minutes before we start, run through the list for your route.

Easy route

  • Open Claude Desktop and start a new chat.
  • Ask "How many rows are in my orders table?" and check you get 18,760.
  • Keep MotherDuck open in a browser tab.

Advanced route

  • Open Docker Desktop and press play on metabase and cloudflared.
  • Wait a couple of minutes, then check your https://metabase. address loads.
  • Open Claude Desktop, start a new Chat, and ask "What Metabase tools do you have?"

Didn't get everything working? Come anyway. You'll be able to follow the whole session by watching, and this page stays up so you can finish afterwards.

Plain-English glossary

MCP (Model Context Protocol)
A standard way for AI assistants to plug into other software. Think of it as a universal socket: any tool that speaks MCP can be connected to Claude.
Connector
Claude's name for one of those plugs. Adding the MotherDuck or Metabase connector is what lets Claude see and query your data.
Text-to-SQL
Turning a question written in everyday language into SQL, the language databases understand. Claude does the translating.
Self-service analytics
People answering their own data questions without waiting for an analyst to write a query for them.
Semantic layer
A set of plain definitions that tell the AI what your data means, for example which column is revenue and how an "active customer" is counted. We'll build a basic one in the session.
Container
A sealed box holding an app and everything it needs to run. Docker Desktop is the program that runs these boxes.
Tunnel
A private, encrypted path from the internet to a program on your computer, so it can be reached without opening your whole machine to the outside.
Domain
A web address you own, like yourname.com. A subdomain is a prefix on it, like metabase.yourname.com.