
MCP 服务器支持对 Power BI .pbix 文件每一层的完全读写访问——布局、DAX 测量、M 代码、元数据 SQL、VertiPaq 表数据、主题等。
概览
一个MCP服务器,用于读取、写入和评估Power BI .pbix和.pbit文件——PBIX二进制格式由纯Python独立重构——pbix-mcp支持的每个结构都要求,无需模板、骨架或Microsoft二进制文件。生成文件在PBI Desktop中开启,具备完整交互功能:查看数据、添加测量、创建可视化和刷新——已于2026年3月通过PBI Desktop验证。DAX引擎拥有467个函数中全部435个查询可值函数(其余32个被Desktop本身证明无法可查询可值,因此无匹配功能)。两层证明:从桌面自有工作空间引擎捕获的每个函数金色(359个值探针,1e-9容差)和一个完整的语料库1:1匹配——总计、测量×维过滤上下文单元、计算列(v0.9.63;最新扫描534/534个语料库中的可比测量)。
概述(AI 翻译)
一个用于创建、读取、写入和评估Power BI .pbix和.pbit文件的MCP服务器——无需Power BI Desktop。PBIX二进制格式由纯Python独立实现——pbix-mcp支持的每个结构都要求,无需模板、骨架或Microsoft二进制文件。生成文件在PBI Desktop中打开,具备完整交互功能:查看数据、添加度量、创建可视化和刷新——已通过PBI Desktop于2026年3月验证。DAX引擎已在桌面可评估的DAX表面上与Power BI Desktop实现了100%的匹配**——该引擎467个函数中全部435个查询可值函数(其余32个已被Desktop自身证明无法可值,因此无匹配)。两层证明:从桌面自有工作空间引擎捕获的每个函数金色(359个值探针,1e-9容差)和一个完整的语料库1:1匹配——432/432个总计,1,705/1,705个测量×维过滤-上下文单元格,397/397计算列(v0.9.63;最新扫描534/534个语料库中可比较测量)。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
pbix-mcp
An MCP server for creating, reading, writing, and evaluating Power BI .pbix and .pbit files — no Power BI Desktop required. The PBIX binary format is independently reimplemented in pure Python — every structure pbix-mcp’s supported capabilities require, with no templates, skeletons, or Microsoft binaries. Generated files open in PBI Desktop with full interactivity: view data, add measures, create visuals, and refresh — verified with PBI Desktop March 2026. The DAX engine has verified parity with Power BI Desktop on 100% of the DAX surface Desktop can evaluate in a query — all 435 query-evaluable of the engine’s 467 functions (the other 32 are proven not query-evaluable by Desktop itself, so there is nothing to match). Two proof layers: per-function goldens captured from Desktop’s own workspace engine (354 value probes, 1e-9 tolerance) and a full-corpus 1:1 match — 432/432 grand totals, 1,705/1,705 measure×dimension filter-context cells, 397/397 calculated columns (v0.9.63; latest sweep 534/534 comparable measures across the corpus).
Exposes 134 tools covering report creation (all 6 data types, cross-table relationships, CSV/SQLite/SQL Server/MySQL/PostgreSQL/Excel/JSON/Azure SQL data sources, DirectQuery, and DAX measures), layout editing (rename / reorder / hide / duplicate pages, move & copy visuals — identically on classic Report/Layout and service-authored PBIR), visual management, bookmarks, custom visuals, custom HTML/CSS/SVG visuals (with report cross-filtering — see docs/html-visuals.md), service-portable rich content (certified AppSource visual references incl. Deneb, SVG data-URI image measures, Desktop-complete field parameters — see docs/rich-content.md), field parameters, calculation groups, sort-by-column, TMDL export/import + PBIP project open/save, incremental refresh, DAX evaluation (100% of Desktop’s query-evaluable DAX surface — 435 functions, conformance-verified against Desktop; corpus 1:1), RLS security, and binary format internals.
See CHANGELOG.md for version history.
Try It
Generate a complete 3-page Northwind Analytics Dashboard in under a second:
pip install pbix-mcp
python examples/create_showcase.py
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"pbix-mcp": {
"command": "pbix-mcp-server"
}
}
}