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
Creates a PBIX with 6 tables, 5 relationships (including chained cross-table lookups), 4 DAX measures, 3 pages, and 14 visuals. Open showcase_northwind.pbix in Power BI Desktop — everything works: slicers, cross-filtering, drill-through.
Quick Start
git clone https://github.com/d0nk3yhm/pbix-mcp.git
cd pbix-mcp
pip install -e .
Claude Code plugin
The quickest way in Claude Code. You need uv; it fetches the server and Python itself.
/plugin marketplace add d0nk3yhm/pbix-mcp
/plugin install pbix-mcp@pbix-mcp
Check with /mcp that plugin:pbix-mcp:pbix-mcp is connected. See the plugin's README.
Claude Desktop / Claude Code
Add to your MCP config file:
| Platform | Config file |
|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Code | ~/.claude/settings.json (Linux/macOS) or %USERPROFILE%\.claude\settings.json (Windows) |
{
"mcpServers": {
"pbix-mcp": {
"command": "pbix-mcp-server"
}
}
}
Windows note: If pbix-mcp-server is not on PATH, use the full Python path:
{
"mcpServers": {
"pbix-mcp": {
"command": "python",
"args": ["-m", "pbix_mcp.cli"]
}
}
}
Codex Desktop (OpenAI)
pip install git+https://github.com/d0nk3yhm/pbix-mcp.git
- Open Codex Desktop → Settings → MCP → Add Server
- Configure:
- Name:
pbix-mcp
- Command:
pbix-mcp-server
- Arguments: (leave empty)
Generic MCP (stdio)
pbix-mcp-server
# With debug logging:
pbix-mcp-server --log-level debug
Format Reversal Status
Every layer of the PBIX binary format that pbix-mcp's supported capabilities require has been independently reverse-engineered and reimplemented. No templates, skeletons, or Microsoft binaries are used.