Tableau MCP开发工具包

Tableau MCP是一套开发者工具包,提供资源和提示,帮助开发者更轻松地构建与Tableau集成的AI应用。

  • by hey-look-its-tim-dries
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 hey-look-its-tim-dries/tableau-mcp-002-dev

使用说明

Tableau MCP

概述

Tableau MCP是一套开发人员原语,包括工具、资源和提示,它将 使开发人员更容易构建与Tableau集成的AI应用程序。

官方文件

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

快速开始

需求

  • Node.js 22.7.5或更新版本
  • MCP客户端,如克劳德桌面、光标、VS代码、MCP检查器等。

标准配置适用于大多数MCP客户端:

{
  "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"
      }
    }
  }
}

部署到Heroku

给客户的提示示例

提示#1:查询数据

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

回应

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.

提示#2:内容探索

Find me the most viewed workbook within the last year.

回应

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

提示#3:获取视图

Show me an image of the "Economy" view in the "Finances" project.

回应