Local OneNote MCP
Click on "Install 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., "@Local OneNote MCPlist all notebooks"
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.
Local OneNote MCP
A high-performance, local Microsoft OneNote MCP server for Windows. It controls the OneNote desktop app directly through the local OneNote COM API—requiring no Azure, Microsoft Graph, API keys, or online OAuth.
Design & Architecture
Local-Only Boundary: Every operation executes directly through the local OneNote desktop installation. No data ever leaves your computer.
COM-First Engineering: No direct binary
.onefile manipulation. All writes and reads leverage OneNote’s native COM engine, ensuring maximum data integrity and sync compatibility.Safe Execution Bridge: Inputs are passed safely through JSON-based temp files, completely avoiding PowerShell string interpolation or risk of command injections.
Rich Interaction Surface: Full CRUD capabilities for notebooks, section groups, sections, pages, sync, and raw XML manipulation.
Design Note: PowerShell is leveraged as a reliable COM bridge because certain Windows/Office environments expose the OneNote COM interfaces directly to PowerShell while leaving them unavailable or restricted to Python's traditional automation libraries.
Related MCP server: OneNote MCP Server
Requirements
Windows 10 / 11
Microsoft OneNote Desktop App (Traditional version; not the legacy Windows 10 UWP app)
Python 3.11+
Node.js & npm (Required for the standard global launcher)
OneMore Desktop Add-in (Optional — only required to enable rich Markdown compilation)
Verify your system environment:
node -v
npm -v
python --versionQuick Start (Recommended)
1. Install the global launcher
Open PowerShell and run:
npm install -g github:Peteroooooooo/local-onenote-mcp(Once published on the npm registry, you will be able to install it using: npm install -g local-onenote-mcp)
? Performance & Startup Tip: Running this server via a global installation (
npm install -g) or direct local link is highly recommended over running it dynamically via ephemeralnpxcommands. This ensures the server operates 100% offline, resolves real physical paths consistently, caches the underlying Python virtual environment perfectly, and boots in under 1 second by avoiding slow GitHub network requests and redundant package reinstalls on startup.
2. Configure your MCP Client
Claude Desktop
Add this to your %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"local-onenote": {
"command": "local-onenote-mcp",
"env": {
"LOCAL_ONENOTE_MCP_TIMEOUT": "90",
"LOCAL_ONENOTE_MCP_MAX_TEXT_CHARS": "60000"
}
}
}
}Codex / Cursor (TOML)
Add this to your configuration:
[mcp_servers.local-onenote]
type = "stdio"
command = "local-onenote-mcp"
startup_timeout_ms = 120000
[mcp_servers.local-onenote.env]
LOCAL_ONENOTE_MCP_TIMEOUT = "90"
LOCAL_ONENOTE_MCP_MAX_TEXT_CHARS = "60000"Restart your MCP client. Upon first execution, the launcher automatically creates a local Python virtual environment, installs the required packages, and hosts the stdio channel.
Alternative Installation Options
Option A: Modern Python Toolchains (No npm required)
If you prefer pure-Python execution, you can configure your MCP client to invoke the server via standard Python package runners.
Using uvx (Ultra-fast, ephemeral execution)
[mcp_servers.local-onenote]
type = "stdio"
command = "uvx"
args = [
"--from",
"git+https://github.com/Peteroooooooo/local-onenote-mcp",
"local-onenote-mcp"
]
startup_timeout_ms = 120000Using pipx (Isolated user-space CLI)
pipx install git+https://github.com/Peteroooooooo/local-onenote-mcpThen configure:
[mcp_servers.local-onenote]
type = "stdio"
command = "local-onenote-mcp"
startup_timeout_ms = 120000Option B: Local Cloning & Active Development
To contribute or run the server from source:
Clone the repository:
git clone https://github.com/Peteroooooooo/local-onenote-mcp cd local-onenote-mcpBuild the Python Virtual Environment:
python -m venv .venv .\.venv\Scripts\python.exe -m pip install -e .Configure your Client to use the local dev build:
{ "mcpServers": { "local-onenote-dev": { "command": "C:\\path\\to\\local-onenote-mcp\\.venv\\Scripts\\python.exe", "args": ["-m", "local_onenote_mcp.server"], "env": { "LOCAL_ONENOTE_MCP_TIMEOUT": "90", "LOCAL_ONENOTE_MCP_MAX_TEXT_CHARS": "60000" } } } }Validate local configurations:
.\.venv\Scripts\python.exe scripts\check_codex_config.py
OneMore & Markdown Integration
💡 Crucial Note on Optionality & Power:
100% Optional: The OneMore desktop add-in is not a hard dependency. Without it, the server operates fully, allowing complete notebook hierarchy discovery, search, page reads, exports, navigation, and page creation/modification using plain text or raw HTML.
A Formatting Powerhouse: If installed, it unlocks a massive productivity boost. It binds to OneMore's high-performance
.NET Markdigrendering pipeline. This lets AI agents write in standard, clean Markdown (including bold, italics, code snippets with styling, bulleted/numbered lists, headers, and blockquotes) and automatically converts them into perfectly formatted, native OneNote components and structured tables.
The server achieves this by querying and binding directly to OneMore's native Markdig.Signed.dll via the Windows Registry or standard program paths:
C:\Program Files\River\OneMoreAddIn\Markdig.Signed.dllC:\Program Files (x86)\River\OneMoreAddIn\Markdig.Signed.dll
If installed in a custom location, specify the path in your configuration variables:
[mcp_servers.local-onenote.env]
LOCAL_ONENOTE_MARKDIG_DLL = "C:\\path\\to\\Markdig.Signed.dll"API & Tool Directory
The server exposes 30+ comprehensive endpoints grouped into four logical categories:
1. Discovery & Content Inspection
health_check: Get server version, python location, and active features.list_notebooks/list_sections/list_pages/list_hierarchy: Traverse the live OneNote structure.get_page/get_page_text/get_page_xml: Extract page content as plain text, parsed JSON, or raw XML.get_page_objects/get_binary_content: Query and extract sub-elements (like tables, images, ink, or file attachment payloads).search_pages: Search live text. Supports real-time offline scan (include_unindexed=true) or indexing searches.
2. Creation & Structural Edits
open_hierarchy/create_notebook/create_section/create_section_groupcreate_page: Create formatted pages viaplain,html, ormarkdown.update_page_title/append_to_page/replace_page_bodyadd_image_to_page: Add local images. Automatically infers native dimensions if only width or height is provided.
3. File & App Control
publish_object: Export any notebook, section, or page to local PDF files.navigate_to/navigate_to_url: Instantly focus and jump the desktop UI to specific elements.sync_hierarchy: Trigger background or immediate synchronization of specific notebooks.close_notebook/merge_sections/set_filing_location
4. Raw Low-Level Control
update_page_xml/update_hierarchy_xml: Execute direct, high-performance edits on OneNote's raw underlying XML schemas.
Identifier Resolution Protocol: When querying folders or items, the server sequentially tries to resolve identifiers in this priority:
Exact OneNote Object GUID (Recommended for automation)
Relative Hierarchy Path (e.g.,
Personal/Quick Notes/My Section)Unique display name
Verification & Smoke Tests
Ensure everything is configured and operating as expected before starting:
# 1. Run a read-only discovery verification
.\.venv\Scripts\python.exe scripts\smoke_mcp.py
# 2. Run a full write/read/search verification cycle
.\.venv\Scripts\python.exe scripts\smoke_mcp.py --notebook "MyNotebook" --section "MyNotebook/General" --export-dir tmpPrompt Engineering & Markdown Example
Here is a typical markdown format that can be generated dynamically:
# Project Launch Checklist
- **Project:** Triton Migration
- **Target Date:** 2026-07-01
## Immediate Tasks
- Define system architecture layout.
- Finalize local security boundary reviews.
## Roadmap & Milestones
| Milestone | Responsibility | Status |
| --- | --- | --- |
| Beta Deploy | Infrastructure | **In Progress** |
| Production Cutover | Operations | Pending |Limits & Boundaries
This server relies on the Windows COM API. While it excels at handling local/offline notebooks with speeds exceeding the Microsoft Graph Cloud API, it is restricted to single-user local contexts and Windows-native environments.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Peteroooooooo/local-onenote-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server