Skip to main content
Glama
Tableau Knowledge MCP

Tableau Knowledge MCP


biztory-tableau-knowledge-mcp turns your site's Tableau Knowledge Graph API into twenty-three MCP tools, so an AI assistant (Claude, Cursor, VS Code, Cline, and others) can work with the graph in plain language:

  • "Which fields mean revenue, and where do they come from?"

  • "If the Superstore data source changes, which workbooks and dashboards are affected?"

  • "What business context is attached to Profit? Add: 'Profit is after returns, in EUR.'"

  • "How healthy is our graph, and what are the five highest-impact fixes?"

  • "Export Superstore to Apache Ossie so we can port it to Snowflake."

  • "Write the Business Preferences for the P&L dashboard."

  • "Add every Superstore data source on the site to the Sales graph."

  • "Ask Tableau's agent how many data sources the graph has, and check its answer."

It ships nine read tools (semantic search, node lookup, edges, lineage, impact, sources, semantic contexts, graph health, and a connection probe) and four write tools for semantic contexts, the business statements that make the graph useful to people and to AI (one turns a document into context). Five tools manage the graph itself: add and remove data sources and workbooks, create and update graphs, and ask Tableau's own agent a question to test its answers. Those go through the API behind the Tableau Knowledge web app, which Tableau doesn't document. Four more tools port semantic layers through Apache Ossie (formerly Open Semantic Interchange, OSI), the open standard that Snowflake, dbt, Power BI, Databricks, Tableau Next and others convert to and from. And one checks Business Preferences files line by line against the fields the agent will actually see.

See it in action

Replays of real tool results from a test site, with site-specific names removed. Regenerate with docs/images/render_demo_gifs.py.

Why it's different

  • Ask by meaning, not by id. Every read tool takes a node id or a description ("the net sales field"). Descriptions resolve through the graph's own semantic search, and the answer says which node it picked, with the match score and runners-up, so a wrong guess is visible instead of silent.

  • Answers, not payloads. impact_analysis groups and counts everything downstream by type; lineage adds node and edge counts; graph_health caps hundreds of suggestions to the top ones while keeping every total.

  • Errors tell the model what to do next. Tableau's error codes become concrete steps (site_not_entitled → an admin must enable Knowledge; no_active_graph → pass a graph_id; no embedder → use exact ids), with the trace_id kept for support. Rate limits are retried with Retry-After.

  • Writes you can trust. Only semantic contexts and a graph's sources can be written (the latter through Tableau Knowledge's undocumented web-app API, which can change without notice). Write tools take exact ids (a fuzzy match never decides where a write lands), validate before sending, carry honest MCP annotations so clients ask first, and delete_semantic_context returns what it deleted.

  • Port your semantic layer. export_to_ossie turns a published data source into a validated Ossie model, with Tableau calcs translated to portable SQL wherever that is exact and a loss report for everything else. import_from_ossie brings descriptions, synonyms and definitions from any Ossie model back into Tableau Knowledge, with a reviewable plan first.

  • Tiny and hardened. Stdio only (no inbound port), secrets from env only, HTTPS enforced, redirects refused, ids encoded so they can never reach another endpoint, fuzzed parsers, and two runtime dependencies: the MCP SDK and PyYAML (stdlib urllib for HTTP).

Requirements

Tableau Knowledge is a Tableau Cloud feature (September 2026 and later, Tableau+ license); it is not available on Tableau Server. Any user can read the graph, filtered by their content permissions. Writing semantic contexts needs the Creator role.

Related MCP server: Tableau MCP Server

Quickstart

