Power BI Authoring MCP Server (Local)

Developer tools

The Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.

Your AI app calls Power BI Authoring MCP Server (Local), which does the developer tools work and sends the result back to the chat.

About Power BI Authoring MCP Server (Local)

Power BI Authoring MCP Server (Local) is the official MCP server from microsoft, filed in our directory under developer tools. The Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models.

Power BI Authoring MCP Server (Local) runs on your own machine: your AI app starts it with the command npx -y @microsoft/powerbi-modeling-mcp@1.0.1 and talks to it over standard input and output.

Power BI Authoring MCP Server (Local) is listed in the official MCP registry as com.microsoft/powerbi-modeling-mcp, version 1.0.1.

At a glance

Publisher
microsoft, the company behind the product
Runs
Locally on your machine
Install from
Node.js package on npm: @microsoft/powerbi-modeling-mcp
License
MIT
GitHub stars
1,315
Official MCP registry
com.microsoft/powerbi-modeling-mcp

How to set up Power BI Authoring MCP Server (Local)

  1. Install Node.js on the machine that runs your AI app, because Power BI Authoring MCP Server (Local) starts with npx and downloads its package on first run.
  2. Check the Power BI Authoring MCP Server (Local) README for keys or settings; the registry lists none that Power BI Authoring MCP Server (Local) requires.
  3. Add Power BI Authoring MCP Server (Local) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Power BI Authoring MCP Server (Local) tools to confirm the connection.
  5. Run one read-only task with Power BI Authoring MCP Server (Local) first, and keep your app asking before each tool call until the results look right.

Power BI Authoring MCP Server (Local) compared with similar servers

  • TanStack CLI by TanStack has fewer GitHub stars than Power BI Authoring MCP Server (Local) (1.3k against 1.3k); Power BI Authoring MCP Server (Local) is official while TanStack CLI is a community server, and both run locally.
  • Reticle by reticlehq has more GitHub stars than Power BI Authoring MCP Server (Local) (1.3k against 1.3k); Power BI Authoring MCP Server (Local) is official while Reticle is a community server, and both run locally.
  • Zotero (cookjohn) by cookjohn has fewer GitHub stars than Power BI Authoring MCP Server (Local) (1.3k against 1.3k); Power BI Authoring MCP Server (Local) is official while Zotero (cookjohn) is a community server, and both run locally.

Before you connect Power BI Authoring MCP Server (Local)

  • Give Power BI Authoring MCP Server (Local) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Power BI Authoring MCP Server (Local) tool call until you trust what it does with them.
  • Treat text that Power BI Authoring MCP Server (Local) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Power BI Authoring MCP Server (Local) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Power BI Authoring MCP Server (Local)

How marketing and sales teams put Power BI Authoring MCP Server (Local) to work, by company size. Pick the size closest to yours and start Power BI Authoring MCP Server (Local) on one use case.

Small business

  • A small business with a developer can use Power BI Authoring MCP Server (Local) to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Power BI Authoring MCP Server (Local) to explain and fix a marketing site issue without context switching between tools.
  • Power BI Authoring MCP Server (Local) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Power BI Authoring MCP Server (Local) to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Power BI Authoring MCP Server (Local) to keep scripts and automations documented and versioned as they change.
  • Start Power BI Authoring MCP Server (Local) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Power BI Authoring MCP Server (Local) with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Power BI Authoring MCP Server (Local) so web and marketing engineering share one reviewed way of working with AI.
  • Because Power BI Authoring MCP Server (Local) comes from microsoft, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Power BI Authoring MCP Server (Local) README

From microsoft/powerbi-modeling-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

✨ Power BI Authoring MCP Server

[!IMPORTANT]

  • When authoring semantic models in a Fabric workspace, use the remote (hosted) Power BI Authoring MCP server. It requires no local installation, and Microsoft manages updates. See Power BI Authoring MCP server to compare the remote and local options.
  • The local server doesn't support macOS. On a Mac, use the hosted server.

The Power BI Authoring MCP Server implements the MCP specification to create a seamless connection between AI agents and Power BI semantic models.

The Power BI Authoring MCP Server brings Power BI semantic modeling capabilities to your AI agents through a local MCP server. This allows developers and AI applications to interact with Power BI models in entirely new ways, from using natural language to execute modeling changes to autonomous AI agentic development workflows.

