Skip to content

Menu

Power BI MCP Server logo

Power BI MCP Server

Published

At a glance

Watch out for
The local server does not support macOS, so Mac users have to use the hosted server.

Microsoft publishes the Power BI Authoring MCP server (the repo and npm package still use the older name, powerbi-modeling-mcp). It gives an agent tools to create and change Power BI semantic models: tables, columns, DAX measures, relationships, security roles, translations and more. It works on the model only. The README says it cannot touch report pages or diagram layouts.

There are two ways to deploy the same server. The local build is generally available, runs on your machine over stdio, and can reach a model open in Power BI Desktop, Power BI Project (PBIP) and TMDL files on disk, or a semantic model in a Fabric workspace. The hosted build is in preview at https://api.fabric.microsoft.com/v1/mcp/powerbi/authoring, uses Streamable HTTP, and only works against Fabric workspaces, but Microsoft handles updates and its activity shows up in Fabric audit logs.

Microsoft's guidance is to pick one, not both. Registering the local and hosted servers together gives the agent two overlapping tool sets, which confuses routing and costs extra tokens on every request.

How it connects

Your AI app

An assistant or agent that supports MCP

Power BI MCP Server

Runs as

  • npx (Node.js)
  • Remote (HTTP)

Gives the agent

  • Connect to a model
  • Edit model objects
  • Advanced modeling
  • Security and audiences
  • Translations
  • DAX and tracing
  • Transactions

Power BI

The data or system the tools act on

Your AI app talks to Power BI MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Connect to a model
connection_operations and database_operations connect to Power BI Desktop or Fabric, list and create databases, import and export TMDL folders, and deploy to Fabric.
Edit model objects
table_operations, column_operations, measure_operations and relationship_operations create, update, rename and delete the core pieces of a semantic model.
Advanced modeling
calculation_group_operations, function_operations, user_hierarchy_operations, partition_operations and calendar_operations cover calculation groups, DAX user-defined functions, hierarchies, partitions and time intelligence.
Security and audiences
security_role_operations configures roles and row-level security, while perspective_operations manages filtered views of the model.
Translations
culture_operations and object_translation_operations add cultures and translate tables, columns and measures.
DAX and tracing
dax_query_operations runs and validates DAX queries, and trace_operations captures Analysis Services events (local server only).
Transactions
transaction_operations begins, commits and rolls back changes, which the Learn page lists as a local-only feature.

Setting it up

In VS Code, the recommended path is to install GitHub Copilot Chat plus the Power BI Authoring MCP extension, then check that powerbi-modeling-mcp is selected in Copilot chat. For a manual local setup, add a stdio server with "command": "npx" and "args": ["-y", "@microsoft/powerbi-modeling-mcp@latest", "--start"], or point command at the powerbi-modeling-mcp.exe from a release ZIP. Before other tools work you must accept the EULA: let the agent call accept_eula after you authorize it, or for unattended runs add --accepteula or set PBI_MODELING_MCP_ACCEPT_EULA=true. Useful flags are --readonly, --authmode=serviceprincipal (with AZURE_CLIENT_ID, AZURE_TENANT_ID and AZURE_CLIENT_SECRET or a certificate path) and --compatibility=Full for Analysis Services. For the hosted server, add a server with "type": "http" and "url": "https://api.fabric.microsoft.com/v1/mcp/powerbi/authoring"; you sign in with Microsoft Entra ID on the first tool call. Then tell the agent which model to open, for example a file in Power BI Desktop or a PBIP folder.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Review a model's naming conventions and bulk rename tables, columns and measures to match one pattern.
  • Write descriptions for every measure and column, explaining the DAX in plain terms.
  • Generate a French translation of a model's tables, columns and measures.
  • Refactor several rolling-average measures into a calculation group with new variants.
  • Run the same DAX query against two versions of a model and compare the results.

Limitations and things to watch

  • The local server does not support macOS, so Mac users have to use the hosted server.
  • Write operations are on by default and an LLM can make unintended changes, so Microsoft tells you to back up the model first or start with --readonly.
  • You need Write permission on the semantic model to change it; with only Build permission the server can just run DAX queries.
  • The hosted server needs a Fabric admin to enable the Power BI MCP tenant setting, and it cannot reach Power BI Desktop, PBIP files, transactions or traces.
  • There is no tenant setting that blocks the local server specifically; the only way to stop it is to disable the XMLA endpoint, which also blocks other XMLA tools.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…