MetorialDocs

Set up Excel Online in Metorial for Claude, ChatGPT and Cursor

Share Excel Online with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 12 tools (3 read-only).

To give your team Excel Online in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Excel Online integration in a Metorial portal, and each person signs in to Excel Online with their own account. Agents can read and write Excel workbook data stored in OneDrive for Business and SharePoint. The integration has 12 tools, 3 read-only, 3 write and 6 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Excel Online in a portal and how each person connects
  • The 8 OAuth scopes Excel Online can request, and what each one allows
  • How to keep the 3 read-only tools and reject the other 9

Before you start

Sign-in methods

MethodTypeWhat a person provides
Work Only (default)OAuthSigns in to Excel Online
Work & PersonalOAuthSigns in to Excel Online

The portal and metorial setup use Work Only unless someone picks another method.

Work Only

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

ScopeNameWhat it allows
Files.ReadRead FilesRead-only access to the user's files and Excel workbooks
Files.ReadWriteRead/Write FilesRead and write access to the user's files and Excel workbooks
Files.Read.AllRead All FilesRead all files the user can access
Files.ReadWrite.AllRead/Write All FilesRead and write all files the user can access
Sites.Read.AllRead All SitesRead SharePoint sites the user can access
Sites.ReadWrite.AllRead/Write All SitesRead and write SharePoint sites the user can access
User.ReadUser ProfileRead the user's basic profile information
offline_accessOffline AccessMaintain access to data you have given it access to (required for refresh tokens)

Work & Personal

It requests the same scopes as Work Only.

Setup settings

Whichever method you pick, setup also asks for:

  • driveId (optional): The ID of the OneDrive for Business or SharePoint drive. If not provided, the default drive of the authenticated user will be used.
  • siteId (optional): The SharePoint site ID to use for accessing workbooks. If provided, driveId is relative to this site.

Use your own Excel Online OAuth app

With your own OAuth app, people see your company's name on the Excel Online 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 Excel Online 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 Excel Online integration.

Admin: share Excel Online 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 Excel Online. Under Auth Method, keep Work Only or pick another. For how members connect, choose Each person connects, so everyone signs in to Excel Online as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Excel Online.

Choose who gets it

Add the access groups that should see Excel Online. 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 Excel Online integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "excel online"

Employee: connect Excel Online

In the portal

Open Excel Online in the catalog

Sign in to your portal and open Excel Online. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. An Excel Online 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 "excel online"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Work Only. To connect with Work & Personal instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Excel Online 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 "excel online"
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 3 read-only tools, such as read_range and find_workbooks, and lose the 3 write tools, such as manage_sessions or sort_filter_table, and the 6 destructive tools, such as write_range or manage_charts.

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 "excel online"
metorial tools <integration-id>
metorial call <integration-id> find_workbooks -d '{"action":"search"}'

metorial tools lists the 12 tools, minus any you rejected. find_workbooks needs action, so replace the placeholders. It searches for Excel workbook files (.xlsx) in OneDrive for Business or SharePoint by keyword, or list workbooks in a specific folder.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (3)

  • read_range: Read cell values, formulas, and number formats from a specific range or the used range of a worksheet. Needs workbookItemId and worksheetIdOrName.
  • find_workbooks: Search for Excel workbook files (.xlsx) in OneDrive for Business or SharePoint by keyword, or list workbooks in a specific folder. Needs action.
  • invoke_function: Execute an Excel built-in calculation function remotely (e.g., SUM, VLOOKUP, PMT, ABS, IF). Needs workbookItemId, functionName and parameters.

Write tools (3)

  • manage_sessions: Create, refresh, or close workbook sessions for efficient multi-step interactions with an Excel workbook. Needs workbookItemId and action.
  • manage_named_items: List, get, or create named ranges and constants in an Excel workbook. Needs workbookItemId and action.
  • sort_filter_table: Apply sorting or filtering to a structured Excel table. Needs workbookItemId, tableIdOrName and action.

Destructive tools (6)

  • manage_tables: Create, list, update, delete, or convert structured tables in an Excel workbook. Needs workbookItemId and action.
  • manage_table_rows: Add or delete rows in a structured Excel table. Needs workbookItemId, tableIdOrName and action.
  • manage_charts: Create, list, update, delete charts, or retrieve a chart image from an Excel worksheet. Needs workbookItemId, worksheetIdOrName and action.
  • write_range: Write values, formulas, or number formats to a specific cell range in a worksheet. Needs workbookItemId, worksheetIdOrName and rangeAddress.
  • manage_table_columns: List, add, or delete columns in a structured Excel table. Needs workbookItemId, tableIdOrName and action.
  • manage_worksheets: List, create, update, or delete worksheets in an Excel workbook. Needs workbookItemId and action.

Triggers

Excel Online has 2 triggers, which fire on events in Excel Online:

  • inbound_webhook
  • workbook_changed: Triggers when an Excel workbook (.xlsx) file is created, modified, or deleted in the configured drive.

Next steps