Set up the Power BI MCP server
Microsoft's remote Power BI MCP server lets AI agents query Power BI semantic models: executing DAX queries, reading model schemas, and inspecting report metadata, all under each user's own permissions. This guide covers enabling the preview in your Power BI tenant, registering a Microsoft Entra app for OAuth, and connecting the server to MintMCP from the recommended server catalog.
Prerequisites
- A MintMCP admin account
- A Power BI (Fabric) administrator to enable the preview tenant setting
- Permission to register applications in your Microsoft Entra tenant
- Users need Build permission on the semantic models they will query
Enable the tenant setting
The preview is off by default, so a Fabric administrator must enable it before any MCP client can connect.
- Go to the Fabric admin portal and open Tenant settings.
- Find Users can use the Power BI Model Context Protocol server endpoint (preview).
- Enable it for the entire organization, or restrict it to specific security groups.
- Click Apply. Tenant setting changes can take up to 15 minutes to propagate.
Register a Microsoft Entra app
Microsoft Entra does not support dynamic client registration, so an admin registers an app once and MintMCP uses its client ID for the OAuth flow.
-
Sign in to the Microsoft Entra admin center and go to App registrations > New registration.
-
Enter a name, for example
MintMCP Power BI. -
Under Supported account types, select Accounts in this organizational directory only (Single tenant).
-
Under Redirect URI (optional), select Public client/native (mobile & desktop) and enter:
https://app.mintmcp.com/oauth/callback
-
Click Register.
-
Go to API permissions > Add a permission > Power BI Service > Delegated permissions, and add:
Permission Grants Dataset.Read.AllRead the semantic models the user can access Workspace.Read.AllRead the workspaces the user can access MLModel.Execute.AllExecute ML models the user can access -
Click Grant admin consent so users are not individually prompted to consent.
-
On the Overview page, copy the Application (client) ID.
Add Power BI to MintMCP
Power BI is listed in the MintMCP recommended server catalog. Because Entra does not support dynamic client registration, you supply the client ID from the app you registered above.
- In MintMCP, go to MCP store > Manage store.
- Find Power BI in the recommended servers list and click Install.
- Under OAuth Client Advanced Settings, paste the Application (client) ID in the Client ID field.
- Click Save.
Each user signs in with their own Microsoft account on first use, so queries run under their identity and row-level security is enforced.
Find your semantic model ID
The server's tools take a semantic model ID as input, so users need the IDs of the models they want to query.
-
Sign in to Power BI and open the workspace containing the model.
-
Select the semantic model and copy its ID from the URL:
https://app.powerbi.com/groups/{workspaceId}/datasets/{semanticModelId}
Store frequently used model IDs where agents can find them, for example in a project instruction file.
Available tools
| Tool | What it does |
|---|---|
| Execute Query | Runs a DAX query against a semantic model |
| Get Semantic Model Schema | Returns tables, columns, measures, and relationships |
| Get Report Metadata | Returns a report's pages, visuals, and filters |
| Generate Query | Generates DAX from natural language using Copilot in Power BI |
Generate Query requires a Copilot license and consumes Copilot capacity. If you prefer the client LLM to write DAX instead, disable the tool with tool customization.
Security considerations
- Each user authenticates with their own Microsoft account, so queries are bounded by their workspace access and Build permissions, and row-level security is enforced per user.
- The client ID alone identifies your Entra app but grants no data access on its own; access always requires a signed-in user and the delegated permissions above.
- The delegated permissions are read and execute only. The server cannot modify semantic models, reports, or workspaces.
- All tool calls flow through the MintMCP gateway, so they are attributed to individual users in the audit log.
Next steps
- Tool customization: control which Power BI tools are exposed to users
- Set up the Microsoft 365 MCP servers: add Outlook, Teams, OneNote, and SharePoint connectors
- MCP gateway administration: manage access and permissions across your MCP store