OneNote MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OneNote MCP Server search my notes for 'project roadmap' and summarize the key points"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OneNote MCP Server
An MCP (Model Context Protocol) server that gives Claude access to your local Microsoft OneNote notebooks. It reads .one files directly from disk and writes to OneNote via the COM API — no Azure registration, no API keys, no authentication required.
What It Does
This server parses the OneNote backup files that the desktop app stores locally and exposes them as tools that Claude can use to browse, read, and write to your notes.
Reading Tools
Tool | Description |
| List all locally available OneNote notebooks (from backup files) |
| List all sections in a specific notebook |
| Read the full text content of a section |
| Search for text across all notebooks and sections |
| List every section across every notebook |
| Get a notebook overview with content previews |
Writing Tools
Tool | Description |
| List notebooks/sections from the running OneNote app |
| Create a new page in any notebook section |
| List pages in a section (with IDs for appending) |
| Append content to an existing page |
Writing tools use the OneNote COM API and require the OneNote desktop app to be running on Windows.
Related MCP server: onenote-mcp
Prerequisites
Python 3.12+
uv (recommended) or pip
Microsoft OneNote desktop app (with local backup files)
Installation
git clone https://github.com/mhzarem/onenote-mcp.git
cd onenote-mcp
uv syncOr with pip:
git clone https://github.com/mhzarem/onenote-mcp.git
cd onenote-mcp
pip install "mcp[cli]" pyOneNoteSetup
Claude Code
claude mcp add --transport stdio onenote -- uv --directory /path/to/onenote-mcp run server.pyVerify it's connected:
claude mcp listClaude Desktop
Add this to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"onenote": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/onenote-mcp",
"run",
"server.py"
]
}
}
}On Windows, use the full path to uv.exe and double backslashes:
{
"mcpServers": {
"onenote": {
"command": "C:\\Users\\YOUR_USER\\.local\\bin\\uv.exe",
"args": [
"--directory",
"C:\\path\\to\\onenote-mcp",
"run",
"server.py"
]
}
}
}Restart Claude Desktop after saving.
Where It Reads Files From
By default, the server reads from the OneNote desktop app's local backup directory:
C:\Users\<user>\AppData\Local\Microsoft\OneNote\16.0\Backup\To use a different location, set the ONENOTE_BACKUP_DIR environment variable:
# Claude Code
claude mcp add --transport stdio --env ONENOTE_BACKUP_DIR=/path/to/notes onenote -- uv --directory /path/to/onenote-mcp run server.py
# Or export it
export ONENOTE_BACKUP_DIR=/path/to/your/onenote/filesUsage Examples
Once connected, you can ask Claude:
Reading:
"List my OneNote notebooks"
"Show me the sections in my Machine Learning notebook"
"Read my Algorithm notes"
"Search my notes for transformers"
"Give me a summary of my Programming notebook"
Writing:
"Create a new page in My Notebook / Quick Notes titled 'Meeting Notes'"
"Add my interview prep notes to OneNote"
"Append today's summary to my existing page"
How It Works
Reading:
Scans the OneNote backup directory for
.onefilesOrganizes them by notebook and section (grouping backup versions together)
Uses pyOneNote to parse the binary
.oneformatExtracts
RichEditTextUnicodetext content from each section
Writing:
Connects to the running OneNote desktop app via the COM API
Uses PowerShell subprocess calls to create pages and update content
Supports HTML formatting in page content
Limitations
Reading: Uses OneNote desktop backup files — not OneDrive-only notebooks without local backup
Reading: Extracts text content only; images and embedded files are not included
Writing: Requires Windows with the OneNote desktop app installed
Writing: The OneNote app must be installed (it doesn't need to be open — the COM API will start it)
License
MIT
Available Tools
10 toolsappend_to_pageA
Append content to an existing OneNote page.
The content is added as a new outline block at the bottom of the page.
Supports HTML formatting (<b>, <i>, <br>, <ul>, <li>, etc.).
Args:
page_id: The page ID (from list_live_pages).
content: The content to append (plain text or HTML).
Inputs: content (required), page_id (required). Returns: result
create_pageA
Create a new page in a OneNote notebook section.
The content is written as HTML. You can use basic HTML tags like
<b>, <i>, <br>, <ul>, <li>, <h1>-<h6>, etc.
Requires the OneNote desktop app to be installed.
Args:
notebook_name: Name of the notebook (from list_live_notebooks).
section_name: Name of the section within the notebook.
title: Title for the new page.
content: The page content (plain text or HTML).
Inputs: title (required), content (required), section_name (required), notebook_name (required). Returns: result
get_notebook_summaryC
Get a summary of a notebook: its sections and a preview of each section's content.
Args:
notebook_name: The name of the notebook.
Inputs: notebook_name (required). Returns: result
list_all_sectionsA
List ALL sections across ALL notebooks.
Useful for getting a complete overview of everything in your OneNote.
Inputs: no named parameters. Returns: result
list_live_notebooksA
List notebooks from the running OneNote app (live, not backup files).
This uses the OneNote COM API and shows the notebooks currently open in the OneNote desktop app, including their sections. Use this to find where to create new pages.
Inputs: no named parameters. Returns: result
list_live_pagesB
List pages in a section from the running OneNote app.
Use this to find page IDs for appending content to existing pages.
Args:
notebook_name: Name of the notebook.
section_name: Name of the section.
Inputs: section_name (required), notebook_name (required). Returns: result
list_notebooksA
List all locally available OneNote notebooks.
Shows notebook names and how many sections each one has.
Inputs: no named parameters. Returns: result
list_sectionsC
List all sections in a specific notebook.
Args:
notebook_name: The name of the notebook (from list_notebooks).
Inputs: notebook_name (required). Returns: result
read_sectionA
Read all text content from a specific section of a notebook.
Args:
notebook_name: The name of the notebook.
section_name: The name of the section (from list_sections).
Inputs: section_name (required), notebook_name (required). Returns: result
search_notesA
Search for text across ALL notebooks and sections.
Searches through the text content of every section for the given query.
Returns matching sections with a snippet of the matched text.
Args:
query: The text to search for (case-insensitive).
Inputs: query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have clear, distinct purposes (e.g., create_page vs append_to_page). However, there is potential confusion between list_notebooks and list_live_notebooks, and between list_sections and list_all_sections, though descriptions clarify some differences.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., list_live_notebooks, create_page, search_notes). No mixing of conventions.
With 10 tools, the set is well-scoped for a Note-taking server. It covers the main operations—listing, creating, reading, appending, and searching—without being overwhelming.
Core read (list notebooks, sections, pages, read section) and write (create page, append content) operations are present. However, missing update (edit page), delete (page, section, notebook), and create section/notebook leave notable gaps for full lifecycle management.
Maintenance
Related MCP Connectors
Give Claude a second brain for your notes, tasks and contacts. OAuth; it can't delete anything.
1Notes, tasks, habits, journal and 6 more tools Claude can read and change, with undo. Free.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to read, create, and analyze Microsoft OneNote notebooks, sections, and pages, including automatic image text extraction via Claude Vision.71-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read local OneNote notebooks via the Windows desktop COM API, including text from pasted screenshots, while keeping all data on the machine.MIT
- AlicenseNot gradedqualityBmaintenanceGives Claude direct access to local Microsoft OneNote notebooks, enabling reading from backups and live via COM automation, plus writing sections and pages without a Microsoft account or API key.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read, search, create, and update Microsoft OneNote Desktop notebooks, sections, and pages on Windows using a dual-engine design that combines local .one backup parsing for offline full-text search with live COM automation for real-time authoring. Converts semantic HTML into native OneNote XML with rich typography, hierarchical sub-bullets, and grid tables — no cloud tokens, Graph registrations, or Azure credentials required.122MIT