Set up Word Online in Metorial for Claude, ChatGPT and Cursor
Share Word Online with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 14 tools (6 read-only).
To give your team Word Online in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Word Online integration in a Metorial portal, and each person signs in to Word Online with their own account. Agents can manage Word documents stored in OneDrive and SharePoint via Microsoft Graph. The integration has 14 tools, 6 read-only, 6 write and 2 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Word Online in a portal and how each person connects
- The 8 OAuth scopes Word Online can request, and what each one allows
- How to keep the 6 read-only tools and reject the other 8
Before you start
- A portal with at least one access group
- An account with Word 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 & Personal (default) | OAuth | Signs in to Word Online |
| Work Only | OAuth | Signs in to Word Online |
The portal and metorial setup use Work & Personal unless someone picks another method.
Work & Personal
People sign in to Word Online and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
Files.Read | Read Files | Read the signed-in user's files |
Files.ReadWrite | Read/Write Files | Read and write the signed-in user's files |
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 Sites | Read items in all site collections (for SharePoint-stored documents) |
Sites.ReadWrite.All | Read/Write Sites | Read and write items in all site collections |
offline_access | Offline Access | Maintain access to data you have given it access to (required for refresh tokens) |
User.Read | User Profile | Read the signed-in user's basic profile |
Work Only
It requests the same scopes as Work & Personal.
Setup settings
Whichever method you pick, setup also asks for:
driveId(optional): The ID of the OneDrive or SharePoint drive to use. If not specified, the current user's default drive is used.siteId(optional): The SharePoint site ID. Required when working with SharePoint document libraries instead of OneDrive.
Use your own Word Online OAuth app
With your own OAuth app, people see your company's name on the Word 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 Word 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 Word Online integration.
Admin: share Word 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 Word Online. Under Auth Method, keep Work & Personal or pick another. For how members connect, choose Each person connects, so everyone signs in to Word Online as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Word Online.
Choose who gets it
Add the access groups that should see Word 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 Word Online integration. Once it exists, check which groups have it:
Employee: connect Word Online
In the portal
Open Word Online in the catalog
Sign in to your portal and open Word Online. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Word 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 & Personal. To connect with Work Only 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 Word 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 6 read-only tools, such as get_document and list_documents, and lose the 6 write tools, such as create_folder or share_document, and the 2 destructive tools, such as manage_document or remove_permission.
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 14 tools, minus any you rejected. list_documents takes no input. It lists files and folders within a specific folder in OneDrive or SharePoint.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (6)
document_preview: Get a short-lived embeddable preview URL for a Word document stored in SharePoint or OneDrive for Business. NeedsitemId.list_permissions: List all sharing permissions on a Word document or file in OneDrive or SharePoint. NeedsitemId.get_document: Retrieve metadata and details for a Word document or file stored in OneDrive or SharePoint.list_documents: List files and folders within a specific folder in OneDrive or SharePoint.download_document: Get a pre-authenticated download URL for a Word document or file stored in OneDrive or SharePoint. NeedsitemId.search_documents: Search for Word documents and files across OneDrive or SharePoint by name, content, or metadata. Needsquery.
Write tools (6)
document_checkin_checkout: Check in or check out a Word document in OneDrive for Business or SharePoint. **Check out** locks the document to prevent others from editing it. **Check in** unlocks the document and makes your changes visible to others. NeedsitemIdandaction.document_versions: List or restore previous versions of a Word document in OneDrive or SharePoint. NeedsitemId.create_folder: Create a new folder in OneDrive or SharePoint. NeedsfolderName.create_upload_session: Create a resumable upload session for uploading large files (>4MB) to OneDrive or SharePoint. NeedsparentFolderIdandfileName.upload_document: Upload or create a new document in OneDrive or SharePoint. NeedsfileNameandcontent.share_document: Share a Word document or file by creating a sharing link or inviting specific users. NeedsitemIdandmethod.
Destructive tools (2)
remove_permission: Remove a sharing permission from a Word document or file in OneDrive or SharePoint. NeedsitemIdandpermissionId.manage_document: Perform file management operations on a Word document or file in OneDrive or SharePoint. NeedsitemIdandaction.
Triggers
Word Online has 1 trigger, which fire on events in Word Online:
drive_item_changes: Triggers when files or folders are created, updated, or deleted in OneDrive or SharePoint.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Word 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
- Word Online on metorial.com: the integration overview