What Is MCP and Why Does It Matter for Power BI?
Quick answer: The Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external tools through a structured, secure interface, and for Power BI, it means Claude can read your semantic model, write DAX, and manage measures without you copying and pasting anything between windows.
MCP defines a client-server architecture where an AI application (the host) connects to one or more MCP servers that expose specific tools. Each server declares what it can do (list tables, execute a DAX query, create a measure), and the AI model calls those tools as needed during a conversation.
For Power BI professionals, this solves a real workflow problem. Before MCP, using Claude with Power BI meant manually copying model metadata into a chat window, pasting DAX back and forth, and hoping the AI had enough context to give accurate suggestions. If you are specifically interested in how Claude handles DAX formula generation, we cover that workflow in depth separately. With MCP, Claude connects directly to your open Power BI Desktop file (or a Fabric semantic model) and works with the live model structure.
Microsoft now ships an authoring server (local and hosted) and a consumption layer (Fabric IQ), and there are several community alternatives. This guide covers how to set up the most practical options with Claude Desktop and Claude Code.
What You Need Before Starting
Quick answer: You need Power BI Desktop with a .pbip file open, an MCP server installed (Microsoft's official one or a community alternative), and either Claude Desktop or Claude Code as your AI client.
Here is the full prerequisites list:
| Requirement | Details |
|---|---|
| Power BI Desktop | Latest version with preview features enabled (PBIP format, TMDL) |
| Claude Desktop or Claude Code | Claude Desktop (Windows/macOS) or Claude Code CLI |
| Node.js | v18+: needed for community MCP servers that run via npx. Claude Desktop bundles Node.js, but Claude Code does not |
| Operating system | Windows 10/11 for the local Power BI Authoring MCP server. macOS works with community servers and the hosted Authoring server |
| Fabric capacity (optional) | F2 or higher: only required if using the Remote MCP server for cloud-hosted semantic models |
Enable Power BI Preview Features
Before connecting any MCP server, enable these preview features in Power BI Desktop under File > Options > Preview features:
- Power BI Project (.pbip) save format: saves your model as editable files rather than a binary .pbix
- Store semantic model using TMDL format: enables text-based model definitions that MCP servers can read and modify
- Enhanced metadata format for reports: improves compatibility with external tooling
Save your file in .pbip format via File > Save As before proceeding. The MCP server connects to the Analysis Services instance that Power BI Desktop runs locally: your .pbip file must be open.
Setting Up the Power BI MCP Server
Quick answer: There are three main options: Microsoft's official Authoring MCP server (local and generally available), Microsoft's earlier Remote MCP server (cloud-only, now superseded by Fabric IQ for consumption), and community servers like SemanticOps, formerly MCP Engine (best for Claude Desktop). Pick based on whether you work locally or in Fabric.
Option 1: Microsoft's Official Authoring MCP Server
The Power BI Authoring MCP Server, previously called the Modeling MCP Server, is Microsoft's first-party solution. The local server is now generally available (the hosted variant is in preview) and provides 20+ tool categories covering tables, columns, measures, relationships, DAX queries, calculation groups, RLS roles, partitions, hierarchies, and more.
Installation via VS Code (recommended by Microsoft):
- Install VS Code with the GitHub Copilot and GitHub Copilot Chat extensions
- Search the VS Code Extensions marketplace for "Power BI Modeling MCP Server" by Microsoft (or visit the marketplace listing)
- Install the extension
- Enable "MCP servers in Copilot" in your GitHub Copilot settings at github.com (enterprise admins must enable this at the org level)
Manual installation for Claude Desktop:
Since the VS Code extension bundles the server executable, you can extract it for use with Claude:
- Download the VSIX package from the VS Code marketplace
- Rename the
.vsixfile to.zipand extract it - Locate the server executable at
extension/server/powerbi-modeling-mcp.exe - Copy the entire
extension/server/folder to a stable location likeC:\MCPServers\PowerBIModelingMCP\
The Claude Desktop configuration for this server is covered in the next section.
Key CLI arguments:
| Flag | Purpose |
|---|---|
--start | Required: starts the MCP server |
--readonly | Prevents any write operations (safe exploration mode) |
--skipconfirmation | Auto-approves write operations without prompting (use with caution) |
--compatibility PowerBI | Default mode: restricts to Power BI-compatible operations |
--compatibility Full | Enables full Analysis Services compatibility |
Option 2: Microsoft's Remote MCP Server (Fabric)
The Remote Power BI MCP Server is a hosted endpoint at https://api.fabric.microsoft.com/v1/mcp/powerbi that connects to cloud-hosted Fabric semantic models. Microsoft now documents it as the earlier consumption endpoint, kept for existing integrations, and recommends Fabric IQ for new consumption scenarios. It uses Copilot's DAX generation engine and authenticates with your Microsoft Entra ID credentials.
Requirements:
- A Copilot license for the Generate Query tool, which means Fabric capacity (F2 or higher, ~$262/month minimum)
- Admin must enable the tenant setting: "Users can use the Power BI Model Context Protocol server endpoint (preview)"
- Build permissions on the target semantic model
This option is read-and-query focused: it generates and executes DAX queries against existing models but does not modify model structure. It is currently optimized for VS Code with GitHub Copilot, not Claude Desktop.
Option 3: MCP Engine (Community, Best for Claude)
SemanticOps (formerly MCP Engine) is a community-built MCP server specifically designed to work well with Claude Desktop and Claude Code. It connects to Power BI Desktop's local Analysis Services instance and provides a streamlined tool set.
Free tier includes 9 read-focused tools: model exploration, DAX query execution, natural language querying, bulk operations, and auto-translation across 40+ languages.
Pro tier ($349/year) adds rollback and snapshots, test runner for measure validation, policy engine, impact analysis, RLS/OLS testing, and data masking.
Installation for Claude Code:
claude mcp add mcp-engine -- npx -y mcp-engine@latestInstallation for Claude Desktop: Add to your config file (see next section):
{
"mcpServers": {
"mcp-engine": {
"command": "npx",
"args": ["-y", "mcp-engine@latest"]
}
}
}MCP Engine runs locally, collects zero telemetry, and supports both Power BI Desktop and Power BI Service via XMLA endpoints.
Configuring Claude Desktop
Quick answer: Add the MCP server to your claude_desktop_config.json file, restart Claude Desktop completely, and look for the tools indicator in the chat input area.
Config File Location
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
You can also access this file from Claude Desktop: click the Claude menu (system menu bar, not the in-app settings), select Settings, navigate to the Developer tab, and click Edit Config.
Configuration for the Microsoft Authoring MCP Server
{
"mcpServers": {
"powerbi-modeling-mcp": {
"command": "C:\\MCPServers\\PowerBIModelingMCP\\extension\\server\\powerbi-modeling-mcp.exe",
"args": ["--start"],
"env": {}
}
}
}For read-only mode (recommended when exploring an unfamiliar model):
{
"mcpServers": {
"powerbi-modeling-mcp": {
"command": "C:\\MCPServers\\PowerBIModelingMCP\\extension\\server\\powerbi-modeling-mcp.exe",
"args": ["--start", "--readonly"],
"env": {}
}
}
}Use double backslashes (
\\) for Windows paths in JSON. A single backslash will cause a silent parse failure that disables all MCP servers.
Configuration for MCP Engine
{
"mcpServers": {
"mcp-engine": {
"command": "npx",
"args": ["-y", "mcp-engine@latest"]
}
}
}After Saving the Config
- Quit Claude Desktop completely: closing the window is not enough. On macOS, use Cmd+Q. On Windows, right-click the system tray icon and select Quit
- Relaunch Claude Desktop
- Look for the tools indicator: a small hammer icon should appear in the bottom-right of the chat input area. Click it to see the available Power BI tools
- Open Power BI Desktop with your .pbip file: the MCP server needs an active Power BI instance to connect to
If the tools indicator does not appear, check the logs at ~/Library/Logs/Claude/mcp*.log (macOS) or %APPDATA%\Claude\logs\mcp*.log (Windows).
Configuring Claude Code
For Claude Code (the terminal-based client), use the claude mcp add command:
# Microsoft Authoring MCP Server (Windows)
claude mcp add powerbi-modeling -- "C:\MCPServers\PowerBIModelingMCP\extension\server\powerbi-modeling-mcp.exe" --start
# MCP Engine (cross-platform)
claude mcp add mcp-engine -- npx -y mcp-engine@latestVerify the connection with /mcp inside a Claude Code session.
Your First AI-Assisted Semantic Model Session
Quick answer: Start by asking Claude to connect to your local Power BI Desktop instance and describe the model, then move to specific tasks like writing measures, validating DAX, or documenting your model structure.
Here is a realistic workflow once the MCP server is connected:
Step 1: Connect and Explore
Start a conversation in Claude Desktop and ask it to connect to your local Power BI model:
"Connect to my local Power BI Desktop instance and tell me what tables and relationships are in the model."
Claude will use the MCP server's connection and table tools to list your model structure. This is a good sanity check: if Claude returns your actual tables, the connection is working.
Step 2: Understand the Model
Ask Claude to audit what already exists:
"How many measures do I have? List them by table, and flag any that reference columns that don't exist."
This is where MCP starts paying for itself. Manually checking measure dependencies across a large model is tedious. Claude can read every measure's DAX expression and cross-reference column references in seconds.
Step 3: Write a Measure
Ask Claude to create a new measure:
"Create a measure called 'Revenue YoY %' in the Sales table that calculates year-over-year revenue growth using SAMEPERIODLASTYEAR. The revenue column is Sales[Revenue] and the date table is Calendar[Date]."
Claude will generate the DAX and, if the MCP server is not in read-only mode, offer to add it directly to your model. On the Power BI Authoring MCP server, you will get a confirmation prompt before any write operation is applied.
Step 4: Validate and Test
Ask Claude to run a DAX query to verify the measure works:
"Execute a DAX query that returns Revenue YoY % by year for the last 3 years."
The MCP server's DAX query tools will execute the query against your local model and return the results. Claude can then tell you whether the numbers look reasonable.
Step 5: Batch Operations
One of the most practical uses is bulk refactoring:
"Rename all measures that start with 'Calc_' to remove the prefix. Show me the list of changes first."
Claude will generate the plan, show you the before/after, and apply the changes on your confirmation.
What Claude Can and Cannot Do via MCP
Quick answer: Claude can read model metadata, write and validate DAX, manage measures and relationships, and execute queries, but it cannot create report visuals, modify dashboard layouts, or access data that exceeds your existing Power BI permissions.
| Capability | Supported | Notes |
|---|---|---|
| Read model metadata (tables, columns, relationships) | Yes | All MCP servers support this |
| Create/edit/delete measures | Yes | Microsoft and MCP Engine (not in read-only mode) |
| Write and validate DAX expressions | Yes | All servers can validate; most can execute |
| Execute DAX queries and return results | Yes | Results go through the AI conversation context |
| Manage relationships between tables | Yes | Create, update, delete |
| Configure RLS roles | Yes | Power BI Authoring MCP server |
| Test RLS impersonation | Yes | MCP Engine Pro tier |
| Manage calculation groups | Yes | Power BI Authoring MCP server |
| Import/export TMDL | Yes | Power BI Authoring MCP server |
| Create report pages or visuals | No | MCP servers handle the semantic model only |
| Modify dashboard layouts | No | Out of scope for all current MCP servers |
| Access data beyond your permissions | No | Uses your existing credentials and RLS |
| Work with .pbix files directly | No | Must use .pbip format for full MCP support |
| Connect to Power BI Service without Fabric | No | Remote MCP server requires Fabric capacity |
The distinction matters: MCP gives Claude access to the semantic model layer: the tables, measures, relationships, and DAX logic. The report layer (visuals, layouts, formatting) remains manual work in Power BI Desktop.
Enterprise Considerations
Quick answer: The local MCP server processes everything on your machine and no data leaves your network through the MCP connection itself, but the AI conversation (including any model metadata or query results discussed) is sent to Anthropic's API, so enterprise teams need to evaluate this against their data governance policies.
Data Flow and Privacy
Understanding exactly what goes where is critical for regulated environments:
-
Local MCP server to Power BI Desktop: Communication happens through operating system pipes (stdio) on the same machine. No network exposure. The MCP server connects to Power BI's local Analysis Services instance on a dynamic localhost port.
-
MCP server to Claude: The server returns metadata and query results as structured JSON through stdio. This data becomes part of the conversation context.
-
Claude conversation to Anthropic: Here is where data leaves your machine. The conversation (including any model metadata, DAX expressions, and query results that Claude has discussed) is sent to Anthropic's API for processing. Anthropic does not use business customer data for model training (per their usage policy), but the data does transit their infrastructure.
For the Remote MCP server (Fabric), the data flow includes Microsoft's cloud infrastructure as well. Queries are processed through the Fabric API endpoint and Copilot's DAX generation engine.
Practical Recommendations for GCC Enterprises
For organizations in the UAE, Saudi Arabia, or wider Gulf region where data residency matters:
- Start with read-only mode (
--readonlyflag) to understand what metadata is exposed before enabling write operations - Use local MCP servers rather than the Remote MCP server to avoid sending data through additional cloud endpoints
- Review what gets discussed: if your model contains sensitive column names, table names, or measure logic that constitutes trade secrets, be selective about what you ask Claude to analyze
- Evaluate Anthropic's data processing terms against your organization's data protection requirements (UAE PDPL, DIFC Data Protection Law, Saudi PDPL)
- Do not use
--skipconfirmationin production environments: the confirmation prompt is a governance control
As an official Claude partner, Beyond The Analytics helps enterprises onboard Claude safely: from MCP configuration to governance policies. Book a consultation to get your team started.
Row-Level Security Implications
The MCP server respects your existing RLS configuration. If your Power BI Desktop model has RLS roles defined, the server accesses data as the currently connected user. However, during local development in Power BI Desktop, RLS is only enforced when you explicitly use "View as Role." The MCP server connecting to your local instance will see all data by default, just as you do when editing the model.
For testing RLS through MCP, the MCP Engine Pro tier offers an RLS impersonation tool that lets you validate security roles without switching contexts in Power BI Desktop.
How This Differs from Power BI Copilot
Quick answer: Power BI Copilot is Microsoft's built-in AI for report consumers (asking questions about data in natural language), while Claude + MCP is for model developers (building and modifying semantic models programmatically). They serve different audiences and different workflows.
If you have already been evaluating Power BI Copilot for enterprise readiness, it is worth understanding where Claude + MCP fits:
| Dimension | Power BI Copilot | Claude + MCP |
|---|---|---|
| Primary user | Report consumers, business analysts | Model developers, BI engineers |
| What it does | Answers questions from published data, creates visuals | Reads/writes semantic model structure and DAX |
| Data access | Query results from published models | Model metadata + DAX query results from Desktop or Fabric |
| Requires | Fabric capacity (F2+) | Claude subscription + local MCP server |
| Modifies models | No | Yes (measures, tables, relationships, etc.) |
| Works offline | No | Yes (local MCP server only) |
These are complementary, not competing. A development workflow might use Claude + MCP to build and test the model, then publish it to Fabric where business users interact with Copilot. For a full side-by-side evaluation, see our Power BI Copilot vs Claude AI comparison.
Frequently Asked Questions
Q: Does the MCP server send my Power BI data to Anthropic?
The MCP server itself does not send data anywhere: it runs locally and communicates through stdio pipes. However, any model metadata, DAX expressions, or query results that Claude discusses in the conversation are part of the prompt sent to Anthropic's API. The MCP connection is local; the AI conversation is not. Evaluate Anthropic's commercial terms against your data governance requirements.
Q: Can I use Claude + MCP with Power BI Service without Fabric?
Not with the Microsoft Remote MCP server: its Generate Query tool uses Copilot, which requires Fabric capacity (F2 or higher). For local development, you can use the Authoring MCP server or MCP Engine with Power BI Desktop at no additional Microsoft cost beyond your existing license. MCP Engine's Pro tier also supports XMLA endpoints for connecting to Power BI Service or Fabric, but XMLA access itself requires Premium or Fabric capacity.
Q: Which Claude model works best for DAX and semantic modeling?
As of October 2026, Claude Opus 5.5 and Claude Sonnet 5.5 both work well for DAX generation and model reasoning. Opus 5.5 has stronger performance on complex multi-step modeling tasks (like planning a full star schema refactor), while Sonnet 5.5 is faster and cheaper for routine measure creation and validation. Both support MCP tool use. If you are using Claude Code, you can switch models per session based on task complexity.
Q: Does this replace Tabular Editor or DAX Studio?
No. Claude + MCP is a conversational interface to your model, not a replacement for dedicated modeling tools. Tabular Editor still offers finer control over TMDL, best-practice rules, and CI/CD pipelines. DAX Studio remains the standard for query profiling and server timings. Think of Claude + MCP as a fast way to explore, prototype, and batch-modify, then validate with your established tooling. Tabular Editor has also published guidance on how AI agents and their tool complement each other.
Q: Is this setup production-ready?
The local Microsoft Authoring MCP server (formerly Modeling) is now generally available, while the hosted variant is still in preview. It writes to your model, so back it up and work in PBIP files under Git. For production model management, continue using your established CI/CD pipeline (TMDL + Git + Tabular Editor) and treat Claude + MCP as an accelerator within that workflow, not a replacement for it.








