The surfaces-analytics plugin: full reference

The plugin's own page, plugins/surfaces-analytics/README.md, is the short version a directory listing shows. This is everything else: each skill, every setting, where it works, how to bring your own data, and exactly what it runs, reads and sends.

Data and analytics work with Surfaces UI: the judgment an agent needs to chart, clean, model and present data well, and a server that draws live tables, charts and dashboards over your own data inside the conversation.

New here? Surfaces UI in Claude is the short guide to what to install and the ways to show data.

It is for anyone working with data through an agent, not only for people building an app: an analyst asking a question of a warehouse, an analytics engineer reviewing a transformation, a data steward deciding how a column of personal data is treated, a designer checking a dashboard, a developer putting Surfaces UI components into a product.

What is in it

SkillUse it when
chart-standardsDrawing, choosing or reviewing a chart, sparkline or headline number, after Edward Tufte and Stephen Few
dashboard-designLaying out a dashboard or report so it can be read at a glance
human-in-the-loopAnything that changes data, or a decision a person must make, with an approval they can read and edit
connect-and-onboardConnecting a source and getting to know a dataset
data-cleaningFinding and fixing data problems, as a plan a person reviews
personal-dataReviewing columns for personal data and choosing a treatment for each
data-transformationsWriting and reviewing transformations and pipeline datasets
artifact-pagesShowing data as a page in a Claude artifact: a dashboard, report or table drawn by Surfaces UI components, over rows in the page or a live database through one of your connectors, with nothing installed
responsive-accessible-uiMaking a page work on any screen and for everyone, to WCAG 2.2 AA

The Surfaces MCP server gives the agent tools to list and describe tables and to show a data grid, a chart, a pivot table, a query result, a SQL editor, a schema explorer or a whole dashboard. Tools for the model return names, types and descriptions, never rows; the rows a person sees are fetched by the page for the window on screen. Queries are read-only.

You decide what the model sees

A page can show your data without Claude reading it. When Claude builds a live page with the artifact-pages skill, the page itself asks your database for its rows, through a connector you already have, and Claude is not in that path.

You choose how much Claude sees when it builds a page:

LevelWhat Claude readsWhat you get
Structure only (the default for a live page)Table and column names and types. No values.A live page: charts, tables and filters over your database
SummariesAlso grouped totals, such as churn by region. Claude asks first.The same page, with a headline and a reading of what stands out
Rows in the pageA summary it then writes into the pageA page that holds a copy and needs no connector to open

Every page says in its caption which level built it.

To set a limit that holds for every session, use the plugin's setting What Claude may read from your data: ask (the default: it starts from names and types and asks before reading more), structure only, summaries or rows. A choice other than ask cannot be raised from inside a conversation; Claude says the setting is in the way and where to change it. The setting is read when a session starts, in Cowork and the Code tab; a plain chat does not read it.

This is an instruction Claude is given and follows, not a lock on your database. It does not make a query impossible. If a limit must hold whatever happens, set it on the database account the connector signs in with.

What this does not promise, so you can judge it for your own data:

  • It covers what Claude does when building the page. If you ask Claude a question about the data in the same conversation, it will query the database to answer, and those rows go to Claude as usual.
  • The rows pass through the Claude app on their way from your connector to the page, as any connector result does.
  • A live page runs as whoever opens it. They need the same connector and are asked before the first query. An artifact's own network access is blocked, and a page from this skill is published with permission for that one connector and nothing else, so it has no way to send rows elsewhere.
  • Structure can be sensitive too. Column names are shared at every level. They can also be enough for Claude to recognise a table that is a copy of a public dataset, and it may then know values from that public file without having read yours. Seen in testing: asked to name three customers after building a page from column names only, Claude had read none, said so, and then correctly recalled the first three surnames of the well-known public file the demo table was copied from.

To check it yourself: in a new conversation, ask for a live page of a table, and then ask Claude, without using any tools, to name three values from it. It should have none to name.

Install

In Claude Code:

text
/plugin marketplace add teradata-labs/surfaces-ui
/plugin install surfaces-analytics@surfaces-ui

