MetorialDocs

Set up OneNote in Metorial for Claude, ChatGPT and Cursor

Share OneNote with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 14 tools (7 read-only).

To give your team OneNote in Claude, ChatGPT, Cursor and other AI clients, an admin shares the OneNote integration in a Metorial portal, and each person signs in to OneNote with their own account. Agents can create, read, update, and organize OneNote notebooks, sections, section groups, and pages. The integration has 14 tools, 7 read-only, 6 write and 1 destructive, plus 1 trigger.

What you'll learn

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

Before you start

Sign-in methods

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

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

Work Only

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

ScopeNameWhat it allows
Notes.ReadRead NotesRead-only access to all OneNote notebooks owned by or shared with you.
Notes.ReadWriteRead & Write NotesRead and modify OneNote content.
Notes.CreateCreate NotesCreate new OneNote notebooks, sections, and pages.
Notes.Read.AllRead All NotesRead all OneNote notebooks you have access to in the organization.
Notes.ReadWrite.AllRead & Write All NotesRead, share, and modify all OneNote notebooks you have access to in the organization.
offline_accessOffline AccessObtain a refresh token for persistent access.
User.ReadUser ProfileRead your basic profile information.

Work & Personal

It requests the same scopes as Work Only.

Use your own OneNote OAuth app

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

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

Limit the tools

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

Choose who gets it

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

metorial-admin portals access list <portal-id> --type provider_template --search onenote

Employee: connect OneNote

In the portal

Open OneNote in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A OneNote 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 onenote
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 OneNote 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 onenote
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 7 read-only tools, such as get_page and list_pages, and lose the 6 write tools, such as create_page or copy_content, and the destructive tool delete_page.

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 onenote
metorial tools <integration-id>
metorial call <integration-id> list_notebooks -d '{}'

metorial tools lists the 14 tools, minus any you rejected. list_notebooks takes no input. It lists all OneNote notebooks accessible by the authenticated user.

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

Tools

Read-only tools (7)

  • list_notebooks: List all OneNote notebooks accessible by the authenticated user.
  • search_pages: Search OneNote pages accessible by the authenticated user. Needs query.
  • list_pages: List all pages within a OneNote section. Needs sectionId.
  • list_section_groups: List all section groups within a OneNote notebook. Needs notebookId.
  • list_sections: List all sections within a OneNote notebook. Needs notebookId.
  • get_notebook: Retrieve details of a specific OneNote notebook by its ID, including creation date, sharing status, and modification metadata. Needs notebookId.
  • get_page: Retrieve a OneNote page's metadata and optionally its HTML content or a short text preview. Needs pageId.

Write tools (6)

  • copy_content: Copy a OneNote notebook, section, or page to another location. Needs resourceType and resourceId.
  • create_page: Create a new OneNote page in a section. Needs sectionId and htmlContent.
  • create_section_group: Create a new section group for organizing sections. Needs displayName.
  • update_page_content: Update the content of an existing OneNote page using PATCH operations. Needs pageId and operations.
  • create_notebook: Create a new OneNote notebook with the specified name. Needs displayName.
  • create_section: Create a new section inside a OneNote notebook or section group. Needs displayName.

Destructive tools (1)

  • delete_page: Permanently delete a OneNote page. Needs pageId.

Triggers

OneNote has 1 trigger, which fire on events in OneNote:

  • inbound_webhook

Next steps