💡 What can you do?

  • 🔄 Build and Modify Semantic Models with Natural Language - Tell your AI assistant what you need, and it uses this MCP server to create, update, and manage tables, columns, measures, relationships, and more... across Power BI Desktop and Fabric semantic models.

  • ⚡ Bulk Operations at Scale - AI applications can execute batch modeling operations on hundreds of objects simultaneously, bulk renaming, bulk refactoring, model translations, or model security rules - with transaction support and error handling, turning hours of repetitive work into seconds.

  • ✅ Apply modeling best practices - Easily evaluate and implement modeling best practices against your model.

  • 🤖 Agentic Development Workflows - Supports working with TMDL and Power BI Project files, enabling AI agents to autonomously plan, create, and execute complex modeling tasks across your semantic model codebase.

  • 🔍 Query and Validate DAX - AI assistants can execute and validate DAX queries against your model, helping you test measures, troubleshoot calculations, and explore your data

📹 Watch the video for an end-to-end demo.

[!WARNING]

  • Use caution when connecting an AI Agent to a semantic model. The underlying LLM may produce unexpected or inaccurate results, which could lead to unintended changes. Always create a backup of your model before performing any operations.
  • LLMs might unintentionally expose sensitive information from the semantic model, including data or metadata, in logs or responses. Exercise caution when sharing chat sessions. See Data Privacy and LLM Providers.
  • The Power BI Authoring MCP server can only execute modeling operations. It cannot modify other types of Power BI metadata, such as report pages or semantic model elements like diagram layouts.
  • The AI model you select directly influences the quality and relevance of the responses you receive. For the best results, choose a deep-reasoning model such as GPT-5 or Claude Sonnet 4.5. You can find more details about available models in the GitHub Copilot AI model comparison.

📦 Installation

The easiest way to install this MCP Server is by using the Visual Studio Code extension extension together with GitHub Copilot. However, you can also manually install it in any other MCP client.

Visual Studio Code (Recommended)
  1. Install Visual Studio Code.

  2. Install the GitHub Copilot Chat extension.

  3. Install the Power BI Authoring MCP Visual Studio Code extension.

  4. Open GitHub Copilot chat and confirm the powerbi-modeling-mcp is available and selected.

[!NOTE] If you do not see powerbi-modeling-mcp in the available tool list, verify that the MCP servers in Copilot option is enabled in Copilot settings on GitHub.com. For enterprise accounts, this option is disabled by default and must be enabled by an administrator.

Manual

This MCP Server can also be configured across other IDEs, CLIs, and MCP clients.

Node Package Executor (NPX) (requires Node.js)

Add the JSON configuration to your MCP client. Node will automatically download the MCP server from the @microsoft/powerbi-modeling-mcp npm package.

{
    "powerbi-authoring-local": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@microsoft/powerbi-modeling-mcp@latest",
                "--start"				
            ]
        }	
}
Accept the EULA

Before you can use the npm package, you must review and accept the Power BI Authoring MCP Server EULA. The MCP server blocks all other tool calls until you accept it.

In an interactive session, your agent can call the accept_eula tool on your behalf after you explicitly authorize it. The server saves the acceptance in a local configuration on your machine, so you are not prompted again.

For unattended execution, accept the EULA through either the command-line argument or environment variable:

  • Add --accepteula to the server's args array.
  • Set PBI_MODELING_MCP_ACCEPT_EULA to true in the server's environment.

Only use these options after you have reviewed and agreed to the EULA.

Manual download

  1. Open the releases page and choose the version you want.
  2. Under Assets, download the binary ZIP for your operating system and architecture, for example powerbi-modeling-mcp-win-x64.zip for Windows x64.
  3. Extract the ZIP to a folder of your choice, for example C:\MCPServers\PowerBIAuthoringMCP.

In your MCP client configuration, set command to the path of the extracted server executable (powerbi-modeling-mcp.exe on Windows). For example:

{
    "powerbi-authoring-local": {
        "type": "stdio",
        "command": "C:\\MCPServers\\PowerBIAuthoringMCP\\powerbi-modeling-mcp.exe",
        "args": [
            "--start"                
        ],
        "env": {}			
    }	
}

🚀 Get started