In another agent:

  • Skills. Each folder under skills/ is a standard Agent Skill (SKILL.md with name and description). Copy the ones you want into your agent's skills folder.
  • MCP server. Add it to any MCP client as a local server: command npx, arguments -y @surfaces-ui/mcp. In a repository, npx surfaces-mcp install --dir . writes that into .mcp.json for you.

Try it

  • "What tables are in the sample data? Show me revenue by month as a chart."
  • "Here are last quarter's support tickets. Make me a dashboard I can share with the team." (needs no server: the page is a Claude artifact)
  • "Review this dashboard against the chart standards and tell me what to fix."
  • "This customers table has emails and birth dates. Walk me through a personal data review before we share it."

Where it works

WhereSkillsInteractive views and your data
Claude Code, and the Code tab of the Claude desktop appYesYes. You are asked for the settings below when you install.
Cowork in the desktop app, in a session that runs on your computerYesYes, with the sample data. Cowork does not ask for settings, so for your own data keep a config in the .surfaces folder of your home directory (see below).
Chat (desktop, web and mobile)YesNot from this plugin: a chat does not start a plugin's local server. In the desktop app, install the desktop extension, one file you double-click, and views draw inline in a chat (seen 29 November 2026, over the sample data and a real Teradata system).

This follows Anthropic's published table of what each app loads from a plugin. The plugin has been installed and run in Claude Code and in the desktop app's Code tab; it has not yet been tried in Cowork.

Your own data

With no configuration the server serves six synthetic sample datasets (retail, healthcare, fraud, telco, transportation, manufacturing), so everything works straight after install. To use your own data, put a surfaces.config.ts in the project you open, naming your sources: Parquet, CSV or JSON files, Delta and Iceberg tables, a Postgres database, Teradata or DataFusion. The connect-and-onboard skill walks through it. Credentials are named in the config and read from the environment or a git-ignored .env.local beside it; they are never written into the config or shown to the model.

Pages over a connector you already have (start here)

If your database is already connected to Claude (the Teradata connector, or a Postgres, MySQL or DuckDB one), there is nothing to set up in this plugin. Ask:

  • "Use artifact-pages to build a live page of sales.orders."
  • "Build a dashboard on customer churn from my Teradata data."

The page is drawn by Surfaces UI components. A live page sorts, filters and totals in your database and is current each time it opens. The first time, Claude asks you to allow the page to use that connector's query tool.

Run this way against a real Teradata system on 28 November 2026: a grid over a 10,000 row table, sorted in Teradata, through a Teradata connector running on the same computer.

Inline views from this plugin's own server (advanced)

The plugin also starts a server that can draw views inline in the conversation from a database it connects to itself. In the desktop app the simpler way to the same server is the desktop extension, which works in a chat. Here, for Claude Code and the Code tab, the settings are:

SettingWhat to enter
Database typeteradata, postgres, mysql or duckdb. From the release after 0.6.0 it is worked out from the next two when left as sample data.
Advanced: the database's MCP serverThe command that starts your database's MCP server, such as uvx teradata-mcp-server, or its https:// address
Advanced: database URI (connection string)The one line that server signs in with, the same value you gave it when you set it up (for Teradata it starts with teradata://). It goes to your computer's credential store, never to Claude.
Advanced: connection string's variable name (rarely needed)Only the label that server looks for the connection string under, never the string itself. Leave it as DATABASE_URI unless that server's instructions name another.

The last two are a pair: the connection string is the value, and the variable name is the label it is handed over under. Where your database's MCP server is set up with "DATABASE_URI": "teradata://...", the left side is the variable name and the right side is the connection string.

After changing a setting, start a new session and ask Claude to "check the data setup": the server's check_setup tool says where its data comes from, whether it works, and what to do if not.

Where it has been seen to work: in a chat in the Claude desktop app, with the server added by hand (see "In a desktop chat" below), on 29 November 2026, a chart and the report builder drew inline and loaded their rows from the sample data. The same day, with the database settings in that entry, a grid over a 10,000 row Teradata table drew inline too. Where it did not: in that app's Code tab, on 28 November 2026, a view drew but could not load its rows ("IPC not available for MCP tool call"), because that tab did not let a view call back to its server.

Left as they are, the settings give you the sample data.

Dashboards with Surfaces UI

Claude has a dashboard type of its own, and for a plain "make me a dashboard" it uses that, whatever skills are installed. To get Surfaces UI components instead:

  • ask for it by name ("use the artifact-pages skill", or /artifact-pages), or
  • turn on the setting Use Surfaces UI for dashboards. Claude then builds dashboards, reports and data pages with artifact-pages unless you ask for something else. It works in Cowork and in the Code tab. A chat does not read plugin settings, so there you ask by name.

The setting is off until you turn it on.

With no project folder

The server looks for surfaces.config.ts (or .mjs) in the folder it is started in, and then in .surfaces in your home directory. Put a config there, with a .env.local beside it for the connection string, to use your own data where there is no project and no settings screen.

In a desktop chat

A chat does not start a plugin's server. The simplest way to add it there is the desktop extension: download surfaces.mcpb from this repository's releases, double-click it, and fill in its short form (instructions). The connection string goes to your computer's secure store.

Or, in Terminal, one command adds it to the app's own list of local servers and copies the sign-in from a database server the app already has:

bash
npx -y @surfaces-ui/mcp@0.7.0 setup

It lists the database servers the Claude app already has (a Teradata, Postgres, MySQL or DuckDB MCP server), asks which one Surfaces should show data from, and writes the entry for you: the same command, with its program's full path, and the same sign-in, copied inside the app's config file and never shown. With no database server there it asks for the details, the connection string typed unseen. setup --sample sets up the sample data only. Then quit the app fully, open it again, and start a new chat. The setup command is in the release after 0.5.0.

What it changes is one file, claude_desktop_config.json (on a Mac, in ~/Library/Application Support/Claude/), and in it only the entry named surfaces. A server that signs in with several separate settings (a host, a user and a password each on their own) cannot be copied yet, because Surfaces hands a database's server one connection string; the command says so and names the settings.

To write the entry by hand instead:

json
{ "mcpServers": { "surfaces": {
  "command": "npx", "args": ["-y", "@surfaces-ui/mcp@0.7.0"],
  "env": { "SURFACES_SOURCE_DIALECT": "teradata", "SURFACES_SOURCE_SERVER": "uvx teradata-mcp-server", "SURFACES_SOURCE_SECRET": "your connection string" } } } }

That file is plain text on your computer, so anyone who can read it can read the connection string; the .surfaces folder with a .env.local keeps it out of that file.

What it runs, reads and sends

  • Skills are text. They run nothing on your machine. A page made with artifact-pages is a Claude artifact: when someone opens it, their browser loads two scripts from the jsDelivr CDN, ECharts and @surfaces-ui/page, each at one exact version. A page built from rows holds a copy of those rows, visible to whoever the artifact is shared with. A live page holds no rows; it queries your database through a claude.ai connector as the person viewing it, after Claude asks them, and sends the rows nowhere else.
  • The MCP server is started on your machine by npx -y @surfaces-ui/mcp@<version>, pinned to one exact version of the @surfaces-ui/mcp package. The first start downloads that package and its dependencies from the npm registry; Node 22 or later is needed. It reads surfaces.config.ts and .env.local in the project folder or in .surfaces in your home directory, and connects only to the data sources that config or the plugin's settings name. When a setting names a database's MCP server, it starts that server (or calls its address) and hands it the connection string you entered, and nothing else of your environment. When a config names Delta or Iceberg tables, remote files or a Postgres catalog, DuckDB downloads its own extension for that from extensions.duckdb.org. It sends nothing to Anthropic or to the plugin's authors, and has no telemetry. Table names, column names, types and descriptions go to the model through the tools you see it call; row values do not, unless you ask the agent to read them some other way.
  • Two small scripts at the start of a session, both in this plugin (skills/artifact-pages/scripts/). prefer-pages.mjs reads the setting "Use Surfaces UI for dashboards" and reading-level.mjs reads "What Claude may read from your data". Each prints a few lines that are added to the session when its setting is on, and nothing when it is not. Neither reads a file, calls anything or sends anything. Both settings are off, or at ask, until you change them.

Support

Questions and problems: https://github.com/teradata-labs/surfaces-ui/issues. Guides: https://surfaces-ui.com.

Apache License 2.0.