The Power BI Model Context Protocol (MCP) servers let AI tools interact with Power BI using natural language. There are two flavors of MCP server: a Local (Modeling) MCP server and a Remote MCP server . The local Modeling server runs on your own machine and provides rich semantic-model editing capabilities, whereas the Remote server is a hosted cloud endpoint that lets AI agents query existing Power BI models. In practice, the local Modeling server is used for development and modelmanagement scenarios, while the Remote server is aimed at analytical and insights scenarios. In this blog we will see various usecases of Local MCP Server
Local (Modeling) MCP Server Use Cases
Conversational Model Editing: Developers can instruct an AI assistant to build or change the semantic model in natural language. For example, you might say “create a measure called TotalSales summing Sales[Amount]” or “add a monthly calendar table with YTD and YoY measures,” and the agent will generate the appropriate tables, relationships, and DAX measures.
In other words, you can “tell your AI assistant what you need” and it will create or update tables, columns, measures, and relationships across your Power BI Desktop or Fabric model . This makes it quick to perform common modeling tasks (simple aggregations, date tables, lookup tables) without hand-coding DAX or JSON.
Bulk Model Operations: The Modeling MCP server excels at high-volume, mechanical changes.
You can apply batch operations across hundreds of objects simultaneously – for example, renaming multiple measures to follow a naming convention, translating column names, or applying description templates to all tables . These bulk operations turn hours of tedious manual edits into seconds.
In practice, teams use this to enforce consistency: an AI agent can scan a model for naming patterns and fix them in one go.
Time-Intelligence & Calendar Scaffolding: The AI can rapidly scaffold standard tables and time-intelligence measures. For instance, commands like “create a calendar table for 2025 with Year, Quarter, Month hierarchies” automatically generate the date table, set up relationships, and add YTD, PY, and YoY measures.
Applying Modeling Best Practices: The server can check a model against known best practices and correct issues. For example, the agent might detect a many-to-many relationship or missing relationship and then fix it. Microsoft notes that the Modeling server can “evaluate and implement modeling best practices against your model”, ensuring that common design guidelines (like
proper data types, normalization, or star-schema conformance) are followed.
Agentic Development Workflows: By working with the new Tabular Model Definition Language (TMDL), the Modeling MCP server supports fully automated, code-driven model development. An AI agent can make changes to the TMDL files without ever opening Power BI Desktop.
This enables scenarios like CI/CD and Git-based review: the agent edits the model files, you review diffs in version control, and then deploy. In effect, it creates an audit trail and “pullrequest” workflow for model changes, which is valuable for teams managing many models across dev/test/prod environments.
DAX Query Testing & Validation: The Modeling server can execute DAX queries against the current model. This means an agent can test measures or troubleshoot calculations on the fly. You might ask it to “run this measure for the latest data” or “verify that column X sums correctly,” and it will execute the DAX and return results or error messages. As Microsoft states, the server
supports “execute and validate DAX queries” to help test measures and explore data.
Discovery and Documentation: Inherited or complex models can be hard to understand; an AI agent can help. Use cases include having the agent examine an unfamiliar model to identify key metrics or clean up the design. For example, an agent can automatically comment M-code, annotate relationships, or generate descriptions of tables and columns . These “mass commenting” and bulk-annotation tasks reduce knowledge gaps when taking over someone else’s model. The agent might also find anomalies (like a column spelled “Reptitions” instead of “Repetitions” in an example) and propose fixes.
Model Refactoring: Power BI DAX logic and M-query logic can sometimes be rearranged for performance. The agent can assist with tasks like moving DAX calculations upstream into Power Query (or vice versa) for optimization . It can even refactor many measures at once. In general, the MCP server is best for high-volume, low-risk tasks (bulk renames, translations, scaffolding tables), while complex business-logic DAX still needs expert review.
Rapid Prototyping: For proof-of-concept work, the local server can quickly generate sample data or measures. A user might prompt the agent to create a demo dataset or fill a table with random values for testing. While not explicitly documented, this follows from the ability to edit tables and would be a natural developer use case.
Model Version Comparison and Rollback: Since the agent works in code (TMDL), each change can be committed to source control. If a generated change is wrong, you can simply revert or adjust it, unlike manual edits directly in the model. This gives an implicit use case of safer experimentation: try a change via AI, verify results, then accept or discard.
In summary, the local Modeling MCP server is used by BI developers to speed up semantic-model development and maintenance. It automates repetitive modeling tasks (bulk edits, table creation, naming conventions), enforces standards, and integrates with coding workflows. It effectively serves as an AI-powered assistant for model authors, augmenting tools like Tabular Editor or Power BI Desktop.
Let's Connect on LinkedIn
Subscribe to my YouTube channel for Microsoft Fabric and Power BI updates.