First, you must connect to a Power BI semantic model, which can reside in Power BI Desktop, Fabric workspace or in Power BI Project (PBIP) files.

  • For Power BI Desktop:

    Connect to '[File Name]' in Power BI Desktop
    
  • For Semantic Model in Fabric Workspace:

    Connect to semantic model '[Semantic Model Name]' in Fabric Workspace '[Workspace Name]'
    
  • For Power BI Project files:

    Open semantic model from PBIP folder '[Path to the definition/ TMDL folder in the PBIP]'
    

Once the connection is established, you can use natural language to ask the AI agent to make any modeling changes. To get started, try one of the following scenarios.

Example scenarios
Scenario Prompt examples
Analyze naming convention and bulk rename. Analyze my model’s naming conventions and suggest renames to ensure consistency.
Analyze the naming convention of the ‘Sales’ table and apply the same pattern across the entire model.
Set descriptions across your model for documentation. Add descriptions to all measures, columns, and tables to clearly explain their purpose and explain the logic behind the DAX code in simple, understandable terms.
Translate your semantic model. Generate a French translation for my model including tables, columns and measures.
Refactor measures into Calculation Groups or UDF. Refactor measures 'Sales Amount 12M Avg' and 'Sales Amount 6M Avg' into a calculation group and include new variants: 24M and 3M.
Refactor your queries to use semantic model parameters. Analyze the Power Query code for all tables, identify the data source configuration, and create semantic model parameters to enable easy switching of the data source location.
Benchmark DAX queries against multiple models. Connect to semantic model 'V1' and 'V2. And benchmark the following DAX query against both models. [DAX Query]
Document your semantic model Generate a Markdown document (.md) that provides complete, professional documentation for a Power BI Semantic Model. Use a simple mermaid diagram to ilustrate the table relationships; Document each measure including the DAX code and a description of the business logic using business friendly names; Document row level filters; Document the data sources by analyzing the Power Query code.

[!TIP] The scenarios above are just examples. This MCP server equips your agents with modeling tools for any type of model change, and with the right prompt and context, you can automate virtually any modeling task.

🛠️ Available tools

Tool Name What It Does
connection_operations Connect to Power BI Desktop or Fabric workspaces
database_operations Manage semantic models - connect, create, update, list databases, import/export TMDL folders, deploy to Fabric
transaction_operations Control database transactions (begin, commit, rollback, get status)
model_operations Work with the overall model (get, create, update, refresh, get stats, rename)
table_operations Manage tables (create, update, delete, get, list, refresh, rename)
column_operations Manage individual table columns (create, update, delete, get, list, rename)
measure_operations Manage individual DAX measures (create, update, delete, get, list, rename, move between tables)
relationship_operations Handle relationships between tables (create, update, delete, activate/deactivate, find)
dax_query_operations Execute and validate DAX queries against the model
trace_operations Perform trace operations on semantic model to capture and analyze Analysis Services events.
partition_operations Manage table partitions (create, update, delete, refresh specific partitions)
user_hierarchy_operations Work with user-defined hierarchies (create, update, delete levels, reorder)
calculation_group_operations Manage calculation groups and calculation items for time intelligence and other calculations
security_role_operations Configure security roles and row-level security (RLS) table permissions
perspective_operations Manage perspectives and their members (filtered views of the model for different audiences)
named_expression_operations Work with named expressions and Power Query parameters (create, update, delete, get, list, rename)
function_operations Manage individual DAX user-defined functions
culture_operations Manage cultures for multi-language support (create, update, delete, get valid culture names)
object_translation_operations Handle translations for model objects across different cultures/languages
calendar_operations Manage calendar objects and time intelligence column groups
query_group_operations Organize and manage query groups for Power Query expressions

[!NOTE]

  • You can ask AI to explain what tools are available and show examples of how to use them. For example: Tell me with some examples what I can do with the Power BI Authoring MCP server

▶️ Available prompts

This MCP server includes built-in prompts to help you get started. In Visual Studio Code, access the available MCP prompts by typing the / command in the chat.

Prompt Name What It Does
CreateDAXQuery Creates a DAX query from your semantic model and natural language question. Attaches the dax_query_instructions_and_examples resource to provide the LLM with DAX language context.
RunDAXQueryWithMetrics Executes the DAX query with option to clear the cache and return only the execution metrics.
AnalyzeDAXQuery Analyzes DAX query performance by running it with a cleared cache and reviewing execution metrics for potential issues.
ConnectToPowerBIDesktop Searches for the Power BI Desktop Analysis Services instance that matches the file name and connects to it.
ConnectToFabric Connects to a semantic model in a Fabric Workspace.
ConnectToPBIP Loads the TMDL definition from the semantic model in the Power BI Project files. Attaches the powerbi_project_instructions resource to provide the LLM with Power BI Project (PBIP) context.

