Blog/Power BI & DAX/AI Integration

Power BI MCP ServerThe Complete Setup Guide for AI-Powered Semantic Modelling

Power BI MCP Server AI Integration

For years, Power BI professionals have faced the same friction: manually writing DAX measures, copying model metadata into chat windows, and constantly switching between AI assistants and Power BI Desktop. The disconnect between generative AI and analytical BI tools created inefficiency at every step.

Enter the Model Context Protocol (MCP). Microsoft has officially released Power BI MCP servers, allowing AI models to read, query, and modify semantic models directly through natural language. Here is your complete guide to setting it up.

Prashant Panchal
Prashant Panchal

ACA | FMVA® | 19 Years in Finance

What Is the Power BI MCP Server?

How Power BI MCP Works

The Model Context Protocol (MCP) architecture consists of three components: the Host (such as VS Code or Claude Desktop), the Client (such as GitHub Copilot or Claude), and the Server (in this case, the Power BI MCP server). Think of MCP as a standardised “Type-C port” for AI: a universal interface that plugs AI into external systems without custom integrations.

Instead of building bespoke connectors for every tool, MCP provides a common protocol that any AI assistant can use to interact with Power BI semantic models. Much like how generative AI has transformed accounting reporting, Microsoft's implementation includes two distinct Power BI MCP servers, each serving different purposes.

Local vs Remote: The Two Power BI MCP Servers

Local vs Remote Power BI MCP Servers
FeatureLocal MCP Server (Modeling)Remote MCP Server
PurposeBuild and modify semantic modelsQuery data and generate insights
Where it runsYour local machineMicrosoft cloud endpoint
Best forDevelopers, model authorsAnalysts, agent builders
Connects toPower BI Desktop, Fabric workspaces, PBIP filesFabric/cloud semantic models
DAX generationValidate and testGenerate and execute via Copilot
Licence requirementPower BI Desktop (free) or FabricPower BI with admin-enabled setting
Local MCP Server

Available as a VS Code extension (“Power BI Modeling MCP Server” by Microsoft). Provides access to 20+ tool categories: tables, columns, measures, DAX execution, and more. Supports TMDL and PBIP files.

Note: Cannot modify report pages or diagram layouts.

Remote MCP Server

Hosted endpoint using Copilot's DAX generation engine. Automatically respects existing RLS and security policies. Ideal for querying published models in Fabric without local installation. This pairs perfectly with automated financial reporting workflows.

Note: Requires admin enablement in tenant settings.

Setup Path 1: VS Code + GitHub Copilot [RECOMMENDED]

This is the recommended path for developers building models on their local machines using Power BI Desktop.

VS Code Setup for Power BI MCP

Installation Steps

1

Open VS Code. Go to Extensions (Ctrl+Shift+X).

2

Search “Power BI Modeling MCP Server” (Publisher: Analysis Services / Microsoft). Install it.

3

Open the GitHub Copilot Chat panel in VS Code.

4

Click the MCP tools icon (hammer icon) in the chat input area.

5

Confirm powerbi-modeling-mcp appears in the available tools list and is selected.

6

In Power BI Desktop, open the model you want to work with.

7

In Copilot Chat, type a command like: “Connect to my open Power BI Desktop file and list all measures.”

💡Pro Skill: Read-Only Mode

Start in --readonly mode when exploring a new model to prevent accidental changes. Configure it via VS Code User Settings by searching @ext:Microsoft.powerbi-modeling-mcp.

Setup Path 2: Claude Desktop (Local Server)

Claude Desktop supports MCP natively and works exceptionally well with the local Modeling Server. Perfect if you prefer Claude 3.5 Sonnet over GitHub Copilot.

Claude Desktop Manual Config for Power BI MCP
  1. Install VS Code and the Power BI Modeling MCP extension first (this installs the required executable).
  2. Open File Explorer to: %USERPROFILE%\.vscode\extensions\. Find the analysis-services.powerbi-modeling-mcp folder. Go into the server subfolder. Right-click powerbi-modeling-mcp.exe and select Copy as Path.
  3. Install Claude Desktop from claude.ai/download.
  4. Open Claude Desktop. Go to: File → Settings → Developer → Edit Config.
  5. Add the following JSON configuration (replace the path with your actual exe path, using double backslashes):
{
  "mcpServers": {
    "powerbi-modeling-mcp": {
      "command": "C:\\Users\\YourUsername\\.vscode\\extensions\\analysis-services.powerbi-modeling-mcp-0.1.9-win32-x64\\server\\powerbi-modeling-mcp.exe",
      "args": ["--start"]
    }
  }
}
  1. Completely quit Claude Desktop and restart it.
  2. Look for the hammer icon in the chat input to confirm the server is active. Open Power BI Desktop, and start prompting!

