✨ Power BI Authoring MCP Server

MCP serverAI & models

Your AI can help you with Power BI semantic modeling. This community-built addition brings Power BI's semantic modeling capabilities to your AI, so you can work on your models together. The code is available on GitHub.

Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.

Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.

What your AI can do with it

  • Work on Power BI semantic models together with your AI
  • Get help with semantic modeling tasks in Power BI
  • Ask your AI questions about Power BI semantic modeling

Getting started

  1. Save this item in Your setup as a reference.
  2. Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
  3. Check this page for availability before trying to install it through Ahel.

From the project's README

As published by microsoft/powerbi-modeling-mcp in README.md.

[!IMPORTANT] When authoring semantic models in a Fabric workspace, use the remote (hosted) Power BI Authoring MCP server. It requires no local installation, and Microsoft manages updates. See Power BI Authoring MCP server to compare the remote and local options.

The Power BI Authoring MCP Server implements the MCP specification to create a seamless connection between AI agents and Power BI semantic models.

The Power BI Authoring MCP Server brings Power BI semantic modeling capabilities to your AI agents through a local MCP server. This allows developers and AI applications to interact with Power BI models in entirely new ways, from using natural language to execute modeling changes to autonomous AI agentic development workflows.

💡 What can you do?

  • 🔄 Build and Modify Semantic Models with Natural Language - Tell your AI assistant what you need, and it uses this MCP server to create, update, and manage tables, columns, measures, relationships, and more... across Power BI Desktop and Fabric semantic models.

  • ⚡ Bulk Operations at Scale - AI applications can execute batch modeling operations on hundreds of objects simultaneously — bulk renaming, bulk refactoring, model translations, or model security rules - with transaction support and error handling, turning hours of repetitive work into seconds.

  • ✅ Apply modeling best practices - Easily evaluate and implement modeling best practices against your model.

  • 🤖 Agentic Development Workflows - Supports working with TMDL and Power BI Project files, enabling AI agents to autonomously plan, create, and execute complex modeling tasks across your semantic model codebase.

  • 🔍 Query and Validate DAX - AI assistants can execute and validate DAX queries against your model, helping you test measures, troubleshoot calculations, and explore your data

📹 Watch the video for an end-to-end demo.

[!WARNING]

  • Use caution when connecting an AI Agent to a semantic model. The underlying LLM may produce unexpected or inaccurate results, which could lead to unintended changes. Always create a backup of your model before performing any operations.
  • LLMs might unintentionally expose sensitive information from the semantic model, including data or metadata, in logs or responses. Exercise caution when sharing chat sessions. See Data Privacy and LLM Providers.
  • The Power BI Authoring MCP server can only execute modeling operations. It cannot modify other types of Power BI metadata, such as report pages or semantic model elements like diagram layouts.
  • The AI model you select directly influences the quality and relevance of the responses you receive. For the best results, choose a deep-reasoning model such as GPT-5 or Claude Sonnet 4.5. You can find more details about available models in the GitHub Copilot AI model comparison.

📦 Installation

The easiest way to install this MCP Server is by using the Visual Studio Code extension extension together with GitHub Copilot. However, you can also manually install it in any other MCP client.

Visual Studio Code (Recommended)

  1. Install Visual Studio Code.

  2. Install the GitHub Copilot Chat extension.

  3. Install the Power BI Authoring MCP Visual Studio Code extension.

  4. Open GitHub Copilot chat and confirm the powerbi-modeling-mcp is available and selected.

[!NOTE] If you do not see powerbi-modeling-mcp in the available tool list, verify that the MCP servers in Copilot option is enabled in Copilot settings on GitHub.com. For enterprise accounts, this option is disabled by default and must be enabled by an administrator.

Manual

This MCP Server can also be configured across other IDEs, CLIs, and MCP clients.

Node Package Executor (NPX) (requires Node.js)

Add the JSON configuration to your MCP client. Node will automatically download the MCP server from the @microsoft/powerbi-modeling-mcp npm package.

{
	"powerbi-authoring-local": {
			"type": "stdio",
			"command": "npx",
			"args": [
				"-y",
				"@microsoft/powerbi-modeling-mcp@latest",
				"--start"				
			]
		}	
}
Accept the EULA

Before you can use the npm package, you must review and accept the Power BI Authoring MCP Server EULA. The MCP server blocks all other tool calls until you accept it.

In an interactive session, your agent can call the accept_eula tool on your behalf after you explicitly authorize it. The server saves the acceptance in a local configuration on your machine, so you are not prompted again.

For unattended execution, accept the EULA through either the command-line argument or environment variable:

  • Add --accepteula to the server's args array.
  • Set PBI_MODELING_MCP_ACCEPT_EULA to true in the server's environment.

Only use these options after you have reviewed and agreed to the EULA.

