Integrations
Used as a dependency for data processing operations in the PBIXRay server, supporting statistical analysis and data manipulation of Power BI models.
PBIXRay MCP Server
A Model Context Protocol (MCP) server for PBIXRay.
This MCP server exposes the capabilities of PBIXRay as tools and resources for LLM clients to interact with Power BI (.pbix) files.
Features
- Loading and analyzing PBIX files
- Data model exploration
- Listing tables in the model
- Retrieving model metadata
- Checking model size
- Getting model statistics
- Getting comprehensive model summary
- Query language access
- Viewing Power Query (M) code
- Accessing M Parameters
- Exploring DAX calculated tables
- Viewing DAX measures
- Examining DAX calculated columns
- Data structure analysis
- Retrieving schema information
- Analyzing table relationships
- Accessing table contents with pagination
The list of tools is configurable, so you can choose which tools you want to make available to the MCP client. This is useful if you don't use certain functionality or if you don't want to expose sensitive information.
Tools
Tool | Category | Description |
---|---|---|
load_pbix_file | Core | Load a Power BI (.pbix) file for analysis |
get_tables | Model | List all tables in the model |
get_metadata | Model | Get metadata about the Power BI configuration |
get_power_query | Query | Display all M/Power Query code used for data transformation |
get_m_parameters | Query | Display all M Parameters values |
get_model_size | Model | Get the model size in bytes |
get_dax_tables | Query | View DAX calculated tables |
get_dax_measures | Query | Access DAX measures with filtering by table or measure name |
get_dax_columns | Query | Access calculated column DAX expressions with filtering options |
get_schema | Structure | Get details about the data model schema and column types |
get_relationships | Structure | Get the details about the data model relationships |
get_table_contents | Data | Retrieve the contents of a specified table with pagination |
get_statistics | Model | Get statistics about the model with optional filtering |
get_model_summary | Model | Get a comprehensive summary of the current Power BI model |
Usage
WSL (Recommended)
Add the server configuration to your client configuration file. For example, for Claude Desktop:
WSL Path conversion (Claude Project instructions for instance)
When using the PBIXRay MCP Server in WSL with Claude Desktop on Windows, you need to be aware of path differences when loading PBIX files.
Windows paths (like C:\Users\name\file.pbix
) cannot be directly accessed in WSL. Let your AI assistant know how to convert between pats by adding
"Note that mcp server is running in wsl. Windows paths (like C:\Users\name\file.pbix) cannot be directly accessed in WSL. Instead, use WSL paths when referencing files:
Windows: C:\Users\name\Downloads\file.pbix"
WSL: /mnt/c/Users/name/Downloads/file.pbix" to project instructions or similar.
Command Line Options
The server supports several command line options:
--disallow [tool_names]
: Disable specific tools for security reasons--max-rows N
: Set maximum number of rows returned (default: 100)--page-size N
: Set default page size for paginated results (default: 20)
Command-line options can be added as needed in config json:
Query Options
Tools support additional parameters for filtering and pagination:
Filtering by Name
Tools like get_dax_measures
, get_dax_columns
, get_schema
and others support filtering by specific names:
Pagination for Large Tables
The get_table_contents
tool supports pagination to handle large tables efficiently:
Development and testing
You can install PBIXRay MCP Server:
Development Installation
For developers working on the project:
- Clone the repository:Copy
- Install in development mode:Copy
- If installing from source, create a virtual environment and install dependencies:Copy
Testing with Sample Files
The repository includes sample files and test scripts to help you get started:
The test scripts will help you understand how to interact with the server using the sample PBIX files provided in the demo/
directory.
Development Mode
To test the server during development, use the MCP Inspector:
This starts an interactive session where you can call tools and test responses.
Project Structure
Contributions
Contributions are much welcomed!
Credits
- Hugoberry - Original PBIXRay library
- rusiaaman - WCGW (This MCP was fully written by Claude using wcgw)
License (claude insists on adding these)
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol enabling AI clients to interact with PowerBI Models by querying metadata through PBIXRay python package.
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.Last updated -TypeScriptMIT License
- AsecurityFlicenseAqualityImplements the Model Context Protocol to allow AI models to access and interact with blockchain data, including reading contract states, retrieving events, and accessing transaction information across various networks.Last updated -104530TypeScript
- -securityAlicense-qualityA streamlined foundation for building Model Context Protocol servers in Python, designed to make AI-assisted development of MCP tools easier and more efficient.Last updated -12PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI models to create and manipulate PowerPoint presentations with advanced features like financial charts, formatting, and template management.Last updated -1Python