Set up Fabric in Metorial for Claude, ChatGPT and Cursor
Share Fabric with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 36 tools (24 read-only).
To give your team Fabric in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Fabric integration in a Metorial portal, and each person signs in to Fabric with their own account. Agents can use Microsoft Fabric REST, OneLake data-plane APIs, and Fabric documentation resources to inspect workspaces and items, move files through OneLake, create Fabric items, and manage Data Factory pipelines and dataflows. The integration has 36 tools, 24 read-only, 7 write and 5 destructive.
What you'll learn
- How an admin shares Fabric in a portal and how each person connects
- The 4 OAuth scopes Fabric can request, and what each one allows
- How to keep the 24 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- An account with Fabric 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 |
|---|---|---|
| Work Only | OAuth | Signs in to Fabric |
Work Only
People sign in to Fabric and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://api.fabric.microsoft.com/Workspace.ReadWrite.All | Workspace Read/Write | Read and write Microsoft Fabric workspaces. |
https://api.fabric.microsoft.com/Item.ReadWrite.All | Item Read/Write | Read and write Microsoft Fabric items. |
https://api.fabric.microsoft.com/Item.Execute.All | Item Execute | Execute Microsoft Fabric item jobs and queries. |
offline_access | Offline Access | Maintain access with refresh tokens. |
Setup settings
Setup also asks for:
tenantId(optional): Optional Microsoft Entra tenant ID or alias used for OAuth. Defaults to organizations, which allows any work or school account tenant.fabricApiBaseUrl(optional): Override for the Fabric REST base URL. Defaults to production.oneLakeApiBaseUrl(optional): Override for the OneLake API base URL. Defaults to production.oneLakeDfsBaseUrl(optional): Override for the OneLake DFS base URL. Defaults to production.oneLakeBlobBaseUrl(optional): Override for the OneLake Blob base URL. Defaults to production.oneLakeTableBaseUrl(optional): Override for the OneLake Table base URL. Defaults to production.
Use your own Fabric OAuth app
With your own OAuth app, people see your company's name on the Fabric 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 Fabric and copy the Redirect URI.
Register the app
In the Microsoft Entra admin center, go to Entra ID, App registrations and select New registration. Under Authentication, add a redirect URI on the Web platform and paste the one from Metorial. Create a client secret under Certificates & secrets and copy its Value, which Microsoft shows only once.
The Microsoft 365 guide covers the app registration, client secret and admin consent in Microsoft Entra step by step.
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 Fabric integration.
Admin: share Fabric 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 Fabric. For how members connect, choose Each person connects, so everyone signs in to Fabric as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Fabric.
Choose who gets it
Add the access groups that should see Fabric. 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 Fabric integration. Once it exists, check which groups have it:
Employee: connect Fabric
In the portal
Open Fabric in the catalog
Sign in to your portal and open Fabric. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Fabric 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 Fabric 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 24 read-only tools, such as core_get_item and docs_workloads, and lose the 7 write tools, such as core_create_item or core_update_item, and the 5 destructive tools, such as core_delete_item or onelake_delete_file.
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 36 tools, minus any you rejected. docs_workloads takes no input.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (24)
docs_workload_api_spec: Official upstream MCP name: docs_workload-api-spec. NeedsworkloadType.docs_platform_api_spec: Official upstream MCP name: docs_platform-api-spec.docs_workloads: Official upstream MCP name: docs_workloads.onelake_download_file: Official upstream MCP name: onelake_download_file. NeedsfilePath.onelake_list_tables: Official upstream MCP name: onelake_list_tables.onelake_get_table: Official upstream MCP name: onelake_get_table. Needstable.onelake_list_items: Official upstream MCP name: onelake_list_items.onelake_list_files: Official upstream MCP name: onelake_list_files.onelake_list_table_namespaces: Official upstream MCP name: onelake_list_table_namespaces.datafactory_get_pipeline: Official upstream MCP name: datafactory_get-pipeline. NeedsworkspaceIdandpipelineId.datafactory_list_pipelines: Official upstream MCP name: datafactory_list-pipelines. NeedsworkspaceId.docs_item_definitions: Official upstream MCP name: docs_item-definitions.onelake_get_table_namespace: Official upstream MCP name: onelake_get_table_namespace.onelake_get_table_config: Official upstream MCP name: onelake_get_table_config.docs_best_practices: Official upstream MCP name: docs_best-practices.datafactory_list_dataflows: Official upstream MCP name: datafactory_list-dataflows. NeedsworkspaceId.docs_api_examples: Official upstream MCP name: docs_api-examples.onelake_list_workspaces: Official upstream MCP name: onelake_list_workspaces.onelake_list_items_dfs: Official upstream MCP name: onelake_list_items_dfs.core_list_workspaces: Discover accessible Fabric workspaces and their IDs using the Fabric REST API.core_list_items: Discover Fabric items in a workspace.core_get_item_job: Check an item job started by datafactory_run_pipeline.core_get_item: Read a Fabric item.core_get_operation_state: Check a Fabric long-running operation using the x-ms-operation-id returned by creation or query execution.
Write tools (7)
datafactory_create_dataflow: Official upstream MCP name: datafactory_create-dataflow. NeedsworkspaceIdanddisplayName.core_create_item: Official upstream MCP name: core_create-item. NeedsworkspaceId,displayNameanditemType.onelake_create_directory: Official upstream MCP name: onelake_create_directory. NeedsdirectoryPath.datafactory_execute_query: Official upstream MCP name: datafactory_execute-query. NeedsworkspaceId,dataflowIdandqueryName.datafactory_create_pipeline: Official upstream MCP name: datafactory_create-pipeline. NeedsworkspaceIdanddisplayName.datafactory_run_pipeline: Official upstream MCP name: datafactory_run-pipeline. NeedsworkspaceIdandpipelineId.core_update_item: Update a Fabric item display name or description.
Destructive tools (5)
onelake_delete_file: Official upstream MCP name: onelake_delete_file. NeedsfilePath.onelake_delete_directory: Official upstream MCP name: onelake_delete_directory. NeedsdirectoryPath.onelake_upload_file: Official upstream MCP name: onelake_upload_file. NeedsfilePath.core_cancel_item_job: Request cancellation of a running Fabric item job.core_delete_item: Delete a Fabric item.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Fabric there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Microsoft 365 guide: the app registration, client secret and admin consent in Microsoft Entra
- Fabric on metorial.com: the integration overview