Manual download

  1. Download the VSIX package for the version you want using the URL below:
    • Template: https://marketplace.visualstudio.com/_apis/public/gallery/publishers/analysis-services/vsextensions/powerbi-modeling-mcp/[version]/vspackage?targetPlatform=[platform]
    • Example (version 0.1.9, platform win32-x64): https://marketplace.visualstudio.com/_apis/public/gallery/publishers/analysis-services/vsextensions/powerbi-modeling-mcp/0.1.9/vspackage?targetPlatform=win32-x64
  2. Rename the downloaded .visx file to .zip
  3. Unzip the contents to a folder of your choice, for example: C:\MCPServers\PowerBIAuthoringMCP
  4. Run \extension\server\powerbi-modeling-mcp.exe
  5. Copy the MCP JSON registration from the console and register it in your preferred MCP client tool.

Example of config that should work in most MCP clients:

{
	"powerbi-authoring-local": {
		"type": "stdio",
		"command": "C:\\MCPServers\\PowerBIAuthoringMCP\\extension\\server\\powerbi-modeling-mcp.exe",
		"args": [
			"--start"                
		],
		"env": {}			
	}	
}

🚀 Get started

First, you must connect to a Power BI semantic model, which can reside in Power BI Desktop, Fabric workspace or in Power BI Project (PBIP) files.

  • For Power BI Desktop:

    Connect to '[File Name]' in Power BI Desktop
    
  • For Semantic Model in Fabric Workspace:

    Connect to semantic model '[Semantic Model Name]' in Fabric Workspace '[Workspace Name]'
    
  • For Power BI Project files:

    Open semantic model from PBIP folder '[Path to the definition/ TMDL folder in the PBIP]'
    

Once the connection is established, you can use natural language to ask the AI agent to make any modeling changes. To get started, try one of the following scenarios.

Example scenarios

ScenarioPrompt examples
Analyze naming convention and bulk rename.Analyze my model’s naming conventions and suggest renames to ensure consistency.Analyze the naming convention of the ‘Sales’ table and apply the same pattern across the entire model.
Set descriptions across your model for documentation.Add descriptions to all measures, columns, and tables to clearly explain their purpose and explain the logic behind the DAX code in simple, understandable terms.
Translate your semantic model.Generate a French translation for my model including tables, columns and measures.
Refactor measures into Calculation Groups or UDF.Refactor measures 'Sales Amount 12M Avg' and 'Sales Amount 6M Avg' into a calculation group and include new variants: 24M and 3M.
Refactor your queries to use semantic model parameters.Analyze the Power Query code for all tables, identify the data source configuration, and create semantic model parameters to enable easy switching of the data source location.
Benchmark DAX queries against multiple models.Connect to semantic model 'V1' and 'V2. And benchmark the following DAX query against both models. [DAX Query]
Document your semantic modelGenerate a Markdown document (.md) that provides complete, professional documentation for a Power BI Semantic Model. Use a simple mermaid diagram to ilustrate the table relationships; Document each measure including the DAX code and a description of the business logic using business friendly names; Document row level filters; Document the data sources by analyzing the Power Query code.

[!TIP] The scenarios above are just examples. This MCP server equips your agents with modeling tools for any type of model change, and with the right prompt and context, you can automate virtually any modeling task.

🛠️ Available tools

Tool NameWhat It Does
connection_operationsConnect to Power BI Desktop or Fabric workspaces
database_operationsManage semantic models - connect, create, update, list databases, import/export TMDL folders, deploy to Fabric
transaction_operationsControl database transactions (begin, commit, rollback, get status)
model_operationsWork with the overall model (get, create, update, refresh, get stats, rename)
table_operationsManage tables (create, update, delete, get, list, refresh, rename)
column_operationsManage individual table columns (create, update, delete, get, list, rename)
measure_operationsManage individual DAX measures (create, update, delete, get, list, rename, move between tables)
relationship_operationsHandle relationships between tables (create, update, delete, activate/deactivate, find)
dax_query_operationsExecute and validate DAX queries against the model
trace_operationsPerform trace operations on semantic model to capture and analyze Analysis Services events.
partition_operationsManage table partitions (create, update, delete, refresh specific partitions)
user_hierarchy_operationsWork with user-defined hierarchies (create, update, delete levels, reorder)
calculation_group_operationsManage calculation groups and calculation items for time intelligence and other calculations
security_role_operationsConfigure security roles and row-level security (RLS) table permissions
perspective_operationsManage perspectives and their members (filtered views of the model for different audiences)
named_expression_operationsWork with named expressions and Power Query parameters (create, update, delete, get, list, rename)
function_operationsManage individual DAX user-defined functions
culture_operationsManage cultures for multi-language support (create, update, delete, get valid culture names)
object_translation_operationsHandle translations for model objects across different cultures/languages
calendar_operationsManage calendar objects and time intelligence column groups
query_group_operationsOrganize and manage query groups for Power Query expressions

