
OneNote holds the meeting notes, architecture decisions, and project specs that teams build on, but getting an agent to read any of it means wiring up Azure AD app registration, tenant-specific OAuth scopes, and token refresh logic before a single tool can be invoked.
To help your developers list notebooks, retrieve page content, and surface note data from the terminal with ease, we'll show you how to connect OneNote with Merge Agent Handler's OneNote MCP server.
Merge Agent Handler connects Claude Code to the OneNote API through a single CLI setup.
You install the Merge CLI, authenticate once with your Merge Agent Handler account, and register the connection with one command.
Merge handles Microsoft Graph's OAuth token lifecycle on your behalf, including Azure AD authorization flows and token refresh, so you never store tenant credentials locally or rewire authentication when access tokens expire.
Here's the command that registers the connection:
Related: Steps for integrating a OneNote MCP with Codex
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's OneNote MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install with pipx: pipx install merge-api

Then confirm the installation: merge --version
Related: A guide to using the OneNote MCP in Cursor
Run merge login to authenticate the CLI with your Merge Agent Handler account.
This authenticates your session so the CLI can make authorized requests on your behalf going forward.
The simplest way to register Agent Handler with Claude Code:
Or register manually:
Open Claude Code and run: /mcp
agent-handler should appear under Local MCPs with a connected status.

Open a Claude Code session and try: "List all notebooks in my OneNote account, show the sections inside each one, and summarize any pages with titles that suggest meeting notes or project planning."
The first time you invoke a OneNote tool, a Magic Link will appear to complete connector authentication.

You should then see an output like the following:

{{this-blog-only-cta}}
In case you have more questions on setting up and using the OneNote MCP in Claude Code, we've addressed several more commonly-asked questions below.
With OneNote connected, Claude Code can:
You can build a self-hosted MCP server on top of Microsoft Graph. OneNote's API is part of the Graph surface, the endpoints are documented, and for a single developer working against their own Microsoft account the initial setup is workable: register an app in Azure AD, configure the right scopes, complete the OAuth flow, and start making requests.
The friction compounds the moment a second user or a second environment enters the picture.
Microsoft Graph uses Azure AD for authentication, which means each user goes through a tenant-specific auth flow with scopes that need to match what the app registration was configured to allow. A multi-user setup requires tracking access tokens and refresh tokens per user, handling Azure AD token lifetimes, and debugging auth failures that look different depending on whether the account is a personal Microsoft account or a work or school account on a specific tenant.
Microsoft also doesn't offer an official OneNote MCP server. And while community-built options exist, they carry no guarantees on coverage, maintenance, or enterprise support.
Merge Agent Handler addresses these gaps by handling per-user credential storage and token refresh. That lets each developer authenticate once through the Merge CLI rather than managing Microsoft Graph OAuth individually. You can also scope which OneNote tools a given agent can reach: a meeting notes summarizer, for example, can get read access to pages and sections but not the ability to create or delete content.
Agent Handler also logs every tool call with the timestamp, tool name, and inputs, giving teams an audit trail of which notebooks were accessed and when.
OneNote is where a lot of institutional knowledge actually lives: meeting notes from decisions that never made it into a ticket, architecture discussions captured during a sprint, research that informed a product direction. That content is useful for agents, but it's locked away from development workflows because accessing it programmatically has always required standing up a Microsoft Graph integration first.
With the OneNote MCP connected, Claude Code can read page content, list notebooks, and retrieve section structure without leaving the terminal.
This matters when note content needs to inform code or a downstream action: pulling the decisions from last quarter's architecture review before starting a refactor, extracting action items from a set of meeting notes to create tickets, or summarizing a notebook section ahead of a design review.
Use Merge Agent Handler’s 150+ connectors (including OneNote) to power reliable, secure, and powerful agents.