MCPBI - Tabular Model MCP Server

MCPBI - Tabular Model MCP Server

tabular-mcp•byjonaolden

A Model Context Protocol server that connects MCP-enabled LLM clients to locally running Power BI Desktop tabular models for model inspection, DAX querying, and debugging.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Lists and retrieves detailed metadata about model objects such as tables, columns, measures, and relationships.
  • •Executes custom DAX queries against the model and returns results with metadata such as total rows and truncation status.
  • •Validates DAX query syntax without execution and analyzes query performance with optimization suggestions.
  • •Lists available DAX functions and retrieves detailed function information such as parameters, return type, and DirectQuery compatibility.

BEST FOR

  • •Understanding the structure of an unfamiliar tabular model without manually clicking through Power BI Desktop.
  • •Learning existing DAX measure patterns to suggest consistent new measures.
  • •Iteratively testing and refining DAX expressions with immediate syntax and result feedback.

ABOUT TABULAR-MCP

MCPBI - Tabular Model MCP Server is cataloged as an MCP server attributed to jonaolden. A Model Context Protocol server that connects MCP-enabled LLM clients to locally running Power BI Desktop tabular models for model inspection, DAX querying, and debugging. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCPBI - Tabular Model MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the server protect sensitive data in query results?

Yes, it offers configurable obfuscation strategies: none, all, dimensions (mask text/date fields), or facts (mask numeric fields), using an encryption key.

Are query results truncated to a row limit?

Yes, results are limited to a default of 500 rows, configurable, and include metadata such as totalRows, displayedRows, truncated, and hasMore.

Upstream README

View this exact version on GitHub

README.md · b10c27122631 · Fetched 2026-11-13 12:22:25 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCPBI - Tabular Model MCP Server

This is a Model Context Protocol (MCP) server for locally running Tabular Models, i.e. PowerBI models running on PowerBI Desktop.

This server allows MCP-enabled LLM clients to communicate with your tabular models and help you debug, analyse and compose DAX queries.

Example: Copilot querying Tabular Model via MCP

roocodedemo

How it works

It connects to a local running instance of Tabular models using the AdomdConnection in ADOMD.NET.

Using this connection, the server then allows clients to execute DAX-queries and retrieve model metadata (using DMV queries) through pre-defined tools for high accuracy, as well as custom DAX queries for debugging and development.

Features

Configuration Options

Port

Specify the Power BI Desktop instance port to connect to (required).

# Example: Connect to Power BI Desktop instance on port 56751
dotnet run -- --port 56751

Obfuscation

Protect sensitive data with configurable encryption strategies:

  • None (default): No obfuscation
  • All: Mask all values
  • Dimensions: Mask only text/date fields (keep numeric data visible)
  • Facts: Mask only numeric fields (keep dimensional context)
# Example: Protect customer/product names while keeping sales figures visible
dotnet run -- --port 56751 --obfuscation-strategy dimensions --encryption-key "YourSecureKey123!"

Output Truncation

Automatic row limiting with comprehensive metadata:

  • Default 500-row limit (configurable)
  • Response includes: totalRows, displayedRows, truncated, hasMore
# Example: Increase row limit for analysis
dotnet run -- --port 56751 --max-rows 2000

Tools

list_objects

  • Lists all objects in the model (tables, columns, measures, relationships)
  • Returns object type, name, and basic metadata

get_object_details

  • Retrieves detailed metadata for a specific object (table, column, measure)
  • Returns properties, data types, relationships, and dependencies

list_functions

  • Lists available DAX functions with optional filtering by category or origin
  • Returns function name, description, interface classification, and origin

get_function_details

  • Retrieves comprehensive details for a specific DAX function including full parameter information
  • Returns function signature, parameter requirements, return type, and DirectQuery compatibility

run_query

  • Executes a custom DAX query against the model
  • Returns query results with metadata (total rows, truncated status)

1. Model Discovery

Use [ListTables], [GetTableColumns], and [GetTableRelationships] to quickly understand an unfamiliar model's structure without manually clicking through Power BI Desktop.

2. DAX Assistance

LLM clients can use [ListMeasures] and [GetMeasureDetails] to learn your existing DAX patterns and suggest consistent new measures that follow your naming conventions and calculation styles.

3. Debugging

Combine [RunQuery] with [ValidateDaxSyntax] to iteratively test and refine DAX expressions with immediate feedback on syntax and results.

