
Power BI Authoring MCP Server (Local)
com.microsoft由 microsoft.com 發布v1.0.1更新於 Nov 7, 2026
The Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.
發布方自己的服務:Microsoft Learn MCP
概覽
微軟提供的本機 MCP 伺服器,讓 AI 助理建立、修改與查詢 Power BI 語意模型,支援 Desktop、Fabric 工作區與 PBIP 專案。
- 可以做什麼
- 連線 Power BI Desktop、Fabric 工作區或 PBIP/TMDL 資料夾,管理模型與資料庫,包括匯入匯出與部署。
- 建立、更新、刪除與重新命名資料表、資料行、量值、關聯性、分割區、階層、計算群組、檢視角度、文化與翻譯。
- 執行並驗證 DAX 查詢、進行基準測試,並擷取 Analysis Services 追蹤事件。
- 設定安全性角色與資料列層級安全性,並以開始/提交/復原交易包住修改。
- 提供內建提示詞,用於產生 DAX 查詢、分析效能以及連線 Desktop、Fabric 或 PBIP。
- 適用情境
- 適合用自然語言讓代理完成 Power BI 模型工作,例如批次重新命名、撰寫文件、翻譯、把量值重構為計算群組或測試 DAX。面向在 Power BI Desktop、Fabric 工作區或 Power BI 專案檔案中工作、需要修改模型而非報表的開發人員。
- 執行需求
- 以 stdio 在本機執行;可透過 VS Code 擴充功能搭配 GitHub Copilot 安裝,或用 Node.js 透過 npx 從 npm 套件安裝,也可手動下載執行檔。需要對語意模型具備寫入權限,並透過 XMLA 端點連線。必須先接受 EULA,可透過 accept_eula 工具、--accepteula 參數或 PBI_MODELING_MCP_ACCEPT_EULA 完成。使用服務主體驗證時需要 AZURE_CLIENT_ID、AZURE_TENANT_ID,以及 AZURE_CLIENT_SECRET 或憑證路徑與密碼。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Power BI Authoring MCP Server (Local),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
✨ Power BI Authoring MCP Server
[!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.
[powerbi-modeling-mcp-diagram]
💡 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-5orClaude 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 Authoring 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.
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
--accepteulato the server'sargsarray. - Set
PBI_MODELING_MCP_ACCEPT_EULAtotruein the server's environment.
Only use these options after you have reviewed and agreed to the EULA.
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
- Template:
- Rename the downloaded
.visxfile to.zip - Unzip the contents to a folder of your choice, for example:
C:\MCPServers\PowerBIAuthoringMCP - 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:
🚀 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:
-
For Semantic Model in Fabric Workspace:
-
For Power BI Project files:
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
[!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
[!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.
[!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:
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:
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:
Restart the MCP server after changing the configuration.
[!IMPORTANT] Only add hosts that your organization trusts and intends to use as Analysis Services or Power BI XMLA endpoints. Access tokens are sent to these hosts when the MCP server connects, so controlling the allowlist protects your credentials. Do not add a hostname solely to bypass the validation error without confirming who operates the endpoint.
💬 Feedback and Support
- Check the Troubleshooting guide to diagnose and resolve common issues.
- We're building this in the open. Your feedback is much appreciated, and will help us shape the future of the Power BI Authoring MCP server.
- 👉 Open an issue in the public GitHub repository - we’d love to hear from you!
Considerations and limitations
- You must have Write permission on the semantic model. For more information, see Semantic model permissions.
- This MCP server follows the same rules and behaviors as modeling operations performed by External Tools. Refer to the documentation for more information.
- There is no tenant admin setting that specifically blocks the use of this MCP server. The server connects to semantic models through the XMLA endpoint. To prevent access through the MCP server, you must disable the XMLA endpoint. This also blocks other tools and applications that rely on XMLA connectivity. For more information, see Semantic model connectivity with the XMLA endpoint.
License
Use of this software is subject to the Power BI Authoring MCP Server EULA. NPX installations require explicit acceptance before the MCP tools can be used. See Accept the EULA for the available acceptance methods.
Data Privacy and LLM Providers
The MCP server runs locally and connects to your semantic model using your existing credentials and permissions — it does not bypass any Power BI security controls. However, data retrieved by the MCP server (metadata, schemas, or query results) is sent to the MCP client (e.g., VS Code) and may then be forwarded to the configured LLM provider as part of the conversation context.
In short: AI assistance does not expand data access, but it may transmit accessed data to the LLM provider. Governance efforts should focus on your organization's AI data-handling policies and the LLM provider's terms of service, rather than on Power BI security controls alone.
If you use GitHub Copilot, refer to the GitHub Copilot model hosting documentation for details on how data is shared with external AI model providers.
Security
Your credentials are always handled securely through the official Azure Identity SDK - we never store or manage tokens directly.
MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Power BI Authoring MCP Server, but any MCP client/agent that you choose to implement down to the model provider.
You should follow Microsoft security guidance for MCP servers, including enabling Entra ID authentication, secure token management, and network isolation. Refer to Microsoft Security Documentation for details.
Permissions and Risk
MCP clients can invoke operations based on the user’s Fabric RBAC permissions. Autonomous or misconfigured clients may perform destructive actions. You should review and apply least-privilege RBAC roles and implement safeguards before deployment. Certain safeguards, such as flags to prevent destructive operations, are not standardized in the MCP specification and may not be supported by all clients.
Data Collection
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
Compliance Responsibility
This MCP server may be installed, used and share data with third party clients and services, such as third party LLMs that operate outside Microsoft compliance boundaries. You are responsible for ensuring that any integration complies with applicable organizational, regulatory, and contractual requirements.
Third Party Components
This MCP server may use or depend on third party components. You are responsible for reviewing and complying with the licenses and security posture of any third-party components.
Export Control
Use of this software must comply with all applicable export laws and regulations, including U.S. Export Administration Regulations and local jurisdiction requirements.
No Warranty / Limitation of Liability
This software is provided “as is” without warranties or conditions of any kind, either express or implied. Microsoft shall not be liable for any damages arising from use, misuse, or misconfiguration of this software.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
來源:README.md,提交 2b25def
工具
0版本歷史
6- v1.0.1最新Nov 7, 2026
- v1.0.0Sep 26, 2026
- v0.5.0-beta.16Sep 25, 2026
- v0.5.0-beta.15Sep 24, 2026
- v0.5.0-beta.14Sep 23, 2026
- v0.5.0-beta.13Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Microsoft 整合

Microsoft Learn MCP
com.microsoft官方發布者
一個免費的遠端 MCP 伺服器,讓 AI 助理搜尋微軟官方 Learn 文件、尋找程式碼範例,並把文件頁面抓取為 markdown。

Playwright Cloud Browsers
com.microsoft官方發布者
遠端 MCP 伺服器,為 AI 代理提供受管理的 Playwright 雲端瀏覽器,可建立工作階段、瀏覽並檢視頁面、與頁面元素互動。

Microsoft Sentinel Data Exploration
com.microsoft官方發布者
遠端 Microsoft Sentinel MCP 伺服器,讓助理以自然語言尋找相關資料表,並從 Sentinel 資料湖擷取安全性資料。
Visio
com.microsoft
讓助理透過桌面自動化,在使用者的 Windows 電腦上建立、更新與讀取 Microsoft Visio 圖表。

Microsoft Clarity MCP
由 GitHub 帳號 surendranb 發布
本機 MCP 伺服器,把 Microsoft Clarity 的行為 UX 資料(暴怒點擊、無效點擊、快速返回、JS 錯誤)提供給 AI 助理分析。