Install
$ agentstack add mcp-microsoft-powerbi-modeling-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.5.0-beta.10 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.5.0-beta.10. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
✨ Power BI Modeling MCP Server
The Power BI Modeling MCP Server implements the MCP specification to create a seamless connection between AI agents and Power BI semantic models. This project is in Public Preview and implementation may significantly change prior to our General Availability.
The Power BI Modeling 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](#data-privacy-and-llm-providers). > - The Power BI Modeling 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)
- Install Visual Studio Code.
- Install the GitHub Copilot Chat extension.
- Install the Power BI Modeling MCP Visual Studio Code extension.
- 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-modeling-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@microsoft/powerbi-modeling-mcp@latest",
"--start"
]
}
}
Manual download
- 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, platformwin32-x64):https://marketplace.visualstudio.com/_apis/public/gallery/publishers/analysis-services/vsextensions/powerbi-modeling-mcp/0.1.9/vspackage?targetPlatform=win32-x64
- Rename the downloaded
.visxfile to.zip - Unzip the contents to a folder of your choice, for example:
C:\MCPServers\PowerBIModelingMCP - Run
\extension\server\powerbi-modeling-mcp.exe - 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-modeling-mcp": {
"type": "stdio",
"command": "C:\\MCPServers\\PowerBIModelingMCP\\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
| Scenario | Prompt 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 model | Generate 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.
Confirmation prompts
This MCP Server supports the Elicitation MCP protocol, requiring user approval for the following actions:
- Before the first modification made to a semantic model.
- Before the first query executed against a semantic model.
> [!TIP] > You can configure the MCP to skip these confirmations by using the --skipconfirmation option.
🛠️ Available tools
| Tool Name | What It Does | | --------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | connectionoperations | Connect to Power BI Desktop or Fabric workspaces | | databaseoperations | Manage semantic models - connect, create, update, list databases, import/export TMDL folders, deploy to Fabric | | transactionoperations | Control database transactions (begin, commit, rollback, get status) | | modeloperations | Work with the overall model (get, create, update, refresh, get stats, rename) | | tableoperations | Manage tables (create, update, delete, get, list, refresh, rename) | | columnoperations | Manage individual table columns (create, update, delete, get, list, rename) | | measureoperations | Manage individual DAX measures (create, update, delete, get, list, rename, move between tables) | | relationshipoperations | Handle relationships between tables (create, update, delete, activate/deactivate, find) | | daxqueryoperations | Execute, validate, and generate DAX queries against the model | | traceoperations | Perform trace operations on semantic model to capture and analyze Analysis Services events. | | partitionoperations | Manage table partitions (create, update, delete, refresh specific partitions) | | userhierarchyoperations | Work with user-defined hierarchies (create, update, delete levels, reorder) | | calculationgroupoperations | Manage calculation groups and calculation items for time intelligence and other calculations | | securityroleoperations | Configure security roles and row-level security (RLS) table permissions | | perspectiveoperations | Manage perspectives and their members (filtered views of the model for different audiences) | | namedexpressionoperations | Work with named expressions and Power Query parameters (create, update, delete, get, list, rename) | | functionoperations | Manage individual DAX user-defined functions | | cultureoperations | Manage cultures for multi-language support (create, update, delete, get valid culture names) | | objecttranslationoperations | Handle translations for model objects across different cultures/languages | | calendaroperations | Manage calendar objects and time intelligence column groups | | querygroupoperations | Organize and manage query groups for Power Query expressions |
> [!NOTE] > - This project is in Public Preview and tools may significantly change prior to our General Availability. > - 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 powerbi-modeling-mcp
▶️ 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 Name | What It Does | | --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | CreateDAXQuery | Creates 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. | | **
…
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: microsoft
- Source: microsoft/powerbi-modeling-mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.5.0-beta.10 Imported from the upstream source.