validate_query

  • Validates DAX query syntax without execution
  • Returns syntax correctness and error messages if applicable

analyze_query_performance

  • Analyzes DAX query performance and provides optimization suggestions
  • Returns execution time, resource usage, and improvement recommendations

Installation

Setup Instructions

Requirements

  • Power BI Desktop (with a PBIX file open for discovery)
  • Windows OS
  • Visual Studio Code (for MCP server integration)
  • .NET 8.0 Runtime

Setup from Prebuilt Release

  1. Download the release from the Releases directory or GitHub releases page and extract to your preferred location.

  2. Open Power BI Desktop with a PBIX file you want to work with.

  3. Get PowerBI instance information

There are several ways to detect Power BI Desktop instances. The easiest is to open Tabular Editor and check the port in the connection string.

Tabular Editor

Simply add the port (63717 in example above) to your MCP server configuration in the next step (you can ignore the database ID, as this server connects to the default model).
If you don't have Tabular Editor, you can use the included discovery tool to find the running instance and database.

Open PowerShell, navigate to the release directory, and run:

cd path\to\release
.\pbi-local-mcp.DiscoverCli.exe

Note: In PowerShell, you must use .\ prefix to run executables from the current directory.

Follow the prompts to:

  • Select the Power BI Desktop instance (identified by port)
  • Choose the database/model to connect to

This creates a .env file with PBI_PORT and PBI_DB_ID in the release directory, which you can reference in your MCP configuration or ignore if you specify the port directly.

  1. Configure MCP server in your editor. For VS Code with Roo, create/edit .roo/mcp.json:
    {
      "mcpServers": {
        "MCPBI": {
          "type": "stdio",
          "command": "path\\to\\release\\mcpbi.exe",
          "cwd": "path\\to\\release",
          "args": ["--port", "YOUR_PBI_PORT"],
          "disabled": false,
          "alwaysAllow": [
            "ListTables",
            "GetTableDetails",
            "GetTableColumns",
            "GetTableRelationships",
            "ListMeasures",
            "GetMeasureDetails",
            "PreviewTableData",
            "RunQuery",
            "ValidateDaxSyntax",
            "AnalyzeQueryPerformance",
            "ListFunctions",
            "GetFunctionDetails"
          ]
        }
      }
    }
    
    Replace path\\to\\release with your actual release directory path and YOUR_PBI_PORT with the port number from PBI instance.

Setup from Source (For Development)

  1. Clone the repository:

    git clone <repository-url>
    cd MCPBI
    
  2. Build the project:

    dotnet build
    
  3. Open Power BI Desktop with a PBIX file.

  4. Run discovery to create .env file:

    dotnet run --project pbi-local-mcp/pbi-local-mcp.csproj discover-pbi
    

    Follow prompts to select instance and database.

  5. Configure MCP server in .roo/mcp.json:

    {
      "mcpServers": {
        "mcpbi-dev": {
          "type": "stdio",
          "command": "dotnet",
          "cwd": "path\\to\\MCPBI",
          "envFile": "path\\to\\MCPBI\\.env",
          "args": [
            "exec",
            "path\\to\\MCPBI\\pbi-local-mcp\\bin\\Debug\\net8.0\\pbi-local-mcp.dll"
          ],
          "disabled": false,
          "alwaysAllow": [
            "ListTables",
            "GetTableDetails",
            "GetTableColumns",
            "GetTableRelationships",
            "ListMeasures",
            "GetMeasureDetails",
            "PreviewTableData",
            "RunQuery",
            "ValidateDaxSyntax",
            "AnalyzeQueryPerformance",
            "ListFunctions",
            "GetFunctionDetails"
          ]
        }
      }
    }
    

    Replace path\\to\\MCPBI with your actual repository path.

Configuration Notes

  • Use either port or envFile: You can specify the Power BI port directly in args or use envFile to load from .env.
  • Port argument: The --port argument in the release configuration connects to the specific Power BI Desktop instance on that port
  • envFile: The development setup uses envFile to automatically load PBI_PORT and PBI_DB_ID from .env
  • alwaysAllow: Lists all tools that can be used without requiring user approval for each invocation
  • Working directory: The cwd parameter sets the working directory where the .env file is located

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCPBI - Tabular Model MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/tabular-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage