tableau-graphql-mcp
This MCP server answers Tableau lineage and impact questions by exposing the Tableau Metadata API (GraphQL) as seven read-only tools, working on both Tableau Server and Cloud.
Ask any lineage question via
graphql_query, which runs arbitrary read-only Metadata API GraphQL queries (mutations/subscriptions rejected); truncated results are flagged withpartial_results.Introspect the live schema with
introspect_schemato list Query entry points and a type's exact fields.Get ready-made query templates from
lineage_examples: a schema cheat-sheet plus 28 curated question-to-GraphQL examples across 8 categories (impact, provenance, calc, datasource, search, inventory, governance, ownership).Find where a column/field/table is used with
where_used, using core lineage so it works even without the Data Management add-on.Run multi-hop impact analysis with
impact_analysis: every directly or indirectly dependent field plus affected sheets, dashboards, workbooks, and de-duplicated owners to notify.Search content by partial name with
search_content(case-insensitive substring across workbooks, datasources, tables, optionally fields/columns), reporting scan coverage.Probe the connection with
server_info: server, site, versions, GraphQL endpoint, auth method, and whether Catalog lineage is available.Safe by design: read-only, stdio-only (no inbound port), credentials from environment variables only, and HTTPS enforced.
Enables running read-only GraphQL queries against Tableau's Metadata API, including schema introspection, a library of curated query templates, and higher-level lineage tools (where-used lookups, multi-hop impact analysis, and substring content search) built on top of the GraphQL graph.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tableau-graphql-mcp Which workbooks break if I remove the SALES column?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
☕ Think I deserve a coffee for all the hard work I put into this? Buy me one, you silly! 🙂
tableau-graphql-mcp turns your Tableau site's Metadata API into a set of MCP tools, so an AI assistant (Claude, Cursor, Cline, and others) can answer lineage questions in plain language:
"If I drop the column
SALES, which workbooks break?""What tables does the Sales Overview workbook depend on?"
"Which calculated fields reference
Profit, and on which dashboards?""Who should I notify before changing the
DIM_CUSTOMERtable?"
It ships seven curated tools: a universal GraphQL passthrough, live schema introspection, an embedded library of correct query templates, a robust where_used resolver, a multi-hop impact_analysis, a substring content search, and a connection probe. Together they let the model answer any lineage question, not just a fixed menu.
Why it's different
Any question, done right.
graphql_queryruns any read-only GraphQL;introspect_schemaand a built-in cheat-sheet plus 28 worked examples keep the model's queries correct.True impact analysis (multi-hop).
impact_analysisfollows the whole dependency chain (a calc built on a calc built on a column is included) and returns the full blast radius plus the de-duplicated owners to notify, not just direct references.Works everywhere. Tableau Server and Cloud. The REST API version and the GraphQL endpoint (
/api/metadata/graphql, with a/relationship-service-war/graphqlfallback) are auto-detected.Robust lineage without Catalog.
where_usedresolves workbooks via core lineage (referencedByFields -> sheets -> workbook), so it works even when the Data Management add-on'sdownstreamWorkbooksis empty.No silent truncation.
graphql_queryflagspartial_resultswhen a query hits the node limit, andsearch_contentreportsscanned/totalcoverage, so a truncated answer is never mistaken for a complete one.Tiny and safe. Read-only, stdio-only (no inbound port), secrets from env only, and no dependencies beyond the MCP SDK (stdlib
urllibfor HTTP).
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-graphql \
-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 tableau-graphql-mcpThat's all. uvx fetches the package from PyPI and runs it in an isolated environment; nothing to clone or install (and no git required). Then ask Claude a lineage question.
Related MCP server: data-analyst
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 |
| yes | n/a |
|
| no |
| Site slug (the part after |
| yes¹ | n/a | Personal Access Token name. |
| yes¹ | n/a | PAT secret: the whole string, do not split on |
| no |
| Per-request timeout (seconds). |
| no | auto | REST API version; else read from |
| no | auto | Override the GraphQL path; else auto-detected. |
| no | off | Set to |
| no |
|
|
| no | n/a | Advanced: a pre-obtained |
| no | n/a | Advanced: a browser session cookie (SSO fallback). |
¹ Provide a PAT (TABLEAU_PAT_NAME + TABLEAU_PAT_SECRET) or an advanced TABLEAU_AUTH_TOKEN / TABLEAU_COOKIE.
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"tableau-graphql": {
"command": "uvx",
"args": ["tableau-graphql-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.
Every client uses the same mcpServers schema shown above. Add the same block to:
Cursor:
~/.cursor/mcp.json(global) or.cursor/mcp.json(project).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
Tool | What it does | Key args |
| Run any read-only Metadata API GraphQL query. The general tool for any lineage question. |
|
| Live schema introspection: list entry points, or a type's exact fields. |
|
| A schema cheat-sheet plus 28 curated question-to-GraphQL templates (8 categories). |
|
| Which workbooks/datasources use given column / field / table names (robust one-hop core-lineage resolution). |
|
| Full transitive multi-hop blast radius of a column/field/table: every dependent field, plus affected sheets, dashboards, workbooks, and owners to notify. |
|
| Find content whose name contains a term (case-insensitive substring), across workbooks, datasources, tables (and optionally fields/columns), with coverage numbers. |
|
| Connected server, site, versions, endpoint, auth, and whether Catalog lineage is available. | none |
All tools are read-only. The Metadata API has no mutations.
Example prompts
Once connected, try:
"Use server_info to confirm what you're connected to."
"Search for anything with 'revenue' in the name."
"Which workbooks use the columns SALES, PROFIT and DISCOUNT? Group by owner."
"Show me the field-to-source-column map for the 'Sales Overview' workbook."
"List every calculated field in that workbook with its formula."
"Which published datasources feed workbooks in the Analytics project, and which are uncertified?"
"Run impact_analysis on the 'Profit Ratio' field: every dependent sheet, dashboard, workbook, and owner to notify."
"What is the blast radius of dropping the DIM_CUSTOMER table: workbooks, sheets, and owners to notify?"
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 token (auto-refreshed on expiry), auto-detects the REST API version and the GraphQL endpoint, then forwards queries to the Metadata API. Nothing is stored; every answer is live.
Security
Read-only, enforced. Only GraphQL queries: no writes, no shell.
graphql_queryrejectsmutation/subscriptionoperations, and the Metadata API is query-only regardless.Declared read-only. Every tool carries the MCP
readOnlyHintannotation, so clients can verify it without reading the code.Local and stdio-only. No inbound network port is opened.
Secrets from env only. Never passed as tool arguments, never logged, never returned in output.
Credentials go only to your Tableau host. HTTPS is required, certificates are verified, and redirects are refused.
Least privilege. The PAT inherits your Tableau permissions; the API only returns content you can see.
Verifiable releases. Every GitHub release carries Sigstore signatures and a CycloneDX SBOM, and PyPI uploads use Trusted Publishing.
Pin a version in production:
uvx tableau-graphql-mcp==0.2.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. |
| Install |
Sign-in fails (401) | Check the PAT name/secret and |
"Could not reach the Metadata API" | On Tableau Server, an admin must enable it: |
Empty | Expected without the Data Management add-on; use the |
Inspect the server directly with the MCP Inspector:
npx @modelcontextprotocol/inspector uvx tableau-graphql-mcpDevelopment
git clone https://github.com/tdries/tableau-graphQL-mcp && cd tableau-graphQL-mcp
uv sync --all-extras
uv run tableau-graphql-mcp # run from source
uv run pytest --cov=tableau_graphql_mcp # tests + coverage (offline; no Tableau needed)
uv run ruff check . # lint
uv run ruff format --check . # formatThe 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. The package
ships a PEP 561 py.typed marker, so importing it gives your type checker full types.
CodeQL scans every push, and a weekly fuzzing job (fuzz/) attacks the read-only guard.
Contributions welcome: see CONTRIBUTING.md and the Code of Conduct.
Roadmap
Shipped: published on PyPI and listed on the official MCP registry. Next:
Optional Data Management path: richer
downstreamWorkbookswhen Catalog is presentMore curated query templates in
lineage_examplesOptional response caching for repeated introspection within a session
Ideas and votes welcome in Discussions.
License
MIT © Tim Dries. Built at Biztory.
☕ Think I deserve a coffee for all the hard work I put into this? Buy me one, you silly! 🙂
Available Tools
7 toolsgraphql_queryARead-only
Run ANY read-only GraphQL query against the Tableau Metadata API. This is the general-purpose tool; use it for any lineage question. Returns {"data": ..., "errors": ...}.
The Metadata API is a GraphQL graph of Tableau content (workbooks, sheets, dashboards,
datasources, fields) and, with the Data Management add-on, physical assets (databases,
tables, columns) and their upstream/downstream lineage.
How to write a correct query:
- Filters are EXACT and case-sensitive: `filter: {name: "X"}` or `filter: {nameWithin: ["X","Y"]}`
(nameWithin is the only multi/OR match; there is NO substring or regex).
- Every list field has a `<name>Connection` variant with `first`/`offset`/`after` + `pageInfo`
(page size max 1000). Keep one query under ~20,000 nodes; narrow filters and page.
- Fields is an interface; branch with `__typename` and inline fragments
(`... on ColumnField { columns { name } }`, `... on CalculatedField { formula }`).
- Reach a field's owning workbook via `datasource { ... on EmbeddedDatasource { workbook { name } } }`.
- `downstream*` fields (downstreamWorkbooks/Owners, external tables/columns) need Data Management
(Tableau Catalog) and are often empty otherwise; then resolve via core lineage
(referencedByFields -> sheets -> workbook), or just call the `where_used` tool.
Entry points include: workbooks, sheets, dashboards, publishedDatasources, embeddedDatasources,
fields, columnFields, calculatedFields, columns, databaseTables, customSQLTables, databases,
flows, tableauUsers, dataQualityWarnings. Call `lineage_examples` for ready-made query templates
and a schema cheat-sheet, or `introspect_schema` to inspect any type's exact fields.
Read-only: mutation and subscription operations are rejected. If a query exceeds the
~20,000-node limit, the response is flagged with `partial_results: true` and a `warning`
(it does NOT auto-page an arbitrary query) so you never mistake a truncated result for a
complete one.
Inputs: query (required), variables. Returns: object
impact_analysisARead-only
Full transitive (MULTI-HOP) downstream impact of a column, field, or table. Returns every field that directly OR indirectly depends on it, and all affected sheets, dashboards, workbooks, plus the de-duplicated set of OWNERS to notify before a change.
This is the "what breaks if I change/drop this?" tool. Unlike `where_used` (one core-lineage
hop), it follows the whole dependency chain — a calc built on a calc built on the column is
included. `name` is exact and case-sensitive. Workbooks are derived from downstream
sheets/dashboards (the flat downstreamWorkbooks edge is unreliable). If it returns nothing on a
site without Data Management, the transitive lineage may not be indexed there — use `where_used`
for the direct references.
Inputs: name (required). Returns: object
introspect_schemaARead-only
Introspect the live Metadata API GraphQL schema (introspection is enabled).
With no argument: returns every Query entry point (with its args) and the full list of
type names. With `type_name` (e.g. "Column", "Workbook", "DatabaseTable", "CalculatedField"):
returns that type's fields, their result types, and args, so you can write a correct query
against exactly what this server exposes.
Inputs: type_name. Returns: object
lineage_examplesARead-only
Return a schema cheat-sheet and a library of curated lineage questions with their
correct GraphQL queries (+ example variables). Read this before composing a graphql_query.
Categories: impact, provenance, calc, datasource, search, inventory, governance, ownership.
Pass one to filter; omit to get them all. Each example has: question, graphql, variables, notes.
Inputs: category. Returns: object
search_contentARead-only
Find content whose NAME contains term (case-insensitive SUBSTRING). Use this when you
only know part of a name, since every other tool and the Metadata API filter are exact-match.
Searches workbooks, published datasources, and database tables by default. Pass `types` to
choose from: "workbook", "datasource", "table", "field", "column". Returns matches grouped by
type. It pages through content client-side, so on a very large site it scans the first ~1200
of each type and says so in `note`; once you know the exact name, prefer `graphql_query` or `where_used`.
Inputs: term (required), types. Returns: object
server_infoARead-only
Report the connected Tableau environment: server URL, site, product & REST API version, which Metadata API endpoint is in use, the auth method, and whether external-asset (Data Management / Catalog) lineage appears available. Good first call to confirm the connection and understand what lineage depth to expect.
Inputs: no named parameters. Returns: object
where_usedARead-only
Find which workbooks (and published datasources) USE the given names, the common 'where is this used / impact analysis' question, resolved robustly.
`names` are EXACT, case-sensitive names of any of: a Snowflake/DB column, a Tableau
field or alias, or a database table. Pass several to check them in one call. Results
group by workbook, showing how each matched (column / field / whole table, with schema
and source table) and which worksheets use it.
This uses CORE lineage (referencedByFields -> field.sheets -> workbook, and
field.datasource -> workbook), so it works even without the Data Management add-on where
`downstreamWorkbooks` is empty. For other shapes of question, use `graphql_query`.
Inputs: names (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The tools are mostly distinct: graphql_query is a general-purpose escape hatch, while where_used and impact_analysis are specialized lineage tools with clearly differentiated one-hop versus transitive semantics. Some overlap remains because graphql_query can answer nearly any lineage question, but the descriptions give clear selection guidance.
All names use snake_case, which is readable and consistent at the casing level. However, the set mixes verb_noun names like introspect_schema and search_content with noun-phrase names like lineage_examples, impact_analysis, where_used, and server_info, so there is no predictable action-oriented pattern throughout.
Seven tools is well-scoped for a read-only Tableau Metadata GraphQL server. The set provides a general query tool plus targeted helpers without excessive fragmentation.
The surface covers the important read-only metadata workflows: arbitrary GraphQL querying, schema introspection, examples, content search, direct usage lookup, transitive impact analysis, and environment info. Minor gaps are acceptable because graphql_query can handle less common shapes, though agents must compose those queries themselves.
Maintenance
Related MCP Connectors
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Governed BI MCP. Ask questions of live company data and list workspace sources via OAuth.
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables agents to query governed metrics through MCP, including describing metrics, running deterministic SQL against a warehouse, explaining join path preferences, and searching semantically ambiguous terms.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to ask bilingual data questions, inspect database tables and schemas, and execute validated read-only SQL through exposed tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to discover schemas, keys, and lineage across bronze, silver, and gold tables, and to run guarded read-only SQL queries against the lakehouse.1MIT
- AlicenseAqualityBmaintenanceLets any MCP client query a Tableau Cloud knowledge graph in plain language — semantic search, node and edge lookup, lineage tracing, and impact analysis — plus reading and writing the business semantic contexts attached to it. Ships nine read tools and three guarded context-writing tools over stdio with PAT authentication.2354 PyPIMIT