
powerbi-mcp
by sulaiman013·★ 111·Score 48
An enterprise-grade MCP server for Power BI that enables AI assistants to interact with datasets via natural language queries, supporting both desktop and cloud environments.
Overview
Power BI MCP Server bridges AI assistants with Microsoft Power BI through the Model Context Protocol. It provides a unified interface for querying data, managing models, and performing bulk operations across local .pbix files and cloud-hosted datasets. The server features advanced security with PII detection, audit logging, and configurable access policies. Its standout capability is the PBIP Connector, which enables safe refactoring operations that update both semantic models and report visuals simultaneously, preventing common issues where renaming tables breaks report references.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need AI assistants to interact with Power BI datasets through natural language, especially when working with complex model refactoring while preserving report visual integrity.
When NOT to choose this
Avoid this if you're not already using Power BI, need write access to datasets (this primarily focuses on read/analysis operations), or require cross-platform support (Windows-only).
Tools this server exposes
12 tools extracted from the READMEdesktop_discover_instancesAuto-discover running Power BI Desktop instances
desktop_connectConnect to a specific Power BI Desktop instance with optional RLS role
desktop_execute_daxExecute DAX queries against Power BI Desktop model with security processing
list_workspacesList accessible Power BI Service workspaces
list_datasetsList datasets in a specified Power BI workspace
execute_daxExecute DAX queries against Power BI Service datasets
desktop_list_rls_rolesList Row-Level Security roles defined in the model
desktop_set_rls_roleActivate a specific RLS role for testing data access
scan_table_dependenciesAnalyze dependencies before renaming tables/columns/measures
batch_update_measuresBulk update measure expressions in the model
pbip_rename_tablesSafely rename tables in PBIP projects (updates model + visuals + DAX)
pbip_load_projectLoad a PBIP project for editing operations
Comparable tools
Installation
# Install via pip
pip install powerbi-mcp
# Configure Claude Desktop
{
"mcpServers": {
"powerbi": {
"command": "python",
"args": ["-m", "powerbi_mcp"],
"env": {
"POWERBI_MCP_WORKSPACE": "your_workspace_path"
}
}
}
}FAQ
- Can this server work with both Power BI Desktop and Power BI Service?
- Yes, the server supports dual connectivity - it can interact with both local Power BI Desktop instances and cloud-hosted Power BI Service through XMLA endpoints.
- How does the server handle renaming tables without breaking visuals?
- The PBIP Connector uses text-based editing of TMDL files and JSON manipulation of report definitions to update both model layer and report layer references simultaneously, ensuring no visual references are broken after renaming operations.
Compare powerbi-mcp with
Last updated · Auto-generated from public README + GitHub signals.