Tableau Public MCP Server
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 Public MCP Server Get the profile and recent workbooks for user wjsutton"
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.
Tableau Public MCP Server
A Model Context Protocol (MCP) server that enables AI applications to interact with Tableau Public content programmatically. This server provides 22 tools for accessing user profiles, workbooks, visualisations, social connections, discovery features, and workbook analysis through Tableau Public's REST APIs.
Features
22 Comprehensive Tools covering all major Tableau Public API endpoints and workbook analysis
No Authentication Required - all endpoints are public
Type-Safe - built with TypeScript and Zod schema validation
Well-Tested - comprehensive test coverage with Vitest
MCP Standard - follows Model Context Protocol specifications
Easy Integration - works with Claude Desktop and other MCP clients
TWBX Analysis - extract calculations, data profiles, and structure from downloaded workbooks
Related MCP server: Tableau Local MCP Server
Table of Contents
Installation
Prerequisites
Node.js 20 or higher (includes npm and npx)
Install via npm (Recommended)
No local setup needed — run directly with npx:
{
"mcpServers": {
"tableau-public": {
"command": "npx",
"args": ["-y", "@wjsutton/tableau-public-mcp-server@latest"]
}
}
}Add this to your MCP client configuration file (see Quick Start for file locations).
Install from Source
Alternatively, clone and build locally:
# Clone the repository
git clone https://github.com/wjsutton/tableau-public-mcp.git
cd tableau-public-mcp
# Install dependencies
npm install
# Build the project
npm run buildQuick Start
Video Setup Guide for Claude Desktop and VSCode (GitHub Copilot)
Configure Claude Desktop
Add the server to your Claude Desktop configuration file:
Location:
macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Configuration (npm):
{
"mcpServers": {
"tableau-public": {
"command": "npx",
"args": ["-y", "@wjsutton/tableau-public-mcp-server@latest"]
}
}
}Configuration (from source):
{
"mcpServers": {
"tableau-public": {
"command": "node",
"args": ["/absolute/path/to/tableau-public-mcp/build/index.js"]
}
}
}Available Tools
The server provides 22 tools organised into 6 categories:
User Profile Tools (3)
Tool | Description | API Reference |
| Returns comprehensive profile data including display name, location, bio, workbook counts, follower/following counts, favourites count, social media links, website URL, freelance status, and the user's last 21 workbooks with metadata | |
| Returns user-defined workbook categories with contained workbooks, view counts, favourites, and engagement metrics. Supports pagination (max 500 categories). Returns empty array if user hasn't configured categories | |
| Returns essential profile metadata in a lightweight format including profileName, displayName, and basic user information. Faster alternative when you only need core profile details without workbook history |
Workbook Tools (4)
Tool | Description | API Reference |
| Returns paginated array of workbooks including titles, URLs, view counts, publication dates, thumbnails, and sheet/dashboard counts. Supports pagination (max 50 per request) and visibility filtering (NON_HIDDEN or ALL) | |
| Returns detailed metadata for a single workbook including title, author, view count, favourite count, publication date, default view URL, allowDataAccess flag, and complete view listing | |
| Returns complete workbook structure with all sheets, dashboards, data sources, and detailed view information including descriptions, sheet types, and repository URLs | |
| Returns up to 20 recommended workbooks based on content similarity, including titles, authors, view counts, and thumbnails |
Social Tools (3)
Tool | Description | API Reference |
| Returns paginated array of followers with usernames, display names, bios, and their latest workbook details. Supports pagination (max 24 per request, index increments by count: 0, 24, 48...) | |
| Returns paginated array of accounts the user follows with usernames, display names, bios, and their latest workbook details. Supports pagination (max 24 per request) | |
| Returns array of workbook repository URLs that the user has favourited/bookmarked. Includes workbook metadata and URLs for accessing the visualisations |
Discovery Tools (3)
Tool | Description | API Reference |
| Returns ranked search results for visualisations or authors matching the query. Supports type filtering (vizzes/authors), pagination (max 20 per request), and returns titles, authors, view counts, thumbnails, and URLs | |
| Returns paginated list of Tableau Public's featured Viz of the Day winners with titles, authors, descriptions, publication dates, view counts, and workbook URLs. Supports pagination (max 12 per page) | |
| Returns list of featured authors (Hall of Fame Visionaries, Tableau Visionaries, or Ambassadors) with profile information, workbook counts, follower counts, and featured workbooks |
Media Tools (2)
Tool | Description | API Reference |
| Returns URL to full-size PNG screenshot of a visualisation. Requires workbookUrl (e.g., "username/workbook-name") and viewName (sheet/dashboard name). Image displays static visualisation without interactivity | |
| Returns URL to thumbnail-sized preview image of a visualisation. Requires workbookUrl and viewName. Smaller file size ideal for gallery views and previews |
TWBX Analysis Tools (7)
Tool | Description | API Reference |
| Downloads .twbx file to local temp directory. First verifies allowDataAccess flag, then downloads the workbook containing XML definition, data extracts, and embedded assets. Returns file path, size, and metadata | |
| Extracts contents from .twbx ZIP archive. Returns paths to main TWB file, data sources, and embedded files. Creates organised directory structure with workbook XML, data extracts, images, and other assets | Local processing |
| Parses TWB XML to extract calculated fields, parameters, and source fields. Returns formulas, data types, field roles, dependencies, and supports hidden field filtering. Includes dependency analysis showing root and leaf calculations | Local processing |
| Analyses workbook XML to return complete structure including worksheets, dashboards, data sources, connections, and sheet hierarchy. Shows workbook organisation and data source relationships | Local processing |
| Builds dependency graph of calculated fields showing which calculations depend on others. Returns dependency chains, orphaned calculations, and complexity metrics to understand calculation architecture | Local processing |
| Identifies and extracts Level of Detail (LOD) expressions (FIXED, INCLUDE, EXCLUDE) from calculated fields. Returns LOD type, formula, scope, aggregation, and affected dimensions for each expression | Local processing |
| Profiles embedded data files (CSV, Excel, JSON, images) extracting statistics, column info, data types, sample values, and data quality metrics. Returns row counts, column summaries, and data distributions | Local processing |
Usage Examples
Visit https://wjsutton.github.io/tableau-public-mcp-examples/ for:
Use Cases
Examples
Prompt Templates
Configuration
Environment Variables
No environment variables are needed by default. The server supports the following optional environment variables:
Variable | Description | Default |
| Maximum results for paginated queries |
|
| Logging verbosity (debug, info, warn, error) |
|
| Request timeout in milliseconds |
|
| Base URL for Tableau Public API |
|
Development
Project Structure
tableau-public-mcp/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server setup
│ ├── config.ts # Configuration
│ ├── tools/
│ │ ├── tool.ts # Base Tool class
│ │ ├── toolName.ts # Tool name types
│ │ ├── tools.ts # Tool registry
│ │ ├── getUserProfile/ # Tool implementation
│ │ │ ├── getUserProfile.ts
│ │ │ └── getUserProfile.test.ts
│ │ └── ... # Other tools (16 total)
│ └── utils/
│ ├── apiClient.ts # HTTP client
│ ├── pagination.ts # Pagination helpers
│ └── errorHandling.ts # Error utilities
├── build/ # Compiled output
├── package.json
├── tsconfig.json
└── vitest.config.tsDevelopment Commands
# Install dependencies
npm install
# Build TypeScript
npm run build
# Watch mode (rebuild on changes)
npm run dev
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Lint code
npm run lintTesting
The project uses Vitest for testing with comprehensive coverage:
# Run all tests
npm test
# Run with coverage report
npm run test:coverage
# Run in watch mode for development
npm run test:watchTest Structure
Each tool has its own test file that covers:
Metadata validation (name, description)
Successful API calls with mocked responses
Error handling (404, network errors, etc.)
Parameter validation with Zod schemas
Pagination support where applicable
Architecture
System Architecture
┌─────────────────────────────────────────────────────────────────┐
│ MCP Client │
│ (Claude Desktop, etc.) │
└───────────────────────────┬─────────────────────────────────────┘
│ stdio
│ MCP Protocol
┌───────────────────────────▼─────────────────────────────────────┐
│ Tableau Public MCP Server │
│ │
│ ┌─────────────────────────────────────────────────────────┐ │
│ │ Server (server.ts) │ │
│ │ - MCP Protocol Handler │ │
│ │ - Tool Registration │ │
│ │ - Request/Response Management │ │
│ └─────────────────────┬───────────────────────────────────┘ │
│ │ │
│ ┌─────────────────────▼───────────────────────────────────┐ │
│ │ Tool Registry (tools.ts) │ │
│ │ 22 Tool Factories │ │
│ └─────────┬──────────┬──────────┬──────────┬──────────────┘ │
│ │ │ │ │ │
│ ┌─────────▼──┐ ┌───▼────┐ ┌─▼─────┐ ┌─▼────────┐ ... │
│ │ User │ │Workbook│ │Social │ │Discovery │ │
│ │ Profile │ │ Tools │ │Tools │ │ Tools │ │
│ │ Tools (3) │ │ (4) │ │ (3) │ │ (3) │ │
│ └─────┬──────┘ └───┬────┘ └─┬─────┘ └─┬────────┘ │
│ │ │ │ │ │
│ ┌─────▼─────────────▼──────────▼──────────▼────────────────┐ │
│ │ Utilities Layer │ │
│ │ ┌──────────┐ ┌──────────┐ ┌─────────┐ ┌──────────┐ │ │
│ │ │ Cached │ │ Error │ │ URL │ │ Config │ │ │
│ │ │ API │ │ Handling │ │ Builder │ │ │ │ │
│ │ │ Client │ │ │ │ │ │ │ │ │
│ │ └─────┬────┘ └──────────┘ └─────────┘ └──────────┘ │ │
│ └────────┼───────────────────────────────────────────────────┘ │
└───────────┼──────────────────────────────────────────────────────┘
│ HTTPS
│
┌───────────▼──────────────────────────────────────────────────────┐
│ Tableau Public REST APIs │
│ │
│ /profile/api/* - User profiles and workbooks │
│ /public/apis/bff/* - Search and discovery │
│ /views/* - Workbook images and thumbnails │
└────────────────────────────────────────────────────────────────────┘Design Patterns
Factory Pattern: Each tool is created by a factory function
Type Safety: Full TypeScript typing with Zod schema validation
Error Handling: Consistent error responses with helpful messages
Modularity: Tools are independent and self-contained
Testability: Mocked API clients for unit testing
Technology Stack
Component | Technology | Purpose |
Runtime | Node.js 20+ | JavaScript runtime |
Language | TypeScript 5.7+ | Type safety and modern JS |
MCP SDK | @modelcontextprotocol/sdk | MCP protocol implementation |
Validation | Zod | Schema validation |
Testing | Vitest | Unit and integration tests |
HTTP Client | Axios | API requests |
Key Features
No Authentication: All Tableau Public APIs are public
Stdio Transport Only: Designed for local MCP client integration
Comprehensive Error Handling: Detailed error messages with suggestions
Pagination Support: Built-in helpers for multi-page results
Logging: Request/response logging to stderr (stdout reserved for MCP)
API Reference
All tools interact with Tableau Public REST APIs. Key endpoints:
Endpoint Category | Base Path | Documentation |
User Profiles |
| User metadata and workbooks |
Workbooks |
| Workbook listings and details |
Social |
| Followers, following, favourites |
Search |
| Content discovery |
Discovery |
| Featured content |
Images |
| Visualisation media |
Troubleshooting
Common Issues
Issue: Server fails to start
Solution: Ensure Node.js 20+ is installed and dependencies are up to date
Issue: Tools return 404 errors
Solution: Verify usernames and workbook URLs are correct and publicly accessible
Issue: Rate limiting errors
Solution: Reduce request frequency or implement delays between calls
Issue: TypeScript compilation errors
Solution: Run
npm installto ensure all types are installed
Logging
The server logs to stderr (stdout is reserved for MCP protocol). Set LOG_LEVEL=debug for detailed logging:
LOG_LEVEL=debug node ./build/index.js 2> server.logContributing
Contributions are welcome! Please follow these steps:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes with tests
Run tests and linting (
npm test && npm run lint)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Development Guidelines
Follow the existing code style and patterns
Write comprehensive tests for new features
Update documentation for API changes
Use meaningful commit messages
Ensure all tests pass before submitting PR
Related Resources
License
MIT License - see LICENSE file for details
Acknowledgments
Built following the architecture patterns from tableau/tableau-mcp
Tableau Public API documentation by @wjsutton
Model Context Protocol by Anthropic
Support
Enjoy this project? Support it in Tableau's Hackathon
For issues and questions:
Open an issue on GitHub Issues
Check existing issues for solutions
Provide detailed reproduction steps for bugs
Made with ❤️ for the Tableau Public and MCP communities
Available Tools
22 toolsdownload_workbook_twbxA
Downloads a Tableau Public workbook as a .twbx file for offline analysis. First verifies that the workbook allows data access (allowDataAccess flag). The .twbx file contains the workbook definition (XML), data extracts, and embedded assets. Returns the file path where the .twbx is saved. Use the unpack_twbx tool to extract and analyze the contents.
Inputs: workbookName (required).
get_favoritesA
Retrieves the list of workbooks favorited by a Tableau Public user. Returns workbook information including repository URLs and direct URLs where available. Favorites indicate content the user finds valuable or interesting. Useful for understanding user preferences and discovering quality visualizations curated by the community.
Inputs: username (required).
get_featured_authorsA
Retrieves authors from Tableau Public community groups. Supports Hall of Fame Visionaries, Tableau Visionaries (default), and Tableau Ambassadors North America. Returns profiles, biographies, specialties, and social links. Pagination supported for all groups (max 12 per request). Useful for discovering influential creators, learning from top community members, and finding quality content sources.
Inputs: group (required), limit (required), startIndex (required).
get_followersA
Retrieves the list of followers for a Tableau Public user. Returns follower usernames, metadata (display names, bios), and their latest workbook details. Supports pagination with index and count parameters. Default returns 24 followers per request (max 24). The index parameter increments by count for pagination (e.g., 0, 24, 48). Useful for analyzing user communities and discovering related authors.
Inputs: count (required), index (required), username (required).
get_followingA
Retrieves the list of accounts a Tableau Public user is following. Returns usernames, metadata (display names, bios), and latest workbook details for each followed account. Supports pagination with index and count parameters. Default returns 24 accounts per request (max 24). The index parameter increments by count for pagination (e.g., 0, 24, 48). Useful for understanding user interests and discovering related content creators.
Inputs: count (required), index (required), username (required).
get_twbx_calculated_fieldsB
Extracts calculated fields, parameters, and field definitions from a Tableau workbook (.twb file). Returns formulas, data types, and field dependencies to understand how visualizations are built. Use with the mainTwbPath from unpack_twbx output. Ideal for learning Tableau techniques from existing visualizations.
Inputs: twbFilePath (required), includeHidden (required), includeDependencies (required).
get_twbx_calculation_dependenciesA
Builds a dependency graph showing which calculations depend on which in a Tableau workbook. Shows calculation hierarchy with depth levels, identifies root calculations (depend only on source fields), leaf calculations (nothing depends on them), and detects circular dependencies. Includes an ASCII tree visualization. Ideal for understanding complex calculation chains. Use with the mainTwbPath from unpack_twbx output.
Inputs: twbFilePath (required), includeSourceFields (required).
get_twbx_data_profileA
Extracts column names from data files in an extracted TWBX package. Supports CSV, Excel (.xlsx/.xls), and JSON files. Notes .hyper and .tde files as unsupported (require Tableau Hyper API). Optionally includes an inventory of embedded images with dimensions. Use with the extraction path from unpack_twbx tool.
Inputs: twbFilePath (required), extractionPath (required), includeImageProfile (required).
get_twbx_lod_expressionsA
Extracts and explains Level of Detail (LOD) expressions from a Tableau workbook. LOD expressions ({FIXED}, {INCLUDE}, {EXCLUDE}) are powerful but complex calculations. This tool parses each LOD, provides human-readable explanations of what they do, categorizes them by common patterns (percent of total, customer cohort, etc.), and includes learning resources. Ideal for understanding and learning from existing LOD calculations. Use with the mainTwbPath from unpack_twbx output.
Inputs: twbFilePath (required), includeUsageContext (required).
get_twbx_workbook_structureA
Extracts complete workbook architecture from a Tableau workbook (.twb file). Returns an overview of data sources (connections, tables, joins), worksheets (chart types, fields on shelves, encodings, filters), dashboards (layout, contained worksheets), and parameters. Ideal for understanding 'what's in this workbook' at a glance. Use with the mainTwbPath from unpack_twbx output.
Inputs: twbFilePath (required), includeFieldDetails (required).
get_user_profileA
Retrieves comprehensive profile information for a Tableau Public user. Returns user metadata including workbook counts, followers, following, favorites, social links, website details, freelance status, and the last 21 workbooks with direct URLs. Useful for getting a complete overview of a user's Tableau Public presence.
Inputs: username (required).
get_user_profile_basicA
Retrieves basic profile information for a Tableau Public user. Returns essential user metadata in a lightweight format. This is a simpler alternative to get_user_profile when you only need core profile details without the full workbook history. Useful for quick profile lookups and user validation.
Inputs: username (required).
get_user_profile_categoriesA
Retrieves workbook categories for a Tableau Public user. Returns user-defined categories containing workbooks, with metadata including category names, contained workbooks, view counts, and favorites. Supports pagination with startIndex and pageSize parameters. Useful for understanding how a user organizes their content.
Inputs: pageSize (required), username (required), startIndex (required).
get_viz_of_dayA
Retrieves Tableau Public's Visualization of the Day (VOTD) winners. VOTD is a curated selection of exceptional visualizations featured by Tableau. Returns winners with workbook titles, authors, feature dates, descriptions, view counts, thumbnails, and direct URLs for viewing on Tableau Public. Supports efficient bulk fetching with 'maxResults' (up to 500, uses parallel pagination for speed). Can filter by month/year (e.g., filterMonth=10, filterYear=2024 for October 2024). Useful for discovering high-quality visualizations and analyzing trends.
Inputs: page (required), limit (required), filterYear (required), maxResults (required), +1 more.
get_workbook_contentsA
Retrieves the complete structure of a Tableau Public workbook including all visible sheets, dashboards, and stories with their repository URLs and direct URLs. Returns sheet metadata, types, configurations, and ready-to-use links for viewing each sheet. Requires the workbook name from the Tableau Public URL (e.g., 'GloboxABTestAnalysis_17009696417070'). Useful for exploring workbook structure and accessing individual visualizations.
Inputs: workbookName (required).
get_workbook_detailsA
Retrieves detailed metadata for a single Tableau Public workbook. Returns comprehensive information including workbook title, description, view names and types, publication dates, author information, view statistics, and direct URL. Requires the workbook name from the Tableau Public URL (e.g., 'GloboxABTestAnalysis_17009696417070'). Useful for getting complete information about a specific workbook.
Inputs: workbookName (required).
get_workbook_imageB
Fetches and optimizes a Tableau Public visualization image, saving it to the filesystem. Scales down images larger than 768px (maintaining aspect ratio) and compresses to 150-400KB target size. Preserves text detail important for dashboard analysis. Returns the file path where the optimized image is saved, along with metadata about size and compression. Requires the workbook repository URL and view name. View names should have spaces and periods removed (e.g., 'Dashboard 1' -> 'Dashboard1').
Inputs: format (required), quality (required), maxWidth (required), viewName (required), +2 more.
get_workbooks_listA
Retrieves a paginated list of workbooks for a Tableau Public user. Returns workbook metadata including titles, view counts, publication dates, thumbnails, sheet counts, and direct URLs for viewing on Tableau Public. Supports pagination with start and count parameters (max 50 per request). Use visibility filter to include or exclude hidden workbooks. Useful for browsing a user's complete workbook portfolio.
Inputs: count (required), start (required), username (required), visibility (required).
get_workbook_thumbnailA
Generates thumbnail URLs for a Tableau Public visualization. Requires the workbook repository URL. The view name is auto-resolved from the workbook's default view if not explicitly provided — this is the recommended usage, since view names frequently differ from workbook names. If workbookName is not provided, the tool automatically removes trailing numeric suffixes (e.g., '_17646104017530') from workbookUrl. Supports two URL formats: thumb path (default) and static path (4_3.png).
Inputs: viewName (required), workbookUrl (required), workbookName (required), useStaticPath (required).
search_visualizationsA
Searches Tableau Public for visualizations or authors matching a query. Returns ranked search results with titles, descriptions, authors, view counts, thumbnails, and direct URLs. The directUrl field provides a ready-to-use link to view each visualization on Tableau Public. Can search for either 'vizzes' (workbooks and visualizations) or 'authors' (content creators). Supports pagination with start and count parameters (max 100 results per request). Useful for content discovery, finding specific topics, and identifying relevant creators.
Inputs: type (required), count (required), query (required), start (required), +1 more.
unpack_twbxA
Extracts and analyzes the contents of a Tableau .twbx file. A .twbx is a packaged workbook containing the workbook XML (.twb), data extracts, and images. Returns the extraction path and a categorized inventory of all files. Categories: twb (workbook XML), data (extracts like .hyper/.tde), image (embedded images), other. Use with files downloaded via download_workbook_twbx tool.
Inputs: filePath (required), extractTo (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools target distinct resources and actions, but get_user_profile and get_user_profile_basic overlap on the same resource with differing detail, and get_workbook_image versus get_workbook_thumbnail could be confused. The descriptions clearly differentiate them, so ambiguity is limited.
Names consistently follow a verb_noun pattern with the majority using the get_ prefix. The exceptions (download_, unpack_, search_) are still action-oriented and snake_case, making the set predictable despite minor deviation.
With 22 tools, this server falls into the borderline heavy range (16–25). The breadth of the domain—profiles, workbooks, social discovery, and twbx analysis—justifies many tools, but some redundancy exists (e.g., two profile tools) that could be consolidated.
The server provides a comprehensive read-only surface for Tableau Public, covering user profiles, workbooks, social interactions, search, and deep twbx file analysis. There are no obvious gaps for the intended exploration and analysis use cases.
Related MCP Connectors
Unified social scraper MCP — profiles, posts, videos across ~40 platforms via Streamable HTTP.
Live X/Twitter data: profiles, tweets, search, followers, lists and trends. 29 read-only tools.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
Publish permanent static sites via MCP/REST. 28 tools. No account or claim link.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables discovery, querying, and exporting of Tableau Cloud dashboards and data sources. Supports searching workbooks, filtering data, and exporting views as PDF, PNG, PowerPoint, CSV, or JSON.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to programmatically read, modify, and query Tableau workbook files (.twb and .twbx) on the local filesystem via 80 tools.10MIT
- AlicenseNot gradedqualityDmaintenance24 MCP tools for SEC financials, FRED economics, US Census demographics, and World Bank data via Streamable HTTP.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that wraps the Tableau REST API and VizQL Data Service to expose tools for listing workbooks/datasources and querying datasources, enabling LLM agents to interact with Tableau Server/Cloud through natural language.-