[!NOTE] Some prompts also attach resources that provide important context for the LLM.

⚙️ Settings

The MCP server supports several command line options and environment variables:

Command line option Default Description
--start Starts the MCP server; necessary for server registration with MCP client.
--readwrite Yes Enabled by default, enables write operations with confirmation prompt before applying an edit to your semantic model (once per database).
--readonly Safe mode, prevents any write operations to your semantic model
--compatibility PowerBI By default, it is optimized for Power BI semantic models. Change the setting to Full if you want to run this MCP server against Analysis Services databases.
--authmode interactive Set authentication mode: serviceprincipal or interactive.
--accepteula Accepts the EULA for unattended execution.
--audit-log-path Sets the local audit log directory. Takes precedence over PBI_MODELING_MCP_AUDIT_LOG_PATH. See Local audit logs.
Environment variable name Default Description
AZURE_CLIENT_ID The application (client) ID of the Microsoft Entra service principal. Required when --authmode=serviceprincipal.
AZURE_TENANT_ID The Microsoft Entra tenant (directory) ID. Required when --authmode=serviceprincipal.
AZURE_CLIENT_SECRET The client secret for the service principal. Required when --authmode=serviceprincipal and using secret-based authentication.
AZURE_CLIENT_CERTIFICATE_PATH Path to a PFX/PEM certificate file for the service principal. Required when --authmode=serviceprincipal and using certificate-based authentication instead of a client secret.
AZURE_CLIENT_CERTIFICATE_PASSWORD Password for the certificate file, if the certificate is password-protected. Only used when --authmode=serviceprincipal with certificate-based authentication.
PBI_MODELING_MCP_TENANT_ID Set to a Microsoft Entra tenant ID to authenticate to a specific tenant during interactive authentication. If unset or empty, the MCP server authenticates to the default tenant of the account.
PBI_MODELING_MCP_ACCEPT_EULA false Set to true to accept the EULA for unattended execution.
PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS Comma-separated list of trusted custom hostnames that the MCP server can use for Analysis Services or Power BI XMLA connections.
PBI_MODELING_MCP_AUDIT_LOG_PATH Overrides the default local audit log directory unless --audit-log-path is set. See Local audit logs.

For Visual Studio Code, you can set the command line options and environment variables in the User Settings:

Open Visual Studio Code user settings and search for @ext:Microsoft.powerbi-modeling-mcp.

For manual installations, you can configure command-line options using the args property and set environment variables using the env property in the MCP Server registration JSON:

{
"servers": {
        "powerbi-authoring-local": {
            "command": "[Path To MCP Server folder]\\powerbi-modeling-mcp.exe",
            "args": [
                "--start"                
                , "--authmode=interactive"				   				
            ],
            "type": "stdio"
        }
    }
}
Local logs and configuration

The MCP server stores local files in %LOCALAPPDATA%\Microsoft\powerbi-authoring-mcp. It contains config.json, which stores settings such as EULA acceptance, and the Logs folder for local audit logs. See Local audit logs for details.

Connection host allowlist

To connect to a non-Power BI endpoint, such as Azure Analysis Services or SQL Server Analysis Services, add its hostname to the PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS environment variable. Separate multiple hostnames with commas:

{
  "env": {
    "PBI_MODELING_MCP_ALLOWED_CONNECTION_HOSTS": "xmla.contoso.example,another-xmla.contoso.example,sqlserver_01:8373"
  }
}

Restart the MCP server after changing the configuration.

[!IMPORTANT] Only add hosts that your organization trusts and intends to use as Analysis Services or Power BI XMLA endpoints. Access tokens are sent to these hosts when the MCP server connects, so controlling the allowlist protects your credentials. Do not add a hostname solely to bypass the validation error without confirming who operates the endpoint.

💬 Feedback and Support

  • Check the Troubleshooting guide to diagnose and resolve common issues.
  • We're building this in the open. Your feedback is much appreciated, and will help us shape the future of the Power BI Authoring MCP server.
    • 👉 Open an issue in the public GitHub repository - we’d love to hear from you!

