Is the Power BI MCP server safe? What it can reach
What the Power BI MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Microsoft’s Power BI Authoring MCP server runs locally over stdio and signs in through the Azure Identity SDK, using your own Power BI or Fabric permissions. It edits semantic models: tables, measures, relationships, security roles, and can deploy to Fabric. The control that matters most is the --readonly flag, which blocks all writes. The local build does not support macOS.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Power BI Modeling MCP (Microsoft, local authoring server) | Official | active |
It runs as a local process on your machine.
How it signs in
Uses the Azure Identity SDK with interactive sign-in by default, or a service principal with --authmode serviceprincipal. The server acts with your Power BI and Fabric RBAC rights and does not store tokens itself.
What its tools can do
| Kind | Tools |
|---|---|
| Read | connection_operations, dax_query_operations, trace_operations |
| Write | transaction_operations, model_operations, calculation_group_operations, perspective_operations, function_operations, object_translation_operations, calendar_operations, query_group_operations |
| Can’t be undone | database_operations, table_operations, column_operations, measure_operations, relationship_operations, partition_operations, user_hierarchy_operations, security_role_operations, named_expression_operations, culture_operations |
Each of the 21 tools takes an operation parameter, so one tool can read, change or delete depending on the call. Tools are sorted by the most serious operation the README lists for them (delete, deploy or security changes count as destructive). Microsoft’s README says to use its hosted Power BI Authoring server for Fabric workspaces and on a Mac; that server is not covered here.
Built-in limits
| Option | What it does |
|---|---|
--readonly | Safe mode: blocks all write operations to the semantic model. |
--readwrite | Default. Asks for confirmation before applying an edit, once per database. |
--authmode | interactive (default) or serviceprincipal. |
PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS | Allowlist of hosts the server may connect to. Access tokens are sent to these hosts, so list only trusted ones. |
--audit-log-path | Sets the local directory for the audit log (also PBI_MODELING_MCP_AUDIT_LOG_PATH). |
Least-privilege RBAC | Microsoft says clients act on your Fabric RBAC permissions, so use a role that can do no more than the task needs. |
The risks
- An injected instruction could delete tables, measures or relationships, or rewrite row-level security roles, because security_role_operations and the delete operations run with your model permissions.
- database_operations can import TMDL and deploy to Fabric, so a bad prompt could push a changed model to a shared workspace.
- Query results, metadata and schemas flow to the MCP client and then to your LLM provider, so business data in the model can leave your network.
- The README says no tenant admin setting blocks the server; the only block is disabling the XMLA endpoint, which also breaks other tools.
- Microsoft warns that the model can make unintended changes and says to back up the semantic model before any operation.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add powerbi -- npx -y @microsoft/powerbi-modeling-mcp@latest --startClaude Code names MCP tools mcp__powerbi__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__powerbi__database_operations",
"mcp__powerbi__security_role_operations"
],
"ask": [
"mcp__powerbi__transaction_operations",
"mcp__powerbi__model_operations",
"mcp__powerbi__table_operations",
"mcp__powerbi__column_operations",
"mcp__powerbi__measure_operations",
"mcp__powerbi__relationship_operations",
"mcp__powerbi__partition_operations",
"mcp__powerbi__user_hierarchy_operations",
"mcp__powerbi__named_expression_operations",
"mcp__powerbi__culture_operations",
"mcp__powerbi__calculation_group_operations",
"mcp__powerbi__perspective_operations",
"mcp__powerbi__function_operations",
"mcp__powerbi__object_translation_operations",
"mcp__powerbi__calendar_operations",
"mcp__powerbi__query_group_operations"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.powerbi]
command = "npx"
args = ["-y", "@microsoft/powerbi-modeling-mcp@latest", "--start"]
disabled_tools = ["database_operations", "security_role_operations"]Checklist
- Back up the semantic model before the first session.
- Add --readonly to the args until you need edits.
- Sign in with a role that has only the access the task needs.
- Set PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS to trusted hosts only.
- Check the audit log after each editing session.
Checked against the vendor documentation on November 25, 2026. powerbi-modeling-mcp README (Microsoft) · README raw text: tools, flags, security section
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing