MetorialDocs

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

Sign-in method

MethodTypeWhat a person provides
Microsoft OAuthOAuthSigns in to Power BI

Microsoft OAuth

People sign in to Power BI and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
https://analysis.windows.net/powerbi/api/Dataset.ReadWrite.AllDatasets Read/WriteRead and write all datasets
https://analysis.windows.net/powerbi/api/Dataset.Read.AllDatasets ReadRead all datasets
https://analysis.windows.net/powerbi/api/Dashboard.Read.AllDashboards ReadRead all dashboards
https://analysis.windows.net/powerbi/api/App.Read.AllApps ReadRead all installed apps
https://analysis.windows.net/powerbi/api/Report.Read.AllReports ReadRead all reports
https://analysis.windows.net/powerbi/api/Report.ReadWrite.AllReports Read/WriteRead and write all reports
https://analysis.windows.net/powerbi/api/Dataflow.Read.AllDataflows ReadRead all dataflows
https://analysis.windows.net/powerbi/api/Dataflow.ReadWrite.AllDataflows Read/WriteRead and write all dataflows
https://analysis.windows.net/powerbi/api/Group.ReadGroups ReadRead user groups
https://analysis.windows.net/powerbi/api/Group.Read.AllGroups Read AllRead all groups
https://analysis.windows.net/powerbi/api/Content.CreateContent CreateCreate content in Power BI
https://analysis.windows.net/powerbi/api/Capacity.Read.AllCapacities ReadRead all capacities
https://analysis.windows.net/powerbi/api/Capacity.ReadWrite.AllCapacities Read/WriteRead and write all capacities
https://analysis.windows.net/powerbi/api/Pipeline.Read.AllPipelines ReadRead all deployment pipelines
https://analysis.windows.net/powerbi/api/Pipeline.ReadWrite.AllPipelines Read/WriteRead and write all deployment pipelines
https://analysis.windows.net/powerbi/api/Pipeline.DeployPipelines DeployDeploy content with deployment pipelines
https://analysis.windows.net/powerbi/api/Metadata.View_AnyMetadata ViewView metadata for any item
https://analysis.windows.net/powerbi/api/Data.Alter_AnyData AlterAlter any data
https://analysis.windows.net/powerbi/api/Workspace.Read.AllWorkspaces ReadRead all workspaces
https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.AllWorkspaces Read/WriteRead and write all workspaces
offline_accessOffline AccessMaintain 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:

metorial-admin portals access list <portal-id> --type provider_template --search "power bi"

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

metorial catalog search "power bi"
metorial setup <catalog-item-id>

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.

metorial list "power bi"
metorial client list
metorial install <client-identifier> <integration-id>

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 list "power bi"
metorial tools <integration-id>
metorial call <integration-id> list_apps -d '{}'

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. Needs datasetId.
  • 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. Needs workspaceId.
  • 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. Needs datasetId and parameters.
  • generate_embed_token: Generate an embed token for embedding Power BI reports or dashboards in custom applications. Needs contentType and contentId.
  • assign_workspace_capacity: Assign or unassign a Power BI workspace to/from a Premium or Embedded capacity. Needs action and workspaceId.
  • execute_dax_query: Execute a DAX (Data Analysis Expressions) query against a Power BI dataset and return the results. Needs datasetId and query.
  • push_data: Push rows of data into a Power BI push dataset table or delete all rows from a table. Needs action, datasetId and tableName.
  • export_report: Export a Power BI report to a file format (PDF, PPTX, PNG) or check the status of an ongoing export. Needs action and reportId.
  • manage_report: Get report details, list pages, clone a report, rebind to a different dataset, or delete a report. Needs action and reportId.
  • refresh_dataset: Trigger a dataset refresh or view refresh history. Needs action and datasetId.
  • refresh_dataflow: Trigger a refresh for a Power BI dataflow. Needs workspaceId and dataflowId.
  • manage_workspace_users: List, add, update, or remove users from a Power BI workspace. Needs workspaceId and action.
  • manage_pipeline: List deployment pipelines, view pipeline stages and artifacts, deploy content between stages, or check deployment operation status. Needs action.

Destructive tools (1)

  • manage_workspace: Create or delete a Power BI workspace. Needs action.

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