Considerations and limitations

  • You must have Write permission on the semantic model. For more information, see Semantic model permissions.
  • This MCP server follows the same rules and behaviors as modeling operations performed by External Tools. Refer to the documentation (learn.microsoft.com/power-bi/transform-model) for more information.
  • There is no tenant admin setting that specifically blocks the use of this MCP server. The server connects to semantic models through the XMLA endpoint. To prevent access through the MCP server, you must disable the XMLA endpoint. This also blocks other tools and applications that rely on XMLA connectivity. For more information, see Semantic model connectivity with the XMLA endpoint.

License

Use of this software is subject to the Power BI Authoring MCP Server EULA. NPX installations require explicit acceptance before the MCP tools can be used. See Accept the EULA for the available acceptance methods.

Data Privacy and LLM Providers

The MCP server runs locally and connects to your semantic model using your existing credentials and permissions, it does not bypass any Power BI security controls. However, data retrieved by the MCP server (metadata, schemas, or query results) is sent to the MCP client (e.g., VS Code) and may then be forwarded to the configured LLM provider as part of the conversation context.

In short: AI assistance does not expand data access, but it may transmit accessed data to the LLM provider. Governance efforts should focus on your organization's AI data-handling policies and the LLM provider's terms of service, rather than on Power BI security controls alone.

If you use GitHub Copilot, refer to the GitHub Copilot model hosting documentation for details on how data is shared with external AI model providers.

Security

Your credentials are always handled securely through the official Azure Identity SDK - we never store or manage tokens directly.

MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Power BI Authoring MCP Server, but any MCP client/agent that you choose to implement down to the model provider.

You should follow Microsoft security guidance for MCP servers, including enabling Entra ID authentication, secure token management, and network isolation. Refer to Microsoft Security Documentation for details.

Permissions and Risk

MCP clients can invoke operations based on the user’s Fabric RBAC permissions. Autonomous or misconfigured clients may perform destructive actions. You should review and apply least-privilege RBAC roles and implement safeguards before deployment. Certain safeguards, such as flags to prevent destructive operations, are not standardized in the MCP specification and may not be supported by all clients.

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Compliance Responsibility

This MCP server may be installed, used and share data with third party clients and services, such as third party LLMs that operate outside Microsoft compliance boundaries. You are responsible for ensuring that any integration complies with applicable organizational, regulatory, and contractual requirements.

Third Party Components

This MCP server may use or depend on third party components.  You are responsible for reviewing and complying with the licenses and security posture of any third-party components.

Export Control

Use of this software must comply with all applicable export laws and regulations, including U.S. Export Administration Regulations and local jurisdiction requirements.

No Warranty / Limitation of Liability

This software is provided “as is” without warranties or conditions of any kind, either express or implied. Microsoft shall not be liable for any damages arising from use, misuse, or misconfiguration of this software.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact open@microsoft.com with any additional questions or comments.

Questions about Power BI Authoring MCP Server (Local)

What is the Power BI Authoring MCP Server (Local) MCP server?

The Power BI Authoring MCP server lets an AI agent create and change Power BI semantic models. Power BI Authoring MCP Server (Local) is published by microsoft, the company behind the product, on GitHub at microsoft/powerbi-modeling-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Power BI Authoring MCP Server (Local) MCP server?

Add Power BI Authoring MCP Server (Local) to your AI app's MCP config with the command npx -y @microsoft/powerbi-modeling-mcp@1.0.1. In Claude Code, run claude mcp add --transport stdio powerbi-modeling -- npx -y @microsoft/powerbi-modeling-mcp@1.0.1. To run Power BI Authoring MCP Server (Local) this way you need Node.js installed.

Does Power BI Authoring MCP Server (Local) need an API key?

The registry lists no required keys for Power BI Authoring MCP Server (Local). Check the Power BI Authoring MCP Server (Local) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Power BI Authoring MCP Server (Local) an official MCP server?

Yes. Power BI Authoring MCP Server (Local) is published by microsoft, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is Power BI Authoring MCP Server (Local) under?

Power BI Authoring MCP Server (Local) is released under the MIT license, according to its GitHub repository. The license covers the code of Power BI Authoring MCP Server (Local); the service it connects to has its own terms.