Powerbi Modeling MCPのロゴ

Powerbi Modeling MCP

組織人気
microsoft

The Power BI Modeling MCP Server, brings Power BI semantic modeling capabilities to your AI agents.

公開者microsoft
リポジトリpowerbi-modeling-mcp
フォーク
208
スター
1.2K
利用可能なツール
0
通信方式stdio
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Powerbi Modeling MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには1.2K件のスターと208件のフォークがあります。

✨ Power BI Modeling MCP Server

The Power BI Modeling MCP Server implements the MCP specification to create a seamless connection between AI agents and Power BI semantic models. This project is in Public Preview and implementation may significantly change prior to our General Availability.

The Power BI Modeling 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.

powerbi-modeling-mcp-diagram

💡 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 Modeling 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 Modeling MCP Visual Studio Code extension.

    vs code install

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

    vscode-mcp-tools

[!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.

mcp-servers-in-copilot-enable

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.

json
{
	"powerbi-modeling-mcp": {
			"type": "stdio",
			"command": "npx",
			"args": [
				"-y",
				"@microsoft/powerbi-modeling-mcp@latest",
				"--start"				
			]
		}	
}

Manual download

  1. Download the VSIX package for the version you want using the URL below:
    • Template: https://marketplace.visualstudio.com/_apis/public/gallery/publishers/analysis-services/vsextensions/powerbi-modeling-mcp/[version]/vspackage?targetPlatform=[platform]
    • Example (version 0.1.9, platform win32-x64): https://marketplace.visualstudio.com/_apis/public/gallery/publishers/analysis-services/vsextensions/powerbi-modeling-mcp/0.1.9/vspackage?targetPlatform=win32-x64
  2. Rename the downloaded .visx file to .zip
  3. Unzip the contents to a folder of your choice, for example: C:\MCPServers\PowerBIModelingMCP
  4. Run \extension\server\powerbi-modeling-mcp.exe
  5. Copy the MCP JSON registration from the console and register it in your preferred MCP client tool.

Example of config that should work in most MCP clients:

json
{
	"powerbi-modeling-mcp": {
		"type": "stdio",
		"command": "C:\\MCPServers\\PowerBIModelingMCP\\extension\\server\\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

ScenarioPrompt 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 modelGenerate 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.

Confirmation prompts

This MCP Server supports the Elicitation MCP protocol, requiring user approval for the following actions:

  • Before the first modification made to a semantic model.
  • Before the first query executed against a semantic model.

mcp-server-elicitation

[!TIP] You can configure the MCP to skip these confirmations by using the --skipconfirmation option.

🛠️ Available tools

Tool NameWhat It Does
connection_operationsConnect to Power BI Desktop or Fabric workspaces
database_operationsManage semantic models - connect, create, update, list databases, import/export TMDL folders, deploy to Fabric
transaction_operationsControl database transactions (begin, commit, rollback, get status)
model_operationsWork with the overall model (get, create, update, refresh, get stats, rename)
table_operationsManage tables (create, update, delete, get, list, refresh, rename)
column_operationsManage individual table columns (create, update, delete, get, list, rename)
measure_operationsManage individual DAX measures (create, update, delete, get, list, rename, move between tables)
relationship_operationsHandle relationships between tables (create, update, delete, activate/deactivate, find)
dax_query_operationsExecute and validate DAX queries against the model
trace_operationsPerform trace operations on semantic model to capture and analyze Analysis Services events.
partition_operationsManage table partitions (create, update, delete, refresh specific partitions)
user_hierarchy_operationsWork with user-defined hierarchies (create, update, delete levels, reorder)
calculation_group_operationsManage calculation groups and calculation items for time intelligence and other calculations
security_role_operationsConfigure security roles and row-level security (RLS) table permissions
perspective_operationsManage perspectives and their members (filtered views of the model for different audiences)
named_expression_operationsWork with named expressions and Power Query parameters (create, update, delete, get, list, rename)
function_operationsManage individual DAX user-defined functions
culture_operationsManage cultures for multi-language support (create, update, delete, get valid culture names)
object_translation_operationsHandle translations for model objects across different cultures/languages
calendar_operationsManage calendar objects and time intelligence column groups
query_group_operationsOrganize and manage query groups for Power Query expressions

[!NOTE]

  • This project is in Public Preview and tools may significantly change prior to our General Availability.
  • 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 powerbi-modeling-mcp

▶️ 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.

vscode-mcp-prompts

Prompt NameWhat It Does
CreateDAXQueryCreates 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.
RunDAXQueryWithMetricsExecutes the DAX query with option to clear the cache and return only the execution metrics.
AnalyzeDAXQueryAnalyzes DAX query performance by running it with a cleared cache and reviewing execution metrics for potential issues.
ConnectToPowerBIDesktopSearches for the Power BI Desktop Analysis Services instance that matches the file name and connects to it.
ConnectToFabricConnects to a semantic model in a Fabric Workspace.
ConnectToPBIPLoads 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 optionDefaultDescription
--startStarts the MCP server; necessary for server registration with MCP client.
--readwriteYesEnabled by default, enables write operations with confirmation prompt before applying an edit to your semantic model (once per database).
--readonlySafe mode, prevents any write operations to your semantic model
--skipconfirmationAutomatically approves all write operations without confirmation prompts. Only use skip confirmation mode when you're confident about the operations being performed and have appropriate backups of your semantic model.
--compatibilityPowerBIBy 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.
--authmodeinteractiveSet authentication mode: serviceprincipal or interactive.
Environment variable nameDefaultDescription
AZURE_CLIENT_IDThe application (client) ID of the Microsoft Entra service principal. Required when --authmode=serviceprincipal.
AZURE_TENANT_IDThe Microsoft Entra tenant (directory) ID. Required when --authmode=serviceprincipal or force a specific tenant with interactive authentication.
AZURE_CLIENT_SECRETThe client secret for the service principal. Required when --authmode=serviceprincipal and using secret-based authentication.
AZURE_CLIENT_CERTIFICATE_PATHPath 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_PASSWORDPassword for the certificate file, if the certificate is password-protected. Only used when --authmode=serviceprincipal with certificate-based authentication.
PBI_MODELING_MCP_ACCESS_TOKENWhen configured, the MCP Server uses the specified access token instead of prompting for authentication when connecting to a semantic model in a Fabric workspace. This is useful in scenarios where the application handles authentication itself.

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.

VS Code settings

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:

json
{
"servers": {
		"powerbi-modeling-mcp": {
			"command": "[Path To MCP Server folder]\\powerbi-modeling-mcp.exe",
			"args": [
				"--start"
                , "--skipconfirmation"
				, "--authmode=interactive"    				
			],
			"env": {
				"PBI_MODELING_MCP_ACCESS_TOKEN": "[ACCESS_TOKEN]"
			},
			"type": "stdio"
		}
	}
}

💬 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 Modeling 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 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

By installing this software, you accept the license agreement. See EULA.txt within the repository for legal terms.

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 Modeling 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.

Powerbi Modeling MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Powerbi Modeling MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Powerbi Modeling MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Powerbi Modeling MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "powerbi-modeling-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてPowerbi Modeling MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Powerbi Modeling MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Powerbi Modeling MCPを使ってこのタスクを手伝ってもらえますか?
Powerbi Modeling MCP
はい、読みました。
Powerbi Modeling MCPで調べた結果をお伝えします。

よくある質問

Powerbi Modeling MCP MCPサーバーは何に使いますか?

Powerbi Modeling MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでPowerbi Modeling MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでPowerbi Modeling MCPを利用できます。

TypingMindでPowerbi Modeling MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Powerbi Modeling MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Powerbi Modeling MCP MCPをTypingMindに接続するにはどうすればよいですか?

Powerbi Modeling MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでPowerbi Modeling MCP MCPのどのようなツールを利用できますか?

Powerbi Modeling MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Powerbi Modeling MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Powerbi Modeling MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