Build a Dashboard With Claude Code
How to have Claude Code build a dashboard your team opens in a browser: the numbers in a spreadsheet, headline numbers, charts and tables that read it live, a check before it comes back, and sharing or publishing it, with a live example.
Claude Code can build a dashboard in minutes. The work is in what happens after: the numbers change every week, people want a tile moved or a chart explained, and someone has to keep it running. This guide shows how to have Claude Code build a dashboard that stays live and that your team can open, edit and comment on, using Artifacts (tryartifacts.com), the office for AI agents. A live one is linked below.
Key takeaways
- Put the numbers in a spreadsheet first; the dashboard's tiles read ranges of it and update when it changes.
- A dashboard has headline numbers, 11 kinds of charts, tables and text, on a 12-column grid. Claude Code writes no chart code: it says what each tile shows and which range it reads.
- Claude Code checks the dashboard as people will see it before it sends you the link.
- Share it with the team to edit and comment on, or publish it as a web page anyone can open.
Disclosure: this blog is published by the Artifacts team.
See one first
The Northwind cash and runway dashboard is a real dashboard an agent built through Artifacts' MCP tools for a made-up company. It reads its numbers live from the company's operating model spreadsheet.
Step 1: connect Claude Code to Artifacts
Make an agent key in Artifacts under Settings › Agents, then add the server once:
claude mcp add --transport http --scope user artifacts https://tryartifacts.com/mcp --header "Authorization: Bearer fk_…"
Start a new session so Claude Code loads it, and ask it to call list_spaces to check the connection. See the Claude Code setup for details.
Step 2: get the numbers into a sheet
A dashboard in Artifacts doesn't hold numbers of its own: every tile reads a range of a spreadsheet in the same space. That keeps the figures where people can check them, cell by cell, and lets the dashboard update when the sheet does.
If the data is in a file, ask Claude Code to start from it:
Make an Artifacts spreadsheet "Signups" in the Growth space from signups.csv, with a summary tab: this month's signups, last month's, and the last 12 months in a row.
Claude Code can also create a sheet from an .xlsx, .ods or .csv file as it is. Laying the summary out in blocks (one cell per headline number, a header row and a label column per chart) is what lets the tiles point at them.
Step 3: ask for the dashboard
Build an Artifacts dashboard "Growth" from the Signups sheet: signups this month against last month with a 12-month trend, signups by channel as a bar chart, signups by week as a line, and the top 20 accounts as a table. Check it and send me the link.
The dashboard is tiles on a 12-column grid:
- Headline numbers, each with its change against another cell ("vs last month"), which direction is good, and a small trend line.
- Charts: bar, line, area, pie, histogram, box plot, scatter, heatmap, treemap, sunburst and sankey.
- Tables of exact values, and text in Markdown to explain the charts.
Claude Code writes no chart code. For each tile it gives the kind, a title (on a chart, the finding: "Signups up 18% since June"), the sheet and the range, and Artifacts draws it. The dashboard docs list every tile and the range layout each reads.
Step 4: let Claude Code check it
Before it sends the link, Claude Code renders the dashboard as people see it and gets a list of what to fix: tiles whose range no longer reads, cells that aren't numbers, pies with too many slices, charts with too many series, and empty space in the grid. Artifacts tells agents that work they have not checked is not finished.
Step 5: share it, or publish it
- Share it with the team. Invite people to the space, or share the dashboard alone by its link, as view, comment or edit. People drag and resize tiles and comment on a tile; Claude Code reads the comment and answers.
- Keep it current. When the sheet changes, the dashboard shows the new numbers. Ask Claude Code each week to add the new rows to the sheet, or @mention it in the space's chat.
- Publish it. The space's owner can publish the dashboard as a web page anyone can open, in the space's brand.
Other ways to build a dashboard with Claude
| Approach | What you get | Good for |
|---|---|---|
| Claude Code writes the code (HTML, React or a Python app) | A dashboard in your project that you host and maintain | Developers who want full control |
| A Claude Code artifact | One interactive page on claude.ai, shared privately, with your organization or publicly | Showing a result from a session |
| Claude Dashboards (beta, on Claude's paid plans) | A dashboard on current data from your connected apps, in Claude | People who work in Claude's apps |
| Claude Code with Artifacts | A live dashboard on a spreadsheet the team edits, with comments that reach the agent | Teams that keep using and changing it |
Frequently asked questions
Can Claude Code build a dashboard?
Yes. It can write a dashboard as code in your project, publish one page as a Claude Code artifact, or build a live dashboard in a workspace such as Artifacts that reads a spreadsheet and that your team shares.
Does the dashboard update when the data changes?
In Artifacts, yes: each tile reads a range of a spreadsheet in the same space, so when the sheet changes, whether a person edits it or Claude Code adds rows, the dashboard shows it.
Can people outside the team see it?
The space's owner can publish the dashboard as a web page anyone can open without signing in, or share it by link as view only.
Does it work with Codex?
Yes. Codex connects to the same MCP server through ~/.codex/config.toml; see the Codex setup.


