Microsoft data and AI / practical developer guides
Power BI MCP Server Setup for Desktop and Fabric
Where is your model, and what do you want to do with it? Pick a setup below, connect to one target and run the read-only check before approving a model edit.
1. Choose by task, not by the word remote
MCP standardizes how a client discovers and calls tools. It does not make every server interchangeable, grant permissions or guarantee generated DAX is correct. VS Code is a host, its agent has an MCP client, and the server exposes the actual capabilities.
| Need | Supported starting point | Boundary |
|---|---|---|
| Create measures, relationships, tables or security roles | Power BI Authoring MCP | Model authoring; Write permission for changes. |
| Work with an open Desktop model or files on disk | Local Authoring MCP | Hosted services cannot read your local Desktop process or PBIP folder. |
| Answer business questions over existing Power BI data | Fabric IQ MCP | Read-only tools; caller’s existing permissions. |
| Create report pages, visuals and layouts | Power BI report skill/tooling | Authoring MCP is not a report-layout editor. |
The earlier Power BI consumption endpoint is still documented for existing integrations. Its tool names, service-principal behavior and tenant switch must not be copied as the contract for Fabric IQ MCP. For new consumption work, follow the current Fabric IQ documentation.
3. Register one authoring server and verify the target
The Power BI authoring plugin already registers the local server in its normal installation path. Do not add a duplicate manual server unless you intentionally change the setup.
Hosted setup for a Fabric workspace model
Use the workspace and semantic model names as a pair. In VS Code, register the hosted endpoint with this configuration. After sign-in, ask the agent to list the measures for that specific model. Compare a familiar measure name with the model in your workspace before requesting changes.
{
"servers": {
"powerbi-authoring-remote": {
"type": "http",
"url": "https://api.fabric.microsoft.com/v1/mcp/powerbi/authoring"
}
}
}Local setup for Power BI Desktop or PBIP
For a Desktop session, open the intended file first. For a project on disk, identify its semantic-model definition folder. If the authoring plugin has already registered the local server, go straight to the connection check. For a manual VS Code installation, use this configuration.
{
"servers": {
"powerbi-authoring-local": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@microsoft/powerbi-modeling-mcp@latest", "--start"]
}
}
}These are alternative configurations, not instructions to enable both. Client configuration schemas differ: do not copy VS Code’s servers wrapper into a client that expects mcpServers. Use the approved package/version policy for managed environments.
- Start the server in an MCP-capable agent client and complete interactive sign-in yourself.
- Name the workspace and model, Desktop file or PBIP definition folder explicitly.
- Ask: List the connected model, its tables and measures. Make no changes.
- Confirm the exact target before approving edits. A discovered model with the same friendly name in another workspace is not an acceptable match.
For hosted sign-in failures, check the tenant switch and client OAuth compatibility. Entra ID does not support dynamic OAuth client registration; some external clients need a manually registered Entra application. Never solve this by pasting a long-lived token into a public configuration example.
4. Use Fabric IQ MCP for data consumption
The current Fabric IQ MCP server is generally available and provides read-only discovery, metadata, value-finding and DAX tools. It does not expose a natural-language answering tool. The calling agent orchestrates the tools, composes DAX and explains the results. Use the Fabric IQ skill for the recommended orchestration.
The detailed connector guide documents https://fabriciq.svc.cloud.microsoft/v1/mcp/fabriciq. For an organization using private links, it documents https://api.fabric.microsoft.com/v1/mcp/fabriciq. Use the connector’s current configuration rather than guessing a URL from an older article.
Authentication is delegated Entra OAuth; current Fabric IQ MCP does not support service-principal/app-only authentication. Its delegated permissions are Item.Read.All and Item.Execute.All. Existing report/model access is required, but the connector does not require a workspace role or model Build permission for its documented consumption path.
The Authoring MCP tenant switch does not enable or disable this Fabric IQ endpoint. Start with a report/model name or URL; the client can discover accessible content, so a manually maintained model-ID JSON file is not mandatory for the first test. Call tools/list and follow the current returned schema instead of assuming exactly three legacy tools.
Connect GitHub Copilot CLI to a published report
Open ~/.copilot/mcp-config.json on macOS or Linux, or %USERPROFILE%\.copilot\mcp-config.json on Windows. If other servers are configured, add the FabricIQ entry inside the existing mcpServers object.
{
"mcpServers": {
"FabricIQ": {
"type": "http",
"url": "https://fabriciq.svc.cloud.microsoft/v1/mcp/fabriciq",
"tools": ["*"]
}
}
}- In Copilot CLI, run
/mcp get FabricIQand complete sign-in. A connected status and a tool list establish that the client can reach the endpoint. - Open a report you can already read in Power BI. Copy its address from the browser address bar. A generated sharing link is unsuitable for this check. Ask the agent to identify the report and its semantic model from the address.
- Choose one visible measure, one period and one filter from the report. Ask for the same value and compare it with the visual under the same identity. If totals differ, check the measure, date range and report filters before changing permissions.
Try a known report question, inspect the model/query/filter context, and compare the result with a trusted report. Repeat under a restricted identity to verify RLS/OLS through that path. An elevated authoring account is not an RLS acceptance test.
5. A small authoring exercise with measurable checks
Use a practice model or a backed-up PBIP project. Commit a baseline or save a recoverable copy before any bulk changes. Begin with a description, not a relationship redesign or destructive rename.
Connect to the named practice semantic model in the named workspace.
Read the metadata first. List measures missing descriptions.
Choose one measure whose meaning is already documented by its owner.
Propose a concise description, show the existing and proposed values,
and wait for approval. Do not change DAX, relationships or security.
After approval, update only that description, read it back,
and compare the measure's known result before and after.Pass criteria: one intended description changed; its saved value matches the approved text; DAX, storage mode, relationships and security are unchanged; and the known result is unchanged. For example, a model genuinely built on the course’s three valid orders should still total 245.00. Do not expect that number from an unrelated Sales model.
For a later measure edit, inspect the actual schema and business definition. Validate both syntax and business semantics under relevant filters, empty periods and totals. A syntactically valid expression can still double-count or use the wrong date relationship.
Local transactions can help bound supported model edits. They do not prove an entire multi-tool workflow, source-data operation or report publication is atomic. Review dependent reports and bindings after renames; no tool name guarantees that every downstream dependency is repaired.
6. Permissions, sessions and the data leaving the model
Model metadata and query results move to the MCP client and may be sent to its LLM provider. Power BI access controls govern what is read, not every subsequent use of the returned text. Use your organization’s approved clients/models and minimize sensitive context.
Do not turn a privileged authoring connection into a shared end-user Q&A backend. A service principal represents the application, not each caller of your frontend; support and RLS behavior differ across the local authoring, legacy consumption and current Fabric IQ routes.
The hosted Authoring MCP server is stateful. Clients must return the mcp-Session-Id received at initialization on subsequent requests. Reconnecting on every tool call can mean the client is dropping the session; it is not proof that all remote MCP servers are stateless. Conversation history and a server’s model connection session are separate concepts.
Keep confirmation and least-privilege controls enabled. Do not recommend bypass flags as a normal setup step, assume every client implements the same approval protocol, or store secrets in project files. Use local file diffs, an approved change plan and target confirmation before production writes.
7. Limits and a short troubleshooting checklist
- Authoring MCP performs modeling operations, not report-page or diagram-layout edits.
- Its DAX execution tools have a documented 100,000-row hard limit. That is not an entitlement to export all data or a Fabric IQ/Data Agent row limit.
- Hosted authoring has no transactions or trace tools; local has different OS and authentication constraints.
- Large model context can be expensive. Scope inspection to relevant tables/measures; do not attach an entire model because an old example quoted a fixed token count.
| Symptom | Useful first check |
|---|---|
| Tools absent | Agent mode, registration/startup and organization MCP policy. |
| Can query but not edit | Write versus Build permission; XMLA Read Write for local service targets. |
| Hosted cannot find Desktop | Wrong deployment option; use local for machine-local targets. |
| Reconnects each operation | Hosted authoring session header handling. |
| Incorrect result | Actual model, DAX, filter context and security role before changing infrastructure. |
For guided model/report workflows, continue with Agent Skills for Power BI. For broader business context, see Fabric IQ and ontology. Neither installation nor a successful connection proves the model is correct.
Common questions
Are local and hosted Power BI MCP different authoring products?
Power BI Authoring MCP is one authoring server with hosted preview and local GA deployment options. Local adds Desktop/PBIP access, service principals, transactions and traces. Fabric IQ MCP is a separate read-only consumption path.
Which server should answer end-user business questions?
Microsoft recommends Fabric IQ MCP for consumption. It exposes read-only tools; the calling agent orchestrates them and writes the answer. Do not give end-user Q&A an authoring connection merely because it can run DAX.
Does Fabric IQ MCP support service principals?
Not currently. Its detailed connector guide documents delegated Entra OAuth and explicitly excludes service-principal/app-only authentication. Do not transfer a legacy endpoint's authentication behavior to it.
Does every MCP connection need the Authoring tenant switch?
No. The switch applies to hosted Authoring MCP. Local usage is not blocked by that switch, and current Fabric IQ MCP documentation says it does not apply to that consumption endpoint. Target permissions and other policies still matter.
Is hosted Authoring MCP stateless?
No. It retains the semantic-model connection in a session. The client must send the returned mcp-Session-Id header on later requests. This server session is different from the agent's conversation history.
Official references and review scope
Checked against the following official vendor documentation on 2026-11-21. This is an independent learning guide, not a Microsoft certification, benchmark or customer deployment report. These workflows have not been executed in your tenant. Expected values are teaching acceptance checks; validate feature availability, identity, network, schema, data handling and recovery requirements before production use.