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
- A portal with at least one access group
- An account with Excel Online for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Work Only (default) | OAuth | Signs in to Excel Online |
| Work & Personal | OAuth | Signs 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:
| Scope | Name | What it allows |
|---|---|---|
Files.Read | Read Files | Read-only access to the user's files and Excel workbooks |
Files.ReadWrite | Read/Write Files | Read and write access to the user's files and Excel workbooks |
Files.Read.All | Read All Files | Read all files the user can access |
Files.ReadWrite.All | Read/Write All Files | Read and write all files the user can access |
Sites.Read.All | Read All Sites | Read SharePoint sites the user can access |
Sites.ReadWrite.All | Read/Write All Sites | Read and write SharePoint sites the user can access |
User.Read | User Profile | Read the user's basic profile information |
offline_access | Offline Access | Maintain 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:
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
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.
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 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. NeedsworkbookItemIdandworksheetIdOrName.find_workbooks: Search for Excel workbook files (.xlsx) in OneDrive for Business or SharePoint by keyword, or list workbooks in a specific folder. Needsaction.invoke_function: Execute an Excel built-in calculation function remotely (e.g., SUM, VLOOKUP, PMT, ABS, IF). NeedsworkbookItemId,functionNameandparameters.
Write tools (3)
manage_sessions: Create, refresh, or close workbook sessions for efficient multi-step interactions with an Excel workbook. NeedsworkbookItemIdandaction.manage_named_items: List, get, or create named ranges and constants in an Excel workbook. NeedsworkbookItemIdandaction.sort_filter_table: Apply sorting or filtering to a structured Excel table. NeedsworkbookItemId,tableIdOrNameandaction.
Destructive tools (6)
manage_tables: Create, list, update, delete, or convert structured tables in an Excel workbook. NeedsworkbookItemIdandaction.manage_table_rows: Add or delete rows in a structured Excel table. NeedsworkbookItemId,tableIdOrNameandaction.manage_charts: Create, list, update, delete charts, or retrieve a chart image from an Excel worksheet. NeedsworkbookItemId,worksheetIdOrNameandaction.write_range: Write values, formulas, or number formats to a specific cell range in a worksheet. NeedsworkbookItemId,worksheetIdOrNameandrangeAddress.manage_table_columns: List, add, or delete columns in a structured Excel table. NeedsworkbookItemId,tableIdOrNameandaction.manage_worksheets: List, create, update, or delete worksheets in an Excel workbook. NeedsworkbookItemIdandaction.
Triggers
Excel Online has 2 triggers, which fire on events in Excel Online:
inbound_webhookworkbook_changed: Triggers when an Excel workbook (.xlsx) file is created, modified, or deleted in the configured drive.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Excel Online 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
- Excel Online on metorial.com: the integration overview