[!NOTE]

  • You can ask AI to explain what tools are available and show examples of how to use them. For example: Tell me with some examples what I can do with the Power BI Authoring MCP server

▶️ Available prompts

This MCP server includes built-in prompts to help you get started. In Visual Studio Code, access the available MCP prompts by typing the / command in the chat.

Prompt NameWhat It Does
CreateDAXQueryCreates a DAX query from your semantic model and natural language question. Attaches the dax_query_instructions_and_examples resource to provide the LLM with DAX language context.
RunDAXQueryWithMetricsExecutes the DAX query with option to clear the cache and return only the execution metrics.
AnalyzeDAXQueryAnalyzes DAX query performance by running it with a cleared cache and reviewing execution metrics for potential issues.
ConnectToPowerBIDesktopSearches for the Power BI Desktop Analysis Services instance that matches the file name and connects to it.
ConnectToFabricConnects to a semantic model in a Fabric Workspace.
ConnectToPBIPLoads the TMDL definition from the semantic model in the Power BI Project files. Attaches the powerbi_project_instructions resource to provide the LLM with Power BI Project (PBIP) context.

[!NOTE] Some prompts also attach resources that provide important context for the LLM.

⚙️ Settings

The MCP server supports several command line options and environment variables:

Command line optionDefaultDescription
--startStarts the MCP server; necessary for server registration with MCP client.
--readwriteYesEnabled by default, enables write operations with confirmation prompt before applying an edit to your semantic model (once per database).
--readonlySafe mode, prevents any write operations to your semantic model
--compatibilityPowerBIBy default, it is optimized for Power BI semantic models. Change the setting to Full if you want to run this MCP server against Analysis Services databases.
--authmodeinteractiveSet authentication mode: serviceprincipal or interactive.
--accepteulaAccepts the EULA for unattended execution.
Environment variable nameDefaultDescription
AZURE_CLIENT_IDThe application (client) ID of the Microsoft Entra service principal. Required when --authmode=serviceprincipal.
AZURE_TENANT_IDThe Microsoft Entra tenant (directory) ID. Required when --authmode=serviceprincipal or force a specific tenant with interactive authentication.
AZURE_CLIENT_SECRETThe client secret for the service principal. Required when --authmode=serviceprincipal and using secret-based authentication.
AZURE_CLIENT_CERTIFICATE_PATHPath to a PFX/PEM certificate file for the service principal. Required when --authmode=serviceprincipal and using certificate-based authentication instead of a client secret.
AZURE_CLIENT_CERTIFICATE_PASSWORDPassword for the certificate file, if the certificate is password-protected. Only used when --authmode=serviceprincipal with certificate-based authentication.
PBI_MODELING_MCP_ACCEPT_EULAfalseSet to true to accept the EULA for unattended execution.
PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTSComma-separated list of trusted custom hostnames that the MCP server can use for Analysis Services or Power BI XMLA connections.

For Visual Studio Code, you can set the command line options and environment variables in the User Settings:

Open Visual Studio Code user settings and search for @ext:Microsoft.powerbi-modeling-mcp.

For manual installations, you can configure command-line options using the args property and set environment variables using the env property in the MCP Server registration JSON:

{
"servers": {
		"powerbi-authoring-local": {
			"command": "[Path To MCP Server folder]\\powerbi-modeling-mcp.exe",
			"args": [
				"--start"                
				, "--authmode=interactive"				   				
			],
			"type": "stdio"
		}
	}
}

Connection host allowlist

To connect to a non-Power BI endpoint, such as Azure Analysis Services or SQL Server Analysis Services, add its hostname to the PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS environment variable. Separate multiple hostnames with commas:

{
  "env": {
    "PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS": "xmla.contoso.example,another-xmla.contoso.example,sqlserver_01:8373"
  }
}

Restart the MCP server after changing the configuration.

Shortened here. Read the whole README on GitHub.

Signals

GitHub stars
1k
Forks
211
Last commit
Sep 2026
Weekly_downloads
18k weekly_downloads

What people say

Users report that the Power BI Modeling MCP Server lets them connect Power BI semantic models to agents like Claude in plain English, avoiding constant switching between DAX, visuals, and docs, with a straightforward setup. No recurring complaints appear in these posts; several merely announce or link the tool without usage detail.

Praised for
talk to your model in plain English via Claude/ChatGPT
straightforward setup in VS Code
avoids switching between DAX, visuals, and docs

Summarized from 10 public posts. Opinions are theirs, not Ahel's.

Advanced
Delivery
powerbi-modeling-mcp MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
Item type
mcp-server
Key
com-microsoft-powerbi-modeling-mcp
Source
github.com/microsoft/powerbi-modeling-mcp