powerbi-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., "@powerbi-mcp-serverlist all tables and their measures"
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.
Power BI Desktop MCP Server
⚠️ Alpha version – APIs and behaviours may change without notice.
Power BI Desktop MCP Server lets Claude (or any MCP client) talk to a running Power BI Desktop instance using natural language. It bridges the Model Context Protocol to the Tabular Object Model so you can inspect, optimize, and author DAX without leaving chat.
Installation
Step-by-step setup (Power BI prerequisites, .NET libraries, environment variables) lives in INSTALLATION.md.
For local development:
pip install -e .
# or install from the current directory:
pip install .Related MCP server: powerbi-ai-mcp
Quick Example
List the tables in your current Power BI model:
python examples/list_model_info.py --include-columnsExport measures to the knowledge base:
python examples/export_measures_to_knowledge_base.py --project "Executive Dashboard"Run the optimizer on an expression:
python examples/optimize_dax.py --expr "CALCULATE(SUM(Sales[Amount]), FILTER(ALL(Date), Date[Year] = 2024))"Configuration
Copy
.env.exampleto.envand setTOM_DLL_PATHif the Microsoft Analysis Services DLLs are not auto-detected. Optional variables includeLOG_LEVEL,MCP_KNOWLEDGE_BASE, andPOWERBI_WORKSPACE_NAME.Add the CLI entry point to Claude Desktop (or any MCP host):
{ "mcpServers": { "powerbi": { "command": "powerbi-mcp-server", "args": [] } } }The CLI is a thin wrapper around
python -m powerbi_mcp.server, so either invocation works for deployments and debugging.
Features
DAX code generation and measure creation
Measure and table metadata inspection
DAX optimizer with rule-based suggestions
TMDL import/export helpers
Knowledge base bridge for storing curated measures
Example scripts for quick automation (
examples/directory)
Known Issues
Power BI visuals live outside the XMLA endpoint, so visual creation/editing is not supported.
The server connects to the most recently opened Power BI Desktop workspace; multiple instances are not yet multiplexed.
Write operations require the Power BI model to allow external tools and, in some scenarios, elevated permissions.
pythonnetrelies on local Microsoft Analysis Services DLLs; misconfiguredTOM_DLL_PATHis the most common setup failure.
Contributing
Pull requests are welcome. Please:
Open an issue describing the change if it alters behaviour or APIs.
Keep additions formatted with
ruff/blackstyle conventions (if configured) and include type hints.Add or update example scripts/tests where it helps illustrate new functionality.
Run the example scripts or manual smoke tests before submitting.
Issues and feature requests are tracked at the repository’s GitHub Issues page.
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
- BasedashOAuthcom.basedash
Governed BI MCP. Ask questions of live company data and list workspace sources via OAuth.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables Claude AI to analyze Power BI Desktop models with comprehensive capabilities including DAX analysis, performance monitoring with Storage Engine/Formula Engine breakdown, VertiPaq statistics, and natural language querying of model structure and data.-
- FlicenseNot gradedqualityDmaintenanceEnables controlling Power BI with AI through natural language commands for creating DAX measures, explaining metrics, suggesting KPIs, and organizing models.-
- AlicenseBqualityBmaintenanceMCP server for interacting with local Power BI Desktop and .pbip projects, enabling DAX queries, model documentation, measure editing, and PBIR visual management via natural language.9072 PyPI1Apache 2.0
- FlicenseAqualityCmaintenanceEnables natural-language interaction with Power BI REST API through MCP tools, allowing GenAI applications to access approved business intelligence capabilities and analytics.8-