You need uv (curl -LsSf https://astral.sh/uv/install.sh | sh) and a Tableau Personal Access Token.

Claude Code, one line:

claude mcp add tableau-knowledge \
  -e TABLEAU_SERVER=https://10ax.online.tableau.com \
  -e TABLEAU_SITE_CONTENT_URL=YourSite \
  -e TABLEAU_PAT_NAME=my-token \
  -e TABLEAU_PAT_SECRET=the-full-secret \
  -- uvx biztory-tableau-knowledge-mcp

That's all. uvx fetches the package from PyPI and runs it in an isolated environment; nothing to clone or install. Then ask: "Use server_info: what graphs does my site have?"

Configuration

All configuration is via environment variables (set them in your client's env block, never on the command line).

Env var

Required

Default

Description

TABLEAU_SERVER

yes

n/a

https://<pod>.online.tableau.com. Any URL from your browser works; the path is stripped.

TABLEAU_SITE_CONTENT_URL

yes

""

Site slug (the part after /#/site/).

TABLEAU_PAT_NAME

yes¹

n/a

Personal Access Token name.

TABLEAU_PAT_SECRET

yes¹

n/a

PAT secret: the whole string, do not split on :.

TABLEAU_KNOWLEDGE_GRAPH_ID

no

primary graph

Default graph for every tool. server_info lists the site's graphs; each tool also takes a graph_id.

TABLEAU_TIMEOUT

no

60

Per-request timeout (seconds).

TABLEAU_API_VERSION

no

auto

REST version used for sign-in; else read from serverinfo. (The Knowledge API itself is always v1.)

TABLEAU_ALLOW_HTTP

no

off

Set to 1 to allow a plain http:// server on a trusted network. Otherwise only HTTPS (or loopback).

TABLEAU_LOG_LEVEL

no

INFO

DEBUG logs each HTTP call (method + URL; never headers, bodies or secrets) to stderr.

TABLEAU_AUTH_TOKEN

no

n/a

Advanced: a pre-obtained X-Tableau-Auth session token instead of a PAT.

¹ Provide a PAT (TABLEAU_PAT_NAME + TABLEAU_PAT_SECRET) or TABLEAU_AUTH_TOKEN.

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "tableau-knowledge": {
      "command": "uvx",
      "args": ["biztory-tableau-knowledge-mcp"],
      "env": {
        "TABLEAU_SERVER": "https://10ax.online.tableau.com",
        "TABLEAU_SITE_CONTENT_URL": "YourSite",
        "TABLEAU_PAT_NAME": "my-token",
        "TABLEAU_PAT_SECRET": "the-full-secret"
      }
    }
  }
}

Fully quit and reopen Claude Desktop, then check the tools menu.

Use the Add to Cursor / Add to VS Code buttons above and fill in the env values, or add the same block as for Claude Desktop to:

  • Cursor: ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).

  • VS Code: .vscode/mcp.json (the top-level key there is servers instead of mcpServers).

  • Cline: the MCP Servers panel, then Configure, into cline_mcp_settings.json.

  • Windsurf: ~/.codeium/windsurf/mcp_config.json.

On Windows, if uvx isn't found by the GUI app, use its absolute path (e.g. %USERPROFILE%\.local\bin\uvx.exe).

Tools

node arguments accept a node id or a plain-language description. Every graph-scoped tool also takes an optional graph_id.

Tool

What it does

Key args

server_info

Site, versions, auth, whether Knowledge is enabled, the site's feature switches, and every graph (id, name, status, primary, stats incl. context coverage). Good first call.

none

search_nodes

Semantic search over the graph ("revenue" finds "Net Sales"), ranked with scores.

query, node_type, scope_id, limit, threshold

get_node

One node: properties, attached semantic statements, child nodes.

node, include_children

list_edges

The edges around one node, with direction and the node on the other end.

node, edge_type, direction

lineage

Upstream and downstream neighborhood (10 steps) along lineage/dependency edges, with counts.

node

impact_analysis

Everything that depends on a node, transitively, grouped and counted by type.

node

list_sources

The published data sources and workbooks the graph is built from, plus the latest ingest status. With site_search, finds sources anywhere on the site (LUID + whether they're in the graph).

node_type, site_search

search_semantic_contexts

Business statements on the graph: all, graph-wide only, or attached to one node.

node, is_global

graph_health

Health score, coverage metrics, and prioritized improvement suggestions.

pds_id, severity, suggestion_type, limit

create_semantic_context

(write) Attach statements to one node (exact id) or to the whole graph.

statements, target_node_id / is_global, name

update_semantic_context

(write) Replace statements, rename, re-attach, or make graph-wide.

ctx_id, statements, name, attach_to / make_global

delete_semantic_context

(write) Delete a user-managed context; returns what was deleted.

ctx_id

create_semantic_context_from_document

(write) Upload a .txt/.md/.csv/.pdf/.docx/.xlsx (max 2 MB); Tableau makes each line a statement. Undocumented web-app API.

file_path, target_node_id / is_global

add_sources

(write) Add data sources / workbooks to a graph by exact LUID; Tableau ingests them in the background. Undocumented web-app API.

pds_luids, workbook_luids, graph_id

remove_sources

(write) Remove data sources / workbooks (and their nodes) from a graph; returns what was removed. Undocumented web-app API.

pds_luids, workbook_luids, graph_id

create_graph

(write) Create an empty knowledge graph; fill it with add_sources. Undocumented web-app API.

name, description

update_graph

(write) Rename a graph, replace its description, or make it the primary graph. Undocumented web-app API.

graph_id, name, make_primary

ask_tableau_agent

Ask Tableau's own agent about a graph, e.g. to test context against an answer key; follow-ups via conversation_id. Undocumented web-app API.

question, conversation_id

export_to_ossie

A published data source as an Apache Ossie model (YAML), plus validation and a loss report.

datasource, include_hidden, default_aggregation_metrics

validate_ossie

Check any Ossie model (YAML/JSON) against the official schema and the spec's rules. Local only.

document, model_name

import_from_ossie

(write) Plan, then apply, the semantic contexts an Ossie model adds to a data source.

document, target_datasource_id, apply

ossie_guide

Reference for Ossie: object model, expressions, Tableau mapping, converters, porting playbook. Local only.

topic

check_business_preferences

Check a Business Preferences file (format, limits, wording) and every field it names against the dashboard's captions. No text: the rulebook.

text, target, product

Write tools are annotated readOnlyHint: false (update, delete and import also destructiveHint: true) so your client can ask before each one. Tableau-managed (SEMANTIC_CONTEXT_EXTERNAL) contexts are read-only.

Port your semantic layer with Apache Ossie

Apache Ossie (incubating, formerly Open Semantic Interchange) is a vendor-neutral YAML standard for semantic models. There was no converter for classic Tableau; this server is one, built on the Knowledge graph, so the business context travels too.

Tableau → Ossie (export_to_ossie):

Tableau Knowledge

Ossie

Published data source

Model (name, description, ai_context)

Logical table

Dataset

Column field

Field (sql = source column; dimension, datatype)

Row-level calc

Field, Tableau formula in the TABLEAU dialect plus portable sql when exact

Aggregate calc

Metric (dataset-scoped, or model-scoped with qualified names when it spans tables)

{FIXED [d]: SUM([x])}

SUM(x) OVER (PARTITION BY d)

Default aggregation of a measure

Metric (total_sales = SUM(sales))

Descriptions and semantic contexts

description and ai_context

Ids, captions, roles, original formulas

custom_extensions vendor TABLEAU (for exact round trips)

The export validates its own output and returns a losses list. Knowledge has no physical table paths or join keys, so source and relationships need filling in. INCLUDE/EXCLUDE LODs, table calcs, parameters and some functions stay Tableau-only, each named in the report.

Ossie → Tableau Knowledge (import_from_ossie): the Knowledge API can write semantic contexts, so that is what an Ossie model becomes. Descriptions, ai_context instructions, synonyms ("Also known as…"), example questions and metric definitions land on the matching nodes, one ossie:<model> context per node. Matching uses the ids from a previous export first, then names. On sites that accept only graph-wide context through the API, the same statements become one global ossie:<model> context, each prefixed with what it describes (Superstore / Sales: Also known as: revenue.); scope forces node or global. The first call returns the plan (create / update / unchanged, plus anything unmatched), and nothing is written until apply=true. Statements Tableau already holds are skipped, so re-importing an unedited export writes nothing.

Slash commands. The server ships MCP prompts that walk through each workflow: Export a data source to Ossie, Import an Ossie model into Tableau Knowledge, and Write Business Preferences. In Claude Code they appear as /mcp__tableau-knowledge__export_datasource_to_ossie and /mcp__tableau-knowledge__import_ossie_into_tableau_knowledge (with the server name you chose).

Onward to other platforms. Converters exist for Snowflake, dbt, Power BI, Databricks, Tableau Next, Cube, ThoughtSpot, Omni, Sigma and more. None are on PyPI yet, so ossie_guide (topic converters) gives the exact commands, pinned to a reviewed commit. The server will wrap them as tools once they are published.

Write Business Preferences that work

A Business Preferences file is the list of # rule lines Tableau's agent reads before it answers: one file per dashboard on Tableau Cloud (50 rules, 8,000 characters), one per semantic model on Tableau Next (30,000 characters). It shapes how the agent plans an answer, so every line has to be one it can follow. check_business_preferences encodes the field-tested lessons from Business Preferences in Tableau Cloud: What We Learned (Celia Fryar, XeoMatrix, September 2026):

  • Format slips that Tableau silently ignores: a space before #, no space after it.

  • Limits with headroom; no headers, blank lines or duplicates; no contradictions.

  • Wording that misleads the agent: thresholds without "use only this value", formatting rules that leak into the query, conversational lines, absences that can be over-read, ambiguous ordering and averages. It also suggests the two baseline rules (keep queries numeric, fail honestly) when they are missing.

  • Field names, checked live: give it the dashboard, and every [Field] must be a visible caption the agent will see, with "did you mean" suggestions. It also flags workbook problems: duplicate (Account ID (Account)), generic (Amount) and helper fields.

The write_business_preferences prompt runs the whole loop. It gathers the real captions, asks you for terms, thresholds and policies, then drafts and checks until clean, and returns v1 with the upload-then-publish and testing advice. Call check_business_preferences with no text for the full rulebook.

How a description becomes a node

# illustrative
"the net sales field"
   │  1. exact lookup: GET /nodes/{id}           → found? use it, no guessing
   │  2. not an id: semantic search (top 4)      → best match + runners-up
   ▼
{ "id": "field:…:Net Sales", …,
  "resolution": { "match": {"name": "Net Sales", "type": "FIELD", "score": 0.82},
                  "alternatives": [ … ],
                  "note": "Not an exact id: resolved by semantic search …" } }

The model sees the score and the alternatives, so it can confirm with you or retry with an alternative's id. Write tools skip this step entirely and require exact ids.

Example prompts

  • "Use server_info: which graphs does this site have, and which is primary?"

  • "Find the fields that mean revenue, then show the lineage of the best match."

  • "Run impact_analysis on the Superstore data source: which workbooks and dashboards depend on it?"

  • "What semantic context is attached to the Profit field?"

  • "Show the graph's health score and the five high-severity suggestions, with the nodes they target."

  • "Add a statement to the Profit field: 'Profit is calculated after returns and reported in EUR.'"

Architecture

The server speaks MCP over stdio to the client and HTTPS to Tableau: it signs in with your PAT to get an X-Tableau-Auth session (refreshed on expiry), then calls /api/v1/knowledge. Nothing is stored; every answer is live.

Things the API does that you should know

  • Search is by meaning. Scores are relative; a top score around 0.4-0.5 can still be the right node, so check the alternatives.

  • Lineage follows dependencies, not containment. A single field's lineage is often just itself; list_edges shows which table HAS it.

  • Context search doesn't filter by text yet. search_semantic_contexts filters by node or is_global; find statements by meaning with search_nodes.

  • Unknown ids behave differently per endpoint. The API's lineage returns an empty graph for an unknown id; this server resolves the node first, so you always get a clear error instead.

  • Deletes are idempotent. Deleting an unknown id succeeds without effect.

  • Some sites accept only graph-wide context. Creating a node-attached context can fail with node_semantic_context_disabled ("node-scoped context is managed by Tableau and arrives through ingestion"); BiztoryPulse does this. Use is_global=true and name the field in the statement. import_from_ossie falls back to that automatically.

  • The API is rate-limited. Crawling a large graph node by node hits HTTP 429; the server retries with back-off, but prefer lineage and impact_analysis over many get_node calls.

Security

  • Writes are limited to semantic contexts, take exact ids, are validated before sending, and are annotated so your client can ask first. A Viewer or Explorer PAT makes the server read-only in practice.

  • Local and stdio-only. No inbound network port is opened.

  • Secrets from env only. Never tool arguments, never logged, never returned.

  • Credentials go only to your Tableau host. HTTPS required, certificates verified, redirects refused.

  • No injection through ids. Node and context ids are encoded as one path segment; graph_id is checked against Tableau's pattern before it is sent. Both parsers of untrusted input are fuzzed in CI.

  • YAML is parsed safely. Ossie documents go through yaml.safe_load (no tags, no code), with a 5 MB cap; validate_ossie and ossie_guide never contact Tableau.

  • Verifiable releases. Every GitHub release carries Sigstore signatures and a CycloneDX SBOM, and PyPI uploads use Trusted Publishing.

  • Pin a version in production: uvx biztory-tableau-knowledge-mcp==0.4.0.

See SECURITY.md for the threat model, data handling, disclosure policy and how to verify a release.

Troubleshooting

Symptom

Fix

Server doesn't appear

Fully quit and relaunch the client; check the config path and JSON validity.

spawn uvx ENOENT

Install uv, or use the absolute path to uvx.

Sign-in fails (401, 401001)

The PAT is invalid or expired (15 days unused). Create a new one and check TABLEAU_SITE_CONTENT_URL.

site_not_entitled

The site doesn't have Tableau Knowledge; a Tableau Cloud Manager admin must enable it.

no_active_graph

The site has no primary graph: pass a graph_id from server_info.

"Semantic search is unavailable"

The graph has no embedder. Use exact ids (list_sources → get_node).

tableau_forbidden on a write

Writing semantic contexts needs the Creator role.

HTTP 429 after retries

You hit Tableau's rate limit; wait a minute and use fewer, broader calls.

Inspect the server directly with the MCP Inspector:

npx @modelcontextprotocol/inspector uvx biztory-tableau-knowledge-mcp

Development

git clone https://github.com/biztory/biztory-tableau-knowledge-mcp && cd biztory-tableau-knowledge-mcp
uv sync --all-extras
uv run biztory-tableau-knowledge-mcp                   # run from source (needs the env vars above)
uv run pytest --cov=biztory_tableau_knowledge_mcp      # tests + coverage (offline; no Tableau needed)
uv run ruff check . && uv run ruff format --check . && uv run mypy

Tool tests run through the real client against an in-process fake of the Knowledge API (tests/conftest.py), so URL building, id encoding and error mapping are all exercised. Live tests are opt-in: TABLEAU_LIVE=1 runs the read-only ones; TABLEAU_LIVE_WRITE=1 adds a round trip that creates, updates and deletes one temporary context it made itself.

The same gates run in CI (Linux/macOS/Windows, Python 3.10 to 3.13): ruff check, ruff format --check, mypy --strict, and pytest with a coverage floor. CodeQL scans every push, the OpenSSF Scorecard runs weekly, and a fuzzing job (fuzz/) attacks the untrusted-input parsers. The package ships a PEP 561 py.typed marker.

Contributions welcome: see CONTRIBUTING.md and the Code of Conduct.

Roadmap

  • Export to and import from Apache Ossie (formerly OSI)

  • Wrap the Ossie converters (Snowflake, dbt, Power BI, Databricks) as tools once they are published on PyPI

  • Ossie relationships from Tableau join keys, when the Knowledge API exposes them

  • A demo recording in this README

  • Optional per-session caching of server_info and resolved nodes

Ideas and votes welcome in Discussions.

License

MIT © Biztory. Sister project: tableau-graphql-mcp for lineage over the Tableau Metadata API.

Available Tools

23 tools
add_sourcesAdd sources to graphA
Idempotent

WRITE: add published data sources (pds_luids) and/or workbooks (workbook_luids) to a knowledge graph. Tableau ingests them in the background (seconds to minutes); check with list_sources (ingest.status). Adds only: sources already in the graph stay, and re-adding one re-ingests it.

Exact LUIDs only, never names: find them with list_sources(site_search="part of a name").
`graph_id` is required (or TABLEAU_KNOWLEDGE_GRAPH_ID): this never falls back to the primary
graph. Confirm the list with the user first.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: graph_id, pds_luids, workbook_luids. Returns: object

ask_tableau_agentAsk Tableau AgentA
Destructive

Ask Tableau's own agent (the chat in Tableau Knowledge) a question about a graph and get its answer, e.g. to test semantic context and Business Preferences against an answer key: ask one question at a time and compare the numbers yourself.

Pass the returned `conversation_id` to ask a follow-up in the same conversation (this server
keeps the history in memory, so it lasts until the server restarts). Omit it for a fresh
conversation, which is the fair way to test. `tools_used` lists the agent's own tool calls. The
agent can also write semantic statements when asked to, so phrase questions as questions. Can
take a minute.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: question (required), graph_id, conversation_id. Returns: object

check_business_preferencesCheck Business PreferencesA
Read-only

Check a Tableau Business Preferences file (the "# rule" lines Tableau's agent reads before it answers) so every line is one the agent will actually follow. Call it with no text first to get the rulebook: format, limits, wording rules, workbook preparation and how to test.

Checks: the "# " line format (a slip makes Tableau silently ignore the line), the limits (Tableau
Cloud: 50 rules and 8,000 characters per dashboard; Tableau Next: 30,000 per semantic model),
headers, duplicates, contradictions, thresholds without "use only this value", formatting rules
that would leak into queries, conversational lines, absences that can be over-read, ambiguous
ordering and averages, and missing baseline rules (query formatting, failure handling).

`target` (a dashboard, sheet, workbook or data source: id or description) also checks every
[Field] and "Field" the file names against the captions the agent will see in Tableau Knowledge,
with "did you mean" suggestions, and flags workbook problems (duplicate, generic or helper field
names). `product` is "cloud" or "next". Returns `ok` (no errors), `issues` by line, and stats.

Inputs: text, target, product, graph_id. Returns: object

create_graphCreate graphA

WRITE: create a new, empty knowledge graph on the site (sites allow a few: see server_info features.max_graphs_per_site). Then fill it with add_sources. Returns the graph with its id. Confirm the name with the user first.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: name (required), description. Returns: object

create_semantic_contextAdd semantic contextA

WRITE: attach business context (one or more statements, 5-1000 characters each) to the knowledge graph, e.g. "Net Sales excludes returns and is reported in EUR."

Set exactly ONE of: `target_node_id` (an exact node id from search_nodes/get_node; the
context then DESCRIBES that node) or `is_global=true` (applies to the whole graph).
CONNECTION, SITE, SCHEMA and semantic-context nodes can't be targets. Some sites accept only
graph-wide context through the API (error node_semantic_context_disabled): then use
is_global=true and name the field or data source in each statement. `name` is optional
(derived when omitted). Needs the Creator role. Returns the new context, with its id.

Inputs: statements (required), name, graph_id, is_global, +1 more. Returns: object

create_semantic_context_from_documentAdd semantic context from a documentA

WRITE: upload a local document (.txt, .md, .csv, .pdf, .docx, .xlsx; max 2 MB) and let Tableau turn it into semantic context, e.g. a KPI glossary or a business-rules note.

`file_path` is a path on the machine running this server; the file's content is sent to your
Tableau site, so confirm the file with the user first. Set exactly ONE of `target_node_id` (an
exact node id) or `is_global=true`, as for create_semantic_context (some sites accept only
graph-wide context). Tableau makes each line a statement (headings too), so write one rule
per line. Returns the new context with its statements and any `statements_skipped`.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: file_path (required), name, graph_id, is_global, +1 more. Returns: object

delete_semantic_contextDelete semantic contextA
DestructiveIdempotent

WRITE: delete a user-managed semantic context and its statements. Only semantic contexts created through Tableau Knowledge can be deleted; ids of other nodes are ignored, and Tableau-managed (SEMANTIC_CONTEXT_EXTERNAL) contexts are refused.

Returns what was deleted (name and statements, so it can be recreated if needed). Deleting an
id that doesn't exist succeeds without effect. Needs the Creator role.

Inputs: ctx_id (required), graph_id. Returns: object

export_to_ossieExport to OssieA
Read-only

Export a published data source's semantic model to Apache Ossie (formerly OSI) YAML, the vendor-neutral format that Snowflake, dbt, Power BI, Databricks, Tableau Next and other tools convert from. Returns ossie (the YAML text, to save as file_name), summary, validation and losses (what could not be carried and what to fix by hand).

`datasource` is a PDS id (from list_sources) or a description of it. Logical tables become
datasets, fields become fields, row-level calcs become fields and aggregate calcs become
metrics; every calc keeps its Tableau formula and gains portable SQL when the translation is
exact. Semantic-context statements become ai_context. `default_aggregation_metrics` also turns
each measure's Tableau default aggregation into a metric (total_sales = SUM(sales)).
Always read `losses`: Tableau Knowledge has no physical table paths or join keys, so `source`
and `relationships` need filling in before the model is used elsewhere. See ossie_guide.

Inputs: datasource (required), graph_id, include_hidden, default_aggregation_metrics. Returns: object

get_nodeGet nodeA
Read-only

Get one node with its properties, its semantic statements (the business context attached to it), and the child nodes it points to (connected_nodes, each with the edge type).

`node` is a node id, or a plain-language description that is resolved by semantic search
(the response then includes `resolution` with the match score and alternatives). Set
`include_children` false to skip `connected_nodes` on large containers.

Inputs: node (required), graph_id, include_children. Returns: object

graph_healthGraph healthA
Read-only

Graph-health report: a 0-100 health_score, coverage metrics (e.g. how many nodes carry semantic context), graph stats, and concrete improvement suggestions (each with severity, recommended_action and the target node ids), grouped by category and topic.

`pds_id` scopes the report to one published data source's subtree. `severity` ("high",
"medium", "low"), `suggestion_type` and `limit` (default 20; a busy graph has hundreds) filter
only the suggestion lists; the score, metrics and `summary` totals always cover the full (or
PDS-scoped) graph.

Inputs: limit, pds_id, graph_id, severity, +1 more. Returns: object

impact_analysisImpact analysisA
Read-only

What breaks if this changes: every asset that depends on the node, directly OR transitively (up to 10 steps, following DEPENDS_ON), e.g. the calcs, sheets, dashboards and workbooks downstream of a column. The node itself is not included.

`node` is a node id or a plain-language description. Returns `total`, `counts_by_type`, and
`affected_assets` sorted by type then name.

Inputs: node (required), graph_id. Returns: object

import_from_ossieImport from OssieA
DestructiveIdempotent

Bring the business meaning of an Apache Ossie (formerly OSI) model into Tableau Knowledge as semantic contexts. WRITES only when apply is true; by default it returns the PLAN.

`document` is the model as YAML or JSON text. Elements are matched to nodes of one published
data source: models exported by export_to_ossie map back by their stored ids; other models
need `target_datasource_id` (an exact PDS id from list_sources) and match by name. Each matched
node gets one context named `ossie:<model>` holding its description, ai_context instructions,
synonyms ("Also known as: ..."), example questions, metric definition (`include_definitions`)
and relationships. Re-importing updates those contexts instead of duplicating them.

`scope`: "auto" (default) attaches contexts to nodes and, on sites that accept only graph-wide
context through the API (error node_semantic_context_disabled), writes the plan's
`global_fallback` instead: one global `ossie:<model>` context whose statements are prefixed
with what they describe. "node" never falls back; "global" plans the global context directly.

Workflow: call without `apply`, show the user the operations (create/update/unchanged) and
`unmatched` list, then call again with `apply=true` once they agree. Needs the Creator role.

Inputs: document (required), apply, scope, graph_id, +3 more. Returns: object

lineageLineageA
Read-only

The lineage neighborhood of a node: every node reachable within 10 steps, upstream AND downstream, along lineage/dependency edges (LINEAGE, DEPENDS_ON), e.g. a data source and the workbooks built on it. Answers "where does this come from?" and "what uses it?".

Containment (a table HAS a field, a workbook CONTAINS a sheet) is not followed, so a single
field often returns only itself; use list_edges or get_node to see what contains it.

`node` is a node id or a plain-language description. Returns the anchor node, `nodes`,
`edges` (source_id -> target_id, with type), and counts by node and edge type. For "what
breaks if this changes?", impact_analysis is more direct.

Inputs: node (required), graph_id. Returns: object

list_edgesList edgesA
Read-only

List the edges around one node, each with its direction (outgoing/incoming) and the node on the other end. One hop only; use lineage for the wider neighborhood.

`node` is a node id or a plain-language description. `edge_type` narrows to one of: CONTAINS,
HAS, JOINS, DEPENDS_ON, LINEAGE, SEMANTIC_EQUIV, DESCRIBES. `direction` is "outgoing" or
"incoming"; omit for both.

Inputs: node (required), graph_id, direction, edge_type. Returns: object

list_sourcesList sourcesA
Read-only

List the published data sources and workbooks connected to the knowledge graph, i.e. what the graph has been built from. node_type "PDS" or "WORKBOOK" narrows it; omit for both. ingest shows the graph's latest ingestion (status running/completed, per-asset results).

With `site_search` (part of a name, case-insensitive), it instead searches the whole SITE for
data sources and workbooks to add with add_sources: each hit has its `luid` and `in_graph`.

Inputs: graph_id, node_type, site_search. Returns: object

ossie_guideOssie guideA
Read-only

Reference for Apache Ossie (formerly Open Semantic Interchange, OSI), the open standard for semantic models: what it is and its versions, the object model and rules, expressions and dialects, how Tableau maps onto it, relationships, ai_context, extensions, validation, the converters for other platforms (with exact commands), and a porting playbook with pitfalls. Read it before hand-editing a model or advising on a port. topic is one of: overview, model, expressions, tableau, relationships, ai_context, extensions, validation, converters, porting; omit it for everything.

Inputs: topic. Returns: object

remove_sourcesRemove sources from graphA
DestructiveIdempotent

WRITE: remove published data sources and/or workbooks, and the nodes built from them, from a knowledge graph. The Tableau content itself is untouched. Context attached to removed nodes may be lost; graph-wide context stays.

Exact LUIDs only (a source's properties.luid from list_sources); pass them in either list, the
type comes from the graph. LUIDs that aren't in the graph are reported and skipped. `graph_id`
is required (or TABLEAU_KNOWLEDGE_GRAPH_ID). Confirm with the user first. Returns what was
removed; add_sources with the same LUIDs puts it back.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: graph_id, pds_luids, workbook_luids. Returns: object

search_nodesSearch graph nodesA
Read-only

Find graph nodes by MEANING (semantic search), not exact name: "revenue" can match a field named "Net Sales". Returns ranked matches with a 0-1 score; when a semantic statement matched, it is shown under the node's semantic_statements.

- `node_type` narrows to one type: PDS (published data source), WORKBOOK, SHEET, DASHBOARD,
  EMBEDDED_DATASOURCE, TABLE, FIELD, WAREHOUSE_TABLE, WAREHOUSE_COLUMN, CONNECTION, SCHEMA,
  SITE, SEMANTIC_CONTEXT, SEMANTIC_CONTEXT_EXTERNAL.
- `scope_id` limits the search to one data source's subtree (a PDS node id plus its tables
  and fields).
- `limit` 1-100 (default 10); `threshold` drops matches scoring below it (0-1).

Use the returned `id`s with get_node, list_edges, lineage and impact_analysis.

Inputs: query (required), limit, graph_id, scope_id, +2 more. Returns: object

search_semantic_contextsFind semantic contextsA
Read-only

List semantic contexts: the business statements (definitions, rules, caveats) attached to the graph. Includes user-managed (SEMANTIC_CONTEXT, editable) and Tableau-managed (SEMANTIC_CONTEXT_EXTERNAL, read-only) contexts.

- With `node` (an id or a description): only the contexts attached to that node.
- Without `node`: every context on the graph; `is_global` true = only graph-wide contexts,
  false = only node-attached ones, omitted = both.

The API doesn't filter by text yet; to find statements by meaning, use search_nodes.

Inputs: node, graph_id, is_global. Returns: object

server_infoConnection and graphsA
Read-only

Report the connected Tableau site and its knowledge graphs: server URL, site, product version, auth method, whether Tableau Knowledge is available, and every graph (id, name, status, is_primary). Good first call: it confirms the connection and gives the graph ids the other tools accept as graph_id (omit graph_id to use the primary graph).

Inputs: no named parameters. Returns: object

update_graphUpdate graphA
DestructiveIdempotent

WRITE: rename a knowledge graph, replace its description, and/or make it the site's primary graph (the default for everyone who doesn't pick a graph; only one graph is primary). Only what you pass changes. graph_id is an exact id from server_info. Confirm with the user first.

Uses Tableau Knowledge's undocumented web-app API, which can change without notice.

Inputs: graph_id (required), name, description, make_primary. Returns: object

update_semantic_contextUpdate semantic contextA
DestructiveIdempotent

WRITE: change a user-managed semantic context (ctx_id, e.g. "semctx:"). Only what you pass changes.

- `statements` REPLACES the whole stored set (include every statement you want to keep).
- `name` renames it.
- `attach_to` (an exact node id) re-attaches it to that node; `make_global=true` detaches it
  and makes it graph-wide. Not both.

Tableau-managed (SEMANTIC_CONTEXT_EXTERNAL) contexts can't be changed. Needs the Creator role.

Inputs: ctx_id (required), name, graph_id, attach_to, +2 more. Returns: object

validate_ossieValidate Ossie modelA
Read-only

Validate an Apache Ossie (formerly OSI) model, given as YAML or JSON text, against the official JSON Schema (0.2.0.dev0, bundled) and the spec's semantic rules: duplicate names, keys and relationship columns that are not declared fields, unknown datasets, qualified names in dataset-scoped metrics. 0.1.1 documents (semantic_model: list) are converted first; pass model_name when one holds several models. Runs locally: nothing is sent to Tableau.

Inputs: document (required), model_name. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or actions, and descriptions draw explicit boundaries between similar areas such as search_nodes vs get_node and lineage vs impact_analysis. The main mild overlap is in the exploration cluster (get_node, list_edges, lineage, impact_analysis), where an agent may need to read descriptions carefully to choose the right scope.

    Naming Consistency4/5

    The set predominantly follows a readable snake_case verb_noun pattern such as list_sources, create_graph, search_nodes, and delete_semantic_context. A few noun-only exceptions like lineage, impact_analysis, server_info, graph_health, and ossie_guide are still clear but slightly break the pattern.

    Tool Count4/5

    At 23 tools the surface is on the heavy side, but the domain is broad: graph/source management, node exploration, semantic-context CRUD, Ossie import/export/validation, agent testing, and preference checking. Each tool maps to a recognizable workflow rather than obvious filler, so the count is high but defensible.

    Completeness4/5

    Coverage is strong across the core lifecycle: server/graph discovery, graph creation and update, source listing/addition/removal, node search and inspection, lineage/impact, semantic-context search/create/update/delete, and Ossie workflows. The main minor gap is the absence of an explicit delete_graph operation, though the rest of the domain is well covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables querying Tableau lineage through the Metadata API via MCP, supporting impact analysis, where-used lookups, and content search. Provides read-only tools for answering natural-language questions about workbooks, datasources, fields, and dependencies.
      7
      33 PyPI
      2
      MIT
    • F
      license
      B
      quality
      B
      maintenance
      A production-grade MCP server that exposes Tableau Server/Cloud as a BI platform, enabling project, workbook, data source, user, group, job, lineage, and export operations via natural language, with role-based permissions and token optimization.
      69
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides MCP tools to query Tableau Server/Cloud datasources via REST API and VizQL Data Service, with support for Gemini or OpenAI as the LLM backend. Enables a natural language chat interface that can be embedded in Tableau dashboards, automatically including dashboard filter context.
      -