onenote-mcpBLOCK
MCP server for Microsoft OneNote via Graph API - notebooks, sections, pages, search, device-code auth, Vite webapp + Tauri desktop app
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Your OneNote notebooks, readable and writable by both you and your AI assistant.
What this wraps
Microsoft OneNote via the Microsoft Graph API — notebooks, sections, and full page content, headless (no screen automation). See docs/WRAPPEE.md for official links, community, and disambiguation from similarly-named projects.
Preview
Two doors
- MCP server, for AI agents — 26 tools + 1 prompt over stdio or
streamable HTTP (:10907/mcp): list/explore notebooks, read page HTML, create pages, title + full-text search, notebook TOC cards. Any MCP client (Claude Desktop, Cursor, Copilot) can browse and edit your notes.
- Webapp, for humans — dashboard (
:10906) with notebook tree browser,
rendered page viewer, search with filter/sort/pagination/CSV export, AI chat over your notes, skills, logging, settings. No prompt engineering required.
What You Can Do
- Browse notebooks → sections → pages; read full page content rendered
- Search titles instantly; build a local full-text index for body search
- Create pages from plain text (paragraphs from blank lines)
- Back up everything to Markdown files, any time
- Ask the chat about your notes (local LLM via backend proxy, nothing leaks)
- Run headless, as a Tauri desktop app, or from a
.mcpbbundle
Install
Installation guide: INSTALL.md - a Windows app, a one-line add-on for Claude Desktop, or a config snippet for Cursor, VS Code and Claude Code.
Example Prompts
- "Show me my OneNote notebooks"
- "Find pages mentioning quarterly planning"
- "Create a page in My Notebook titled Shopping with a bullet list"
Documentation
5c0d6d66c6f8OBSERVED · 2026-10-11Connect
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 onenote-mcp-sota --env GRAPH_ACCESS_TOKEN=${GRAPH_ACCESS_TOKEN} --env ONENOTE_AUTHORITY=${ONENOTE_AUTHORITY} -- npx -y [email protected]{
"mcpServers": {
"onenote-mcp-sota": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"GRAPH_ACCESS_TOKEN": "${GRAPH_ACCESS_TOKEN}",
"ONENOTE_AUTHORITY": "${ONENOTE_AUTHORITY}"
}
}
}
}Exposed tools (25)
18 read · 6 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
authenticate | write | Start the Microsoft authentication flow using device code. |
get_onenote_page | read | Get OneNote page content. |
get_onenote_page_text | read | Get OneNote page as readable text. |
onenote_authenticate | read | |
onenote_create_notebook | write | Create a new OneNote notebook. |
onenote_create_page | write | |
onenote_delete_page | destructive | Permanently delete one OneNote page. |
onenote_export | read | Back up notebooks to Markdown files (one per page + index). |
onenote_export_status | read | Show Markdown backup progress (files written, output dir). |
onenote_get_notebook | read | |
onenote_get_notebook_toc | read | |
onenote_get_page | read | |
onenote_help | read | List the available OneNote MCP tools and when to use each. |
onenote_index_start | write | Build (or refresh) the local full-text search index. |
onenote_index_status | read | Show full-text index build progress and coverage. |
onenote_list_notebooks | read | |
onenote_list_pages | read | |
onenote_list_section_groups | read | List the section groups directly under a notebook. |
onenote_list_sections | read | |
onenote_recent | read | List recently modified pages across all notebooks. |
onenote_save_access_token | write | Save a Microsoft Graph access token for later use. |
onenote_save_token | write | |
onenote_search_pages | read | |
show_notebooks_card | read | Show the user |
shutdown_server | read | Shut down the onenote-mcp server gracefully. |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (6 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (21)
os.environ.copy() ... urllib.request
scripts/backup-repo.ps1
# FleetStartMode.ps1 - vendored per-repo copy (no mcp-central-docs required at runtime)
text = (proc.stdout or "").strip().removeprefix("")# Fleet unified launcher - do not edit logic here.
onenote_delete_page
.assess-fix-timestamp
.cursorignore
.ghaudit-timestamp
.mcpbignore
.pre-commit-config.yaml
res = http.post("/api/mcp-clients/unregister", json={"clients": ["../../evil"]})`http://127.0.0.1:10907` inside Tauri.
- **Webapp**: open `http://127.0.0.1:10906`, go to **Notebooks**
(e.g. `http://127.0.0.1:10907/mcp`).
- Installed NSIS app: the built frontend calls `http://127.0.0.1:10907/api` directly (see `web_sota/src/lib/api.ts`). If the backend didn't start, use the dashboard's **Restart Backend** button or che
- Claude Desktop / Cursor: point the `mcpServers` entry at `uv run --directory <repo> python -m onenote_mcp` (stdio) or `http://127.0.0.1:10907/mcp` (HTTP streamable) while the backend is running.
return _crypt(base64.b64decode(value[6:]), encrypt=False).decode("utf-8")@azure/identity, @azure/msal-node, @microsoft/microsoft-graph-client, @modelcontextprotocol/sdk, dotenv, node-fetch, typescript, zod
@radix-ui/react-dialog, @radix-ui/react-dropdown-menu, @radix-ui/react-label, @radix-ui/react-progress, @radix-ui/react-scroll-area, @radix-ui/react-slot, @radix-ui/react-tabs, @radix-ui/react-tooltip
- **Access token** — a short-lived credential the server uses to call Microsoft Graph
Gates applied: no_behavioural_pass.
5c0d6d66c6f8full audit observations/trust-audit/mcp-server/sandraschi__onenote-mcp.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-11 | 5c0d6d66c6f8 | BLOCK | D | 69 | first audit |
Questions
What is the onenote-mcp MCP server?
MCP server for Microsoft OneNote via Graph API - notebooks, sections, pages, search, device-code auth, Vite webapp + Tauri desktop app
What tools does onenote-mcp expose?
25 in total: 18 read-only, 6 that write, and 1 that can delete or overwrite (onenote_delete_page). Every one is listed on this page with its risk.
Is onenote-mcp safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does onenote-mcp need?
It reads GRAPH_ACCESS_TOKEN and ONENOTE_AUTHORITY 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-mcp run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on npm as onenote-mcp-sota at 0.0.0.
How current is this page?
The grade is for one exact copy of the source (5c0d6d66c6f8), read on 2026-10-11. The repository is watched and re-audited when it changes.