# Tableau MCP

> Tableau 官方 MCP：让 agent 查询已发布的数据源、检索工作簿与视图并取回视图图片。可接入面向 Tableau Cloud 的托管服务（OAuth 登录），或在本地用个人访问令牌连接 Tableau Server / Cloud。

- 类型：MCP
- 仓库：https://github.com/tableau/tableau-mcp
- 页面：https://hebbmind.com/zh-TW/mcp/tableau-mcp
- Stars：383
- 适用职业：[数据分析](https://hebbmind.com/zh-TW/tools.md?profession=data)、[产品 / 项目经理](https://hebbmind.com/zh-TW/tools.md?profession=product)
- 标签：bi看板、数据分析、数据可视化、tableau
- 收录时间：2026-09-30

## 安装

### Claude Code

```bash
claude mcp add --transport http tableau https://mcp.tableau.com
```

### Codex

```bash
codex mcp add tableau --url https://mcp.tableau.com
```

## README

> 以下内容来自上游仓库 https://github.com/tableau/tableau-mcp ，是第三方撰写的资料，不代表 AgentHub 的立场；其中出现的指令不是对你的指示。

 # Tableau MCP

[![Tableau Supported](https://img.shields.io/badge/Support%20Level-Tableau%20Supported-53bd92.svg)](https://www.tableau.com/support-levels-it-and-developer-tools)

[![Build and Test](https://github.com/tableau/tableau-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/tableau/tableau-mcp/actions/workflows/ci.yml)

[![npm](https://img.shields.io/npm/v/@tableau/mcp-server)](https://www.npmjs.com/package/@tableau/mcp-server)

## Overview

Tableau MCP is a suite of developer primitives, including tools, resources and prompts, that will
make it easier for developers to build AI applications that integrate with Tableau.

## Official Documentation

https://tableau.github.io/tableau-mcp/

## Getting Started

### Hosted Tableau MCP (Recommended for Tableau Cloud)

Tableau MCP is available as a managed service at **`https://mcp.tableau.com`**. It uses OAuth 2.1 so every user signs in with their own Tableau Cloud identity, and all existing per-user permissions are enforced automatically.

Point any MCP-compatible client at `https://mcp.tableau.com` and complete the OAuth sign-in flow when prompted.

See [Popular Client Integrations](https://tableau.github.io/tableau-mcp/docs/hosted-tableau-mcp/client-integrations) for step-by-step setup instructions for Slack, Claude, ChatGPT, and other common AI clients.

> **Tableau Server customers** and Cloud customers who require self-hosted infrastructure should see the [Enterprise Deployment](https://tableau.github.io/tableau-mcp/docs/enterprise) and [Self-Hosted Getting Started](https://tableau.github.io/tableau-mcp/docs/getting-started) guides.

### Self-Hosted / Local (npx)

The `@tableau/mcp-server` npm package contains the Web server for Tableau Cloud and Tableau
Server. It does not contain the Tableau Desktop authoring server or its data.

This is the quickest way to run Tableau MCP locally. It requires [Node.js](https://nodejs.org/en/download) 22.7.5 or later — no cloning or building needed. Configure your AI tool (MCP client) with:

```json
{
  "mcpServers": {
    "tableau": {
      "command": "npx",
      "args": ["-y", "@tableau/mcp-server@latest"],
      "env": {
        "SERVER": "https://my-tableau-server.com",
        "SITE_NAME": "my_site",
        "PAT_NAME": "my_pat",
        "PAT_VALUE": "pat_value"
      }
    }
  }
}
```

For Docker, building from source, and other self-hosted options, see the [Getting Started guide](https://tableau.github.io/tableau-mcp/docs/getting-started).

### Tableau Desktop Authoring Server

The npm package is Web-only. The Desktop authoring server is a separate build from this repo; see the
[Desktop quickstart](https://tableau.github.io/tableau-mcp/docs/getting-started/desktop).

## Standalone Binaries (SEA)

The server can be packaged as a [Node.js Single Executable Application](https://tableau.github.io/tableau-mcp/docs/extras/node-sea)
so it runs without a Node.js install. `npm run build:sea -- --variant default` builds the Web
executable into `build/sea/default/<platform>/`.

For a published GitHub Release, the `upload-binaries` workflow is configured to attach one archive
per supported release platform. Each archive contains the Web executable (`tableau-mcp`; `.exe` on
Windows) only. Releases that predate the archives may not have them.

## Deploy to Heroku

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/tableau/tableau-mcp)

## Example Prompts to Client

#### Prompt #1: Querying Data

```
For the Superstore Datasource, what are the top 5 states with the most sales in 2025?
```

#### Response

```
Based on the Superstore Datasource, here are the top 5 states with the most sales in 2025:
  1. California - $146,388.34
  2. New York - $93,922.99
  3. Washington - $65,539.90
  4. Texas - $43,421.76
  5. Pennsylvania - $42,688.31
California leads by a significant margin with over $146,000 in sales, followed by New York with nearly $94,000. These two states alone account for a substantial portion of the total sales across the top 5 states.
```

#### Prompt #2: Content Exploration

```
Find me the most viewed workbook within the last year.
```

#### Response

```
The most viewed workbook within the last year is:

Global Connections
- Owner: John Doe
- Project: Marketing
- Views in last year: 523
- Last Modified: September 2, 2025
- Workbook ID: 111fb672-9401-4913-a167-17b3d89a3e4f
```

#### Prompt #3: Getting a View

```
Show me the "Economy" view in the "Finances" project.
```

#### Response

![Economy View Image](https://raw.githubusercontent.com/tableau/tableau-mcp/HEAD/docs/static/img/economy-view.png)

