How to Connect Claude to Power BI (Step-by-Step Guide)
- Claude cannot talk to Power BI Desktop directly — it needs a Model Context Protocol (MCP) server acting as the bridge between the two.
- Microsoft publishes an official Power BI Modeling MCP Server, installed as a free VS Code extension.
- The full setup needs three free tools: Claude Desktop, Power BI Desktop, and VS Code.
- Once connected, you can ask Claude things like "how many tables are in this model?" or "create a measure for total sales," and it will act directly inside your open Power BI file.
- This guide uses the free version of Claude Desktop — no paid plan is required to follow along.
What Is the Power BI MCP Server?
The Power BI Modeling MCP Server is a free tool from Microsoft that lets AI assistants like Claude read and modify a Power BI semantic model. MCP stands for Model Context Protocol — an open standard that gives an AI model a defined way to interact with an external application, instead of just generating text.
Without an MCP server, Claude has no way to "see" your Power BI file. It can explain DAX syntax or talk through modeling theory, but it can't look at your actual tables, check your relationships, or write a measure into your model. The MCP server is what turns Claude from a chatbot that talks about Power BI into a tool that can act on your Power BI file.
What You Need Before You Start
Three free applications, all standard installs:
| Tool | Why you need it | Cost |
|---|---|---|
| Claude Desktop | The AI assistant you'll type prompts into | Free version works fine |
| Power BI Desktop | The report/model Claude will connect to | Free |
| VS Code | Used only to install the MCP extension — no coding involved | Free |
You don't need Claude's paid plan for this setup. The free tier has usage limits, but the connection itself works identically on both plans.
How to Connect Claude to Power BI: Step-by-Step
Step 1: Install the Power BI Modeling MCP Server in VS Code
Figure 1: Searching for the official Microsoft Power BI Modeling MCP Server in the VS Code Marketplace Extension pane.
Open VS Code. On the left-hand sidebar (the Activity Bar), you'll see a vertical column of icons — Explorer, Search, Source Control, Run & Debug, and more. Click the Extensions icon (it looks like four small squares with one popped out, typically the fifth icon down).
This opens the Extensions Marketplace inside VS Code. In the search bar at the top, type "Power BI". You'll see a handful of results — there are a few different Power BI–related extensions in the marketplace, so don't grab the first one you see. You're specifically looking for Power BI Modeling MCP Server.
Two ways to confirm you've got the right one before installing:
- Check the publisher. It should say Microsoft, with a verified checkmark next to the name. Community extensions can be useful too, but for this setup you want the official one, since it's the one built to expose your model to AI agents through MCP specifically.
- Check the description. The official listing describes itself as bringing semantic modeling capabilities to AI agents — that phrasing is your confirmation you're in the right place.
Once you've found it, click Install. VS Code will download and install the extension in the background — this usually takes under a minute, and you'll see a small progress indicator while it installs. Once it's done, the button will change from "Install" to a settings/gear icon, confirming it's active.
Figure 2: Verifying the verified Microsoft extension has successfully installed.
That's the entire job for VS Code in this whole process. You're not opening a project, writing a script, or running a build — you're using VS Code purely as a delivery mechanism to get Microsoft's MCP server onto your machine. Everything from here happens in File Explorer and Claude Desktop.
Step 2: Find the MCP Server File on Your System
Figure 3: Finding the exact powerbi-modeling-mcp.exe program inside VS Code's extensions folder.
Installing the extension puts files on your computer, but VS Code doesn't give you a direct "show me the server" button — you need to navigate to it manually through File Explorer. This step is just folder-hopping, but the path is specific, so it helps to go slowly the first time.
Open File Explorer and paste this into the address bar (replacing [YourUsername] with your actual Windows username):
C:\Users\[YourUsername]\.vscode\extensions\
This folder holds every extension you've ever installed in VS Code, so depending on how long you've been using it, you might see a long list. Look for a folder that starts with analysis-services.powerbi-modeling-mcp, followed by a version number and your system architecture, something like analysis-services.powerbi-modeling-mcp-0.4.0-win32-x64. The exact version number isn't important — Microsoft updates it periodically, so yours may differ slightly from any examples you see online.
Open that folder. Inside, you'll see a mix of files and folders — things like a changelog, a license file, an assets folder, and a few others. Ignore all of that and open the server subfolder specifically.
Inside server, you're looking for one file: powerbi-modeling-mcp.exe. This is the executable that actually runs the MCP server — it's the file Claude will eventually be pointed at. You don't need to run it from here permanently; you're about to use it once, in the next step, just to generate a configuration snippet.
Figure 4: Double-clicking the executable file to query connection schema requirements.
Step 3: Get the Connection Code
Double-click powerbi-modeling-mcp.exe. A terminal window (PowerShell) will pop open automatically — this is expected and not an error. The executable isn't installing anything new; it's simply printing out the exact configuration text Claude needs in order to know where this server lives and how to start it.
In that terminal window, you'll see a small ASCII logo at the top, followed by a version number, and then a section labeled "MCP configuration (for manual registration)". Underneath that label is a ready-made JSON block — this is the piece you actually came here for. It looks like this:
Figure 5: Inspecting the terminal console printout holding the ready-made JSON configuration code snippet.
A quick breakdown of what each part means, in case you want to understand it rather than just copy it blindly:
"command"is the full file path to the .exe you just found in Step 2. This is how Claude knows which program to launch."args": ["--start"]tells the program to start running as a server the moment Claude launches it, rather than just opening and closing."env": {}is for environment variables. It's empty here because this particular server doesn't need any extra configuration to run.
You'll also notice the terminal prints a clickable VS Code installation link, and a warning reminding you to back up your semantic model before letting an AI interact with it — worth taking seriously, since AI-driven changes to a model can occasionally be unpredictable, especially on a file you haven't backed up.
Select the entire JSON block (from the opening { to the closing }) and copy it — right-click and "Copy," or highlight and press Ctrl+C. Once you've copied it, you can close this terminal window; it has no further use after this point.
Step 4: Open Claude Desktop's Developer Settings
Switch over to Claude Desktop. In the top-left corner, click the menu icon (three horizontal lines, sometimes shown as a small hamburger icon depending on your version).
Figure 6: Navigating to Settings -> Developer panel inside Claude Desktop.
From the dropdown, go to File, then click Settings. This opens Claude's full settings panel as a separate window, with a list of categories down the left side — General, Account, Privacy, Billing, Capabilities, Connectors, Claude Code, and a separate "Desktop app" section underneath with its own General, Extensions, and Developer tabs.
The one you want is Developer, under the Desktop app section (not the general "Capabilities" or "Connectors" tabs — those control different kinds of integrations, not local MCP servers).
Figure 7: Clicking the Edit Config command to modify the server registry JSON file.
Click Developer. You'll land on a page titled "Local MCP servers", with a short description underneath explaining that this is where you add and manage MCP servers you're working on. If this is the first MCP server you've ever set up, the page will show an empty state — a small monitor icon and the text "No servers added" — which is exactly what you'd expect at this stage.
Below that, click Edit Config. This is the button that gives you direct access to the actual configuration file Claude reads on startup.
Step 5: Paste the MCP Configuration
Clicking Edit Config opens a file called claude_desktop_config.json. Depending on your system, this might open directly in your default text editor, or simply reveal the file's location in File Explorer for you to open manually. Either way, you can edit this file using VS Code (which you already have open), Notepad++, or even plain Notepad — formatting doesn't matter here, only the text content does.
If this is your first MCP server, the file will likely be mostly empty or contain a minimal placeholder structure. Select everything in the file and replace it entirely with the JSON block you copied back in Step 3.
Figure 8: Appending the new Power BI modeling tool block into claude_desktop_config.json file.
Once pasted, take a moment to actually read through it rather than immediately saving — two small mistakes account for almost every connection failure at this stage:
- Single backslashes instead of double backslashes. Windows file paths normally use a single
\between folders, but inside a JSON file, a single backslash is treated as an "escape character" and breaks the string. Every backslash in the path needs to be doubled —\\instead of\. If you copied the path directly from the terminal output in Step 3 without retyping it, this is almost always already correct. The risk shows up if you manually typed the path yourself, or edited it after copying. - Broken JSON syntax. A missing comma, an extra curly brace, or a missing closing quote will stop the entire file from loading — not just the Power BI section. If you're not used to reading JSON, the easiest gut-check is to make sure every opening
{or[has a matching closing}or], and that each line (except the last one in a block) ends with a comma.
Save the file and close it.
Step 6: Restart and Verify the Connection
Close Claude Desktop completely and reopen it. Configuration files like this one are typically only read when the app launches, so changes you just made won't take effect in an already-running window — a simple app restart is usually enough. If, after restarting the app, the server still doesn't appear, restart your PC; this forces every related background process to fully reload, which resolves the connection in the rare cases where an app restart alone doesn't.
Once Claude Desktop is back open, go to File → Settings → Developer again, the same path as Step 4. This time, instead of the empty state, you should see your server listed as a card under Local MCP servers — in this example, named powerbi-mcp — along with details like the exact command path and arguments you configured.
The detail that actually matters here is the small status badge next to the server's name. It should read running, usually shown in a highlighted color. This badge is your single source of truth that the connection is live — if it says anything else, or the server isn't listed at all, go back and recheck Step 5 before trying to prompt Claude, since prompting won't work until this badge confirms a live connection.
Figure 9: Verifying the server status badge reads 'running' with a successful green status indicator.
There's also a View Logs option and an Advanced options dropdown on this same card, which are useful if you ever need to troubleshoot a connection that stops working after a Windows update or VS Code extension update — but for a first-time setup, the "running" badge is all the confirmation you need.
Step 7: Open Your Power BI File and Start Prompting
Open the .pbix file you want to work with in Power BI Desktop, and leave it running in the background — don't close it. The MCP connection works by letting Claude inspect and modify whatever model is currently open, so Power BI Desktop needs to stay active for any of this to function.
Arrange both windows so you can see them side by side, or simply switch between them — either works. In Claude Desktop, start a new conversation and type a simple, low-risk first question to confirm everything is actually talking to each other: "How many tables are in this model?"
When Claude processes this, you'll notice something different from a normal text-only conversation: instead of just typing back an answer immediately, you'll see intermediate status messages appear, such as "Searched available tools," "Used powerbi-mcp integration," or similar phrasing depending on your version. This is Claude actually calling the MCP server behind the scenes, reading your live model, and pulling the real table names rather than guessing or hallucinating typical Power BI table names.
Once it finishes, Claude will list out the actual tables it found in your open file. If the names match exactly what you can see in the Data pane inside Power BI Desktop, your connection is fully working end to end — installation, configuration, and live two-way communication. At that point, you can move on to more useful prompts, like asking it to inspect relationships, explain an existing measure, or write a new one for you, which is exactly what we'll test next.
Figure 10: Triggering the diagnostic prompt to scan our backend Star Schema tables dynamically.
In Practice: What This Actually Looks Like
To see whether the connection genuinely works (and not just in theory), here's what happened testing it against a real sales data model with six tables: Sales, Calendar, Products, Refunds, a _Measures table, and a product names lookup table.
First prompt: "How many tables are loaded in the current model?"
Claude correctly returned all six tables, matching exactly what was visible in the Power BI Data pane.
Second prompt: "Create total sales that'll be units x price."
This is where it got more interesting. Units lived in the Sales table, but Price lived in the Products table — two different tables connected by a relationship, not a single flat table. A naive SUM(Units * Price) formula wouldn't have worked here, since you can't directly multiply columns across two separate tables in DAX without bridging the relationship.
Claude correctly identified this and used SUMX combined with RELATED, generating this measure automatically inside the _Measures table:
Total Sales = SUMX ( Sales, Sales[Units] * RELATED ( Products[Price] ) )
Figure 11: Claude generating relationship-aware context-safe DAX formulas directly into our Power BI desktop application.
This is the standard pattern for row-by-row calculations across related tables: SUMX iterates row by row through the Sales table, and RELATED pulls the matching price from Products through the existing relationship. Dragging the new measure onto a visual confirmed the output was correct.
That's a meaningful sign for an AI-assisted workflow — it didn't just generate a formula, it generated the structurally correct formula for a multi-table relationship, which is a common stumbling block for people newer to DAX.
What Claude Can and Can't Do Inside Power BI
It's worth being direct about the scope here, since seeing two quick wins can easily overstate what's actually happening.
Claude, through this MCP connection, can read your model's structure, write and modify measures, and answer structural questions about tables and relationships. What it's doing well in small, well-defined tasks (count tables, write one clearly-scoped measure) doesn't automatically scale to building a complete report from scratch, designing a full data model from raw sources, or replacing the modeling decisions a data analyst would normally make on a complex, enterprise-grade dataset. Treat it as a fast assistant for specific modeling tasks inside an existing file, not a replacement for understanding how your model is built.
Recommended Next Guides & Deep Dives
Continue expanding your Power BI and Fabric architecture knowledge with these closely connected tutorials:
-
Power BI Copilot vs Fabric Data Agents
→
Compare external LLMs with Microsoft native AI Copilot and agent tools.
-
What Is Fabric IQ? Semantic Models in 2026
→
How semantic models ground AI agents and prevent hallucinated DAX.
-
DAX Cheat Sheet: 50 Functions
→
Provide verified syntax templates when prompting Claude for measures.
-
Power Query M Language for Beginners
→
Connect to external AI APIs directly within Power Query M scripts.
-
CALCULATE in DAX: 5 Real-World Examples
→
Verify and debug AI-generated CALCULATE and filter transition measures.
Step-by-Step Implementation Sandbox
1. Install the Power BI Modeling MCP Server in VS Code
Open VS Code, navigate to the Extensions tab on the left sidebar, search for 'Power BI Modeling MCP Server' published by Microsoft, and click Install.
2. Locate the MCP Server executable file
Navigate in File Explorer to C:\Users\[YourUsername]\.vscode\extensions\, search for the powerbi-modeling-mcp folder, and choose the powerbi-modeling-mcp.exe program inside the server subfolder.
3. Get Connection JSON code
Run the powerbi-modeling-mcp.exe by double-clicking it. Copy the full JSON config printed out in the console terminal, then close the terminal window.
4. Paste MCP settings in Claude Desktop
Open Claude Desktop, go to File > Settings > Developer, click Edit Config to open 'claude_desktop_config.json', paste your JSON block, make sure to escape double backslashes, save and close.
5. Restart Claude and Verify running status
Restart Claude Desktop fully. Confirm in Settings > Developer > Local MCP servers that your new server is displayed with a green running status indicator.
6. Prompt Claude directly with your active Power BI file open
With both your active target Power BI report .pbix and Claude open, type queries like 'How many tables are loaded' in Claude Desktop to prompt it live.
Frequently Asked Questions
Do I need to know how to code to set this up?
No. VS Code is only used to install the MCP extension and locate a file path — you're not writing or running any code yourself.
Does this work with the free version of Claude Desktop?
Yes. The MCP connection itself isn't a paid feature; only Claude's general usage limits differ between free and paid plans.
What is MCP, in plain terms?
MCP (Model Context Protocol) is a standard that lets an AI model connect to and act on an external application — in this case, giving Claude a defined way to read and modify your open Power BI file.
Why use SUMX and RELATED instead of a simple multiplication formula?
Because Units and Price live in two different, related tables rather than one flat table. SUMX calculates row by row, and RELATED pulls in the matching value from the other table through the existing relationship — directly multiplying columns across tables isn't possible without this.
Is this Power BI MCP Server official, or a third-party tool?
It's published directly by Microsoft, distributed as a VS Code extension named 'Power BI Modeling MCP Server'.