Setup Path 3: Remote Power BI MCP Server (Cloud)

For users with models published to Microsoft Fabric or Power BI Service. Requires a Fabric capacity (F2+) or Power BI Premium Per User (PPU) licence.

  1. Admin Enablement: Tenant Admin must enable “Users can use the Power BI Model Context Protocol server endpoint (preview)” in Tenant Settings.
  2. Permissions: You need Build permissions on the target semantic model.
  3. Configuration: Add the HTTP endpoint to your MCP client:
{
  "servers": {
    "powerbi-remote": {
      "type": "http",
      "url": "https://api.fabric.microsoft.com/v1/mcp/powerbi"
    }
  }
}

Authenticate using Entra ID. RLS and data security policies are automatically enforced.

Practical Use Cases and Prompts

Practical Use Cases for Power BI MCP

Bulk Documentation

Eliminate hours of manual documentation work by having the AI write business-friendly descriptions.

“Generate descriptions for all measures in the Sales table using business-friendly language.”

DAX Query Validation

Test measure results instantly without opening DAX Studio or the Performance Analyzer.

“Execute this DAX query and return the top 10 rows: EVALUATE TOPN(10, Sales)”

Bulk Renaming

Enforce naming conventions across large models automatically without tedious manual editing.

“Rename all columns in the Date table to Title Case and remove underscores.”

Model Documentation

Generate complete Markdown documentation including Mermaid diagrams and RLS lists.

“Create a complete model documentation file in Markdown format, including a Mermaid diagram of all relationships...”

Best Practice Review

Ask the AI to analyse your semantic model and identify any measures that do not follow Power BI best practices.

“Analyse this semantic model and identify any measures that do not follow Power BI best practices.”

Finance-Specific Use Cases

Create complex DAX measures for financial KPIs instantly. For example, a finance team in Dubai (GCC) managing multi-currency consolidations can instruct the MCP to generate currency conversion measures automatically, which you can then visualise using Power Query transformed data.

“Create a DAX measure for Rolling 12-Month Revenue using DATESINPERIOD.”

Important Limitations and Security

Power BI MCP Security and Limitations
  • No Visual Edits: The server cannot modify report pages, visuals, or diagram layouts. It focuses exclusively on data modelling.
  • Token Limits: A medium-sized model.bim file (~26k lines of JSON) requires around 210,000 tokens. Scope your requests to specific tables or measure groups on large models, similar to how you would structure MACRS depreciation schedules, to avoid context degradation.

🚨Important Security Warning

Always create a backup before running agent operations. Generative AI may produce unexpected changes, especially with relationships or RLS rules. Ensure Entra ID authentication and network isolation are configured.

Recommended YouTube Resources

Official Power BI MCP: Quick Start Guide

Microsoft's official walkthrough for getting started immediately after launch.

Claude + Power BI Integration: MASSIVE Breakthrough via MCP

Demonstrates connecting Claude AI directly to Power BI semantic models using the MCP server.

Step-by-Step Installation Guide (VS Code + Claude)

Highly recommended for first-time setup covering both popular MCP host applications.

Setting Up the Power BI MCP

Covers creating relationships, improving DAX, and automating documentation inside VS Code and Claude.

Conclusion

Power BI is becoming conversational. MCP bridges generative AI and analytical BI, removing the friction between natural language and semantic modelling. You now have two clear paths: the local Modeling MCP for developers building models (works with free Power BI Desktop), and the remote MCP for cloud-based data querying (requires Fabric or PPU). As you scale these automated workflows, you can replicate complex reporting environments directly within FinDataPro's platform.

Start with the local Modeling MCP if you use Power BI Desktop regularly. It requires no additional licence and integrates directly with VS Code or Claude Desktop. Explore the official Microsoft documentation at Microsoft Learn and the GitHub repository at GitHub. This workflow shift is worth adopting now, before it reaches General Availability, fundamentally replacing manual DAX writing and tedious model documentation with AI-assisted efficiency.


Ready to Build Better Models?

If you want to streamline your analytics workflow, mastering advanced tools and AI integrations is essential. Check out our comprehensive training resources to elevate your Power BI skills.

Prashant Panchal
Prashant Panchal• ACA | FMVA® | 19 Years in Finance

Prashant Panchal is a Chartered Accountant (ACA) and Financial Modelling & Valuation Analyst (FMVA®) with 19 years of experience in finance, FP&A, and financial modelling across the GCC region. He is the founder of FinDataPro.