by sulaiman013
MCP server for natural language interaction with Power BI datasets
# Add to your Claude Code skills
git clone https://github.com/sulaiman013/powerbi-mcpGuides for using mcp servers skills like powerbi-mcp.
powerbi-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sulaiman013. MCP server for natural language interaction with Power BI datasets. It has 127 GitHub stars.
powerbi-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/sulaiman013/powerbi-mcp" and add it to your Claude Code skills directory (see the Installation section above).
powerbi-mcp is primarily written in Python. It is open-source under sulaiman013 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh powerbi-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
powerbi-mcp gives an AI assistant (Claude, GitHub Copilot or any other MCP client) 94 tools for Power BI. With them the assistant can query semantic models, change them safely, build whole reports from one JSON spec, build custom visuals, and open the result in Power BI Desktop to take a screenshot and check its own work. It is for Power BI developers and BI leads who want an assistant that does the work, and for agent developers who need Power BI tools.
Disclaimer: an independent community project, not affiliated with, endorsed by, or connected to Microsoft Corporation or Anthropic.
build_custom_visual packages a real .pbiviz from a
short definition and a render function, with click to cross-filter, cross-highlighting,
right-click drill through and Power BI tooltips built in.generate_deneb_spec writes Vega-Lite specs for
ten chart kinds and small multiples, with cross-filter, cross-highlight, tooltips and the
context menu.bridge_open opens a .pbip or .pbix in Desktop and waits until
it is ready; bridge_screenshot can capture one visual instead of a whole page.Upgrading a 3.8 spec: a tooltip page with no size is now 320 x 240, and a few inputs 3.8 accepted are now refused. See the changelog.
The project started in November 2025 as a small read-only server for cloud models.
| v1.0 (Nov 2025) | v3.9 (Nov 2026) | |
|---|---|---|
| Tools | 7 | 94 |
| Works with | Power BI Service only (PPU or Premium workspaces) | Power BI Desktop, Power BI Service, PBIP files on disk, and the running Desktop window |
| Can change | Nothing (read-only) | Live models (measures, relationships, in transactions), PBIP files offline (renames, measures, date tables, calculation groups, whole reports), custom visual packages |
| Checks its work | No | Validates DAX before saving, dry-runs file changes, reloads and screenshots the report in Desktop |
| Tests | None | 53 suites with 7,141 checks; CI on Windows and Linux |
| Code size | About 2,000 lines of Python | About 37,800 lines of Python in src/ |
Tool count by release: 7 (v1.0) → 30 (v2.0) → 58 (v3.0) → 82 (v3.7) → 90 (v3.8) → 94 (v3.9).
A few terms first. A semantic model is the data model behind a report (tables, relationships, measures). A measure is a saved formula in DAX, Power BI's formula language. PBIP (Power BI Project) saves the model (as TMDL) and the report (as PBIR) as text files. RLS is row-level security.
Explore and query. List tables, columns, measures and relationships, or ask a question in plain words and let the agent write and run the DAX, on Desktop or a published model.
"Connect to my Power BI Desktop and show me the top 10 products by sales last quarter."
Check model quality. A Best Practice Analyzer (33 rules), an AI-readiness score, storage analysis, a DAX linter with rewrites, a star-schema audit, an orphan-key scan, a naming audit, and a search for columns and measures nothing uses.
"Audit this model and give me the top issues to fix before I ship."
Change models safely. DAX is checked against the model before it is saved, and edits can be held in a transaction. Generate measure suites (time intelligence, ratios, ranks), date tables, calculation groups and hierarchies, live or straight into PBIP files.
"Generate the time-intelligence measures for 'Total Sales' over Date[Date] and add them to the model."
Rename safely across model and report. A rename updates the model and every visual, filter and bookmark that uses the name, in one change that writes all files or none.
"What uses the 'Customer ID' column? Rename it to 'Customer Key' everywhere."
Build reports as code. Describe the report once in a JSON spec and the server writes the files. Applying it again changes nothing; a mistake stops the apply before any file is written. It also generates HTML and SVG measures, audits a report's design and stages it for publishing.
"Build a two-page report from this spec, with a drillthrough page for customer segment."
Custom visuals and Deneb. Build a real .pbiviz from a short definition, or generate a Deneb
chart. Unlike an HTML measure, both cross-filter the page on click and offer drill through.
"Turn this ranked list into a custom visual I can click to filter the page."
See and verify in Power BI Desktop. Through Microsoft's Desktop Bridge (Desktop June 2026 or later) the agent opens a report, hot-reloads it after editing the files, and takes screenshots.
"Add the chart, reload Desktop, and screenshot the page so you can check the layout."
Security and governance. Tools that run your DAX accept queries only and apply column policies, PII masking and an audit log. A read-only mode lets an agent look but not touch.
"Show me the security status and check that the audit log has not been changed."
Operations and fleet. Diff a model against a snapshot, run a pre-deploy gate and DAX regression tests, explain a failed refresh, test every RLS role; admins get tenant-wide lineage.
"Why did the last refresh fail, and what should I do about it?"
Your MCP client starts the server on your machine and talks to it over stdio. Every call passes one request boundary (read-only gate, query guard, access policies, secret redaction), then takes one of four paths. The live paths need Windows; the PBIP path runs on any OS.
flowchart LR
agent["AI agent<br/>(any MCP client)"]
server["powerbi-mcp<br/>request boundary + 94 tools"]
desktop["Power BI Desktop<br/>local model"]
service["Power BI Service<br/>published models"]
pbip["PBIP project<br/>TMDL + PBIR files"]
bridge["Desktop Bridge<br/>the running Desktop window"]
agent -->|"tool calls over stdio"| server
server -->|"DAX queries (ADOMD.NET)<br/>live model edits (TOM)"| desktop
server -->|"DAX over XMLA<br/>REST and admin APIs"| service
server -->|"reads and rewrites files<br/>offline, no Power BI needed"| pbip
server -->|"open, hot-reload, screenshot<br/>(local named pipe)"| bridge
Microsoft ships official Power BI MCP servers in preview: a remote one for chatting with data and a local one for authoring semantic models. This project complements them with renames that also fix the report, reports built from a spec, an access-policy layer, RLS testing, and offline PBIP work with no Fabric capacity. Details: docs/ARCHITECTURE.md.
| To use | You need |
|---|---|
| Offline tools (PBIP editing, report spec, generators, linters, audits, security) | Any OS, Python 3.10+ |
| Power BI Desktop live (queries, validation, live edits) | Windows 10/11, Power BI Desktop, Python 3.10+, ADOMD.NET (plus AMO/TOM for edits) |
| Desktop Bridge (open, hot-reload, screenshots) | Power BI Desktop June 2026 or later, preview option "Enable external tool access to Power BI Desktop through secure local APIs" (File > Options > Preview features; on by default) |
| Power BI Service | An Azure AD service principal; XMLA needs Premium, PPU or Fabric capacity |
Both requirement files pin the MCP Python SDK to mcp>=1.10.0,<2; the server does not run on
mcp 2.x yet and says so at start-up.
Analysis Services client libraries (live connectivity only). Newer Power BI Desktop builds no longer ship ADOMD.NET. Install SQL Server Management Studio (SSMS), or fetch both NuGet packages once and point the