Labsco
hetpatel-11 logo

Tableau MCP Server

โ˜… 2

from hetpatel-11

Interact with Tableau Server using natural language to query data and perform administrative tasks.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Tableau MCP Server ๐Ÿš€

A powerful Model Context Protocol (MCP) server that connects Claude Desktop to Tableau Server, enabling natural language interactions with your Tableau data and comprehensive administrative capabilities.

โœจ Features

๐Ÿ“Š Data Access & Analysis

  • List & Browse: Explore all workbooks, views, and data sources
  • Data Extraction: Get CSV data from any Tableau view
  • Visual Export: Download dashboard images in PNG format
  • Complete Datasets: Download entire data sources with all raw data
  • Smart Search: Find content across your Tableau server

๐Ÿ›ก๏ธ Administrative Tools (New!)

  • User Management: List all users with roles and login history
  • Permission Auditing: See exactly who has access to workbooks
  • Group Management: View all groups and member counts
  • Project Oversight: Audit project permissions and settings
  • Site Administration: Get comprehensive site statistics
  • Usage Analytics: Detailed workbook usage and access audits

๐ŸŽฏ Use Cases

For Data Analysts

  • "Show me the sales data from Q4 dashboard"
  • "Export the customer metrics as CSV"
  • "Find all reports containing revenue data"

For Tableau Administrators

  • "Who has access to the Finance workbook?"
  • "List all users who haven't logged in recently"
  • "Show me all groups and their member counts"
  • "Audit the permissions for our HR dashboards"

๐Ÿ› ๏ธ Available Tools

Data Access Tools

ToolDescription
list_workbooksList all available Tableau workbooks
list_viewsList views in a specific workbook
get_view_dataExtract CSV data from any view
get_view_imageGet dashboard/view as PNG image
search_contentSearch across all Tableau content
list_datasourcesList all available data sources
download_datasourceDownload complete raw datasets

Administrative Tools

ToolDescription
list_workbook_permissionsSee who has access to workbooks
list_all_usersView all users with roles and details
list_all_groupsView all groups with member counts
get_user_permissionsGet detailed user permissions
list_projects_permissionsAudit project permissions
get_site_infoGet site statistics and quotas
audit_workbook_usageComprehensive workbook audits
list_user_groupsSee user group memberships

๐Ÿ“‹ MCP Resources

The server exposes Tableau content as MCP resources:

  • tableau://workbooks/{workbook_id} - Workbook metadata
  • tableau://views/{view_id}/data - View data in CSV format

๐Ÿ—๏ธ Architecture

Claude Desktop โ†” MCP Server โ†” Tableau REST API โ†” Tableau Server
                     โฌ‡๏ธ
               [15 Available Tools]
                     โฌ‡๏ธ
            [Data + Admin Capabilities]

๐Ÿ“ Project Structure

Tableau-MCP/
โ”œโ”€โ”€ tableau_mcp_server.py    # Main MCP server implementation
โ”œโ”€โ”€ start_clean.sh           # Server startup script
โ”œโ”€โ”€ requirements.txt         # Python dependencies (includes MCP SDK)
โ”œโ”€โ”€ setup.py                # Setup and configuration script
โ”œโ”€โ”€ env.example             # Environment configuration template
โ”œโ”€โ”€ README.md               # This file
โ””โ”€โ”€ .env                    # Your credentials (create this)

๐Ÿ”’ Security

  • Local Operation: Server runs locally with your permissions
  • Secure Credentials: Uses environment variables for authentication
  • Token Authentication: Supports Tableau Personal Access Tokens
  • No Data Leakage: No data sent to external services

๐Ÿ“ˆ Example Conversations

Data Analysis

User: "Show me all workbooks and find the sales data"
Claude: [Lists workbooks] โ†’ [Finds sales-related content] โ†’ [Extracts data]

User: "Get the customer metrics from the Q4 dashboard as CSV"
Claude: [Locates dashboard] โ†’ [Extracts view data] โ†’ [Provides CSV]

Administration

User: "Who has access to our Finance workbook?"
Claude: [Lists all users and groups with permissions] โ†’ [Shows permission levels]

User: "Show me all users who are site administrators"
Claude: [Lists users by role] โ†’ [Highlights administrators]

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add your improvements
  4. Test thoroughly
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments


Ready to supercharge your Tableau workflows with Claude? Get started now! ๐ŸŽ‰