OneNoteSAFE
MCP server for Microsoft OneNote
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server implementation that enables AI language models like Claude and other LLMs to interact with Microsoft OneNote.
This project is based on azure-onenote-mcp-server by Zubeid Hendricks, with modifications to simplify authentication and improve usability.
What Does This Do?
This server allows AI assistants to:
- Access your OneNote notebooks, sections, and pages
- Create new pages in your notebooks
- Search through your notes
- Read complete note content, including HTML formatting and text
- Analyze and summarize your notes directly
All of this happens directly through the AI interface without you having to switch contexts.
Using with AI Assistants
Setup for Cursor
- Clone this repository and follow the installation steps below
- Start the MCP server:
npm start - Register the server in Cursor:
- Open Cursor preferences (Cmd+, on Mac or Ctrl+, on Windows)
- Go to the "MCP" tab
- Add a new MCP server with these settings:
- Name:
onenote - Command:
node - Args:
["/path/to/your/onenote-mcp.mjs"](use absolute path)
Here's the complete JSON configuration example:
{
"mcpServers": {
"onenote": {
"command": "node",
"args": ["/absolute/path/to/your/onenote-mcp.mjs"],
"env": {}
}
}
}- Restart Cursor
- In Cursor, you can now interact with your OneNote data using natural language:
Can you show me my OneNote notebooks? Create a new page in my first notebook with a summary of this conversation Find notes related to "project planning" in my OneNote
The first time you ask about OneNote, the AI will guide you through the authentication process.
Setup for Claude Desktop (or other MCP-compatible assistants)
- Clone this repository and follow the installation steps below
- Start the MCP server:
npm start - In th
b0caf981c86eOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-server-onenote --env GRAPH_ACCESS_TOKEN=${GRAPH_ACCESS_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"mcp-server-onenote": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GRAPH_ACCESS_TOKEN": "${GRAPH_ACCESS_TOKEN}"
}
}
}
}Exposed tools (9)
6 read · 3 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
authenticate | write | Start the authentication flow with Microsoft Graph |
createPage | write | Create a new page in a section |
getNotebook | read | Get details of a specific notebook |
getPage | read | Get the content of a page |
listNotebooks | read | List all OneNote notebooks |
listPages | read | List all pages in a section |
listSections | read | List all sections in a notebook |
saveAccessToken | write | Save a Microsoft Graph access token for later use |
searchPages | read | Search for pages across notebooks |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@azure/identity, @azure/msal-node, @microsoft/microsoft-graph-client, dotenv, jsdom, node-fetch, open
Gates applied: no_behavioural_pass, no_license.
b0caf981c86efull audit observations/trust-audit/mcp-server/danosb__onenote-4.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | b0caf981c86e | SAFE | B | 89 | first audit |
Questions
What is the OneNote MCP server?
MCP server for Microsoft OneNote
What tools does OneNote expose?
9 in total: 6 read-only, 3 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is OneNote safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does OneNote need?
It reads GRAPH_ACCESS_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does OneNote run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-server-onenote at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (b0caf981c86e), read on 2026-10-07. The repository is watched and re-audited when it changes.