Set up Power BI in Metorial for Claude, ChatGPT and Cursor
Share Power BI with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 21 tools (9 read-only).
To give your team Power BI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Power BI integration in a Metorial portal, and each person signs in to Power BI with their own account. Agents can manage Power BI workspaces, datasets, reports, dashboards, and dataflows. The integration has 21 tools, 9 read-only, 11 write and 1 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Power BI in a portal and how each person connects
- The 21 OAuth scopes Power BI can request, and what each one allows
- How to keep the 9 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- An account with Power BI for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| Microsoft OAuth | OAuth | Signs in to Power BI |
Microsoft OAuth
People sign in to Power BI and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://analysis.windows.net/powerbi/api/Dataset.ReadWrite.All | Datasets Read/Write | Read and write all datasets |
https://analysis.windows.net/powerbi/api/Dataset.Read.All | Datasets Read | Read all datasets |
https://analysis.windows.net/powerbi/api/Dashboard.Read.All | Dashboards Read | Read all dashboards |
https://analysis.windows.net/powerbi/api/App.Read.All | Apps Read | Read all installed apps |
https://analysis.windows.net/powerbi/api/Report.Read.All | Reports Read | Read all reports |
https://analysis.windows.net/powerbi/api/Report.ReadWrite.All | Reports Read/Write | Read and write all reports |
https://analysis.windows.net/powerbi/api/Dataflow.Read.All | Dataflows Read | Read all dataflows |
https://analysis.windows.net/powerbi/api/Dataflow.ReadWrite.All | Dataflows Read/Write | Read and write all dataflows |
https://analysis.windows.net/powerbi/api/Group.Read | Groups Read | Read user groups |
https://analysis.windows.net/powerbi/api/Group.Read.All | Groups Read All | Read all groups |
https://analysis.windows.net/powerbi/api/Content.Create | Content Create | Create content in Power BI |
https://analysis.windows.net/powerbi/api/Capacity.Read.All | Capacities Read | Read all capacities |
https://analysis.windows.net/powerbi/api/Capacity.ReadWrite.All | Capacities Read/Write | Read and write all capacities |
https://analysis.windows.net/powerbi/api/Pipeline.Read.All | Pipelines Read | Read all deployment pipelines |
https://analysis.windows.net/powerbi/api/Pipeline.ReadWrite.All | Pipelines Read/Write | Read and write all deployment pipelines |
https://analysis.windows.net/powerbi/api/Pipeline.Deploy | Pipelines Deploy | Deploy content with deployment pipelines |
https://analysis.windows.net/powerbi/api/Metadata.View_Any | Metadata View | View metadata for any item |
https://analysis.windows.net/powerbi/api/Data.Alter_Any | Data Alter | Alter any data |
https://analysis.windows.net/powerbi/api/Workspace.Read.All | Workspaces Read | Read all workspaces |
https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All | Workspaces Read/Write | Read and write all workspaces |
offline_access | Offline Access | Maintain access with refresh tokens |
Setup settings
Setup also asks for:
tenantId: Azure AD (Microsoft Entra ID) Tenant ID. Found in Azure portal under App registrations.
Use your own Power BI OAuth app
With your own OAuth app, people see your company's name on the Power BI consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Power BI and copy the Redirect URI.
Register the app with Power BI
Create an OAuth app or client in Power BI and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Power BI integration.
Admin: share Power BI in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Power BI. For how members connect, choose Each person connects, so everyone signs in to Power BI as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Power BI.
Choose who gets it
Add the access groups that should see Power BI. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Power BI integration. Once it exists, check which groups have it:
Employee: connect Power BI
In the portal
Open Power BI in the catalog
Sign in to your portal and open Power BI. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Power BI sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Power BI connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 9 read-only tools, such as list_apps and get_dataset, and lose the 11 write tools, such as push_data or export_report, and the destructive tool manage_workspace.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 21 tools, minus any you rejected. list_apps takes no input. It lists published Power BI apps accessible to the authenticated user.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (9)
list_apps: List published Power BI apps accessible to the authenticated user.list_gateways: List on-premises data gateways and optionally include their data sources.get_dataset: Get detailed information about a Power BI dataset including its properties, data sources, parameters, tables, and refresh schedule. NeedsdatasetId.list_capacities: List available Power BI Premium and Embedded capacities.list_reports: List all Power BI reports.list_dataflows: List all Power BI dataflows in a workspace. NeedsworkspaceId.list_workspaces: List all Power BI workspaces (groups) accessible to the authenticated user.list_dashboards: List Power BI dashboards and optionally include tile details.list_datasets: List all Power BI datasets.
Write tools (11)
update_dataset_parameters: Update parameter values on a Power BI dataset. NeedsdatasetIdandparameters.generate_embed_token: Generate an embed token for embedding Power BI reports or dashboards in custom applications. NeedscontentTypeandcontentId.assign_workspace_capacity: Assign or unassign a Power BI workspace to/from a Premium or Embedded capacity. NeedsactionandworkspaceId.execute_dax_query: Execute a DAX (Data Analysis Expressions) query against a Power BI dataset and return the results. NeedsdatasetIdandquery.push_data: Push rows of data into a Power BI push dataset table or delete all rows from a table. Needsaction,datasetIdandtableName.export_report: Export a Power BI report to a file format (PDF, PPTX, PNG) or check the status of an ongoing export. NeedsactionandreportId.manage_report: Get report details, list pages, clone a report, rebind to a different dataset, or delete a report. NeedsactionandreportId.refresh_dataset: Trigger a dataset refresh or view refresh history. NeedsactionanddatasetId.refresh_dataflow: Trigger a refresh for a Power BI dataflow. NeedsworkspaceIdanddataflowId.manage_workspace_users: List, add, update, or remove users from a Power BI workspace. NeedsworkspaceIdandaction.manage_pipeline: List deployment pipelines, view pipeline stages and artifacts, deploy content between stages, or check deployment operation status. Needsaction.
Destructive tools (1)
manage_workspace: Create or delete a Power BI workspace. Needsaction.
Triggers
Power BI has 2 triggers, which fire on events in Power BI:
dataset_refresh_completed: Triggers when a dataset refresh completes (successfully or with failure).inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Power BI there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Power BI on metorial.com: the integration overview