MCP server/file-management

OneNote MCP Server

Read and write to local Microsoft OneNote notebooks via Claude

★ 3mhzarem/onenote-mcp ↗by mhzaremupdated
Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

git clone https://github.com/mhzarem/onenote-mcp.git
cd onenote-mcp
uv sync
2

Register it in Claude Code

claude mcp add onenote-mcp-43ce -- uv --directory /absolute/path/to/onenote-mcp run server.py

Replace any placeholder paths in the command with the real path on your machine.

3

Make your agent remember this setup

onenote-mcp-43ce's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.

npx conare@latest

Free · one command · indexes the sessions already on disk. Set up in the browser instead →

What it does

  • Parses local OneNote backup files to read notes without API keys.
  • Uses the OneNote COM API to create and append content to pages.
  • Supports searching across all local notebooks and sections.
  • No Azure registration or cloud authentication required.
  • Supports HTML formatting for page content creation.

Tools 10

list_notebooksList all locally available OneNote notebooks from backup files.
list_sectionsList all sections in a specific notebook.
read_sectionRead the full text content of a section.
search_notesSearch for text across all notebooks and sections.
list_all_sectionsList every section across every notebook.
get_notebook_summaryGet a notebook overview with content previews.
list_live_notebooksList notebooks and sections from the running OneNote app.
create_pageCreate a new page in any notebook section.
list_live_pagesList pages in a section with IDs for appending.
append_to_pageAppend content to an existing page.

Environment Variables

ONENOTE_BACKUP_DIRThe directory path where OneNote backup files are stored.

Try it

List my OneNote notebooks and show me the sections in my Programming notebook.
Search my notes for any mentions of transformers.
Create a new page in my Quick Notes section titled Meeting Notes.
Append today's summary to my existing interview prep page.
Original README from mhzarem/onenote-mcp

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_notebooks List all locally available OneNote notebooks (from backup files)
list_sections List all sections in a specific notebook
read_section Read the full text content of a section
search_notes Search for text across all notebooks and sections
list_all_sections List every section across every notebook
get_notebook_summary Get a notebook overview with content previews

Writing Tools

Tool Description
list_live_notebooks List notebooks/sections from the running OneNote app
create_page Create a new page in any notebook section
list_live_pages List pages in a section (with IDs for appending)
append_to_page Append content to an existing page

Writing tools use the OneNote COM API and require the OneNote desktop app to be running on Windows.

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 sync

Or with pip:

git clone https://github.com/mhzarem/onenote-mcp.git
cd onenote-mcp
pip install "mcp[cli]" pyOneNote

Setup

Claude Code

claude mcp add --transport stdio onenote -- uv --directory /path/to/onenote-mcp run server.py

Verify it's connected:

claude mcp list

Claude Desktop

Add this to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %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/files

Usage 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:

  1. Scans the OneNote backup directory for .one files
  2. Organizes them by notebook and section (grouping backup versions together)
  3. Uses pyOneNote to parse the binary .one format
  4. Extracts RichEditTextUnicode text content from each section

Writing:

  1. Connects to the running OneNote desktop app via the COM API
  2. Uses PowerShell subprocess calls to create pages and update content
  3. 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

Frequently Asked Questions

What are the key features of OneNote MCP Server?

Parses local OneNote backup files to read notes without API keys.. Uses the OneNote COM API to create and append content to pages.. Supports searching across all local notebooks and sections.. No Azure registration or cloud authentication required.. Supports HTML formatting for page content creation..

What can I use OneNote MCP Server for?

Quickly searching through years of archived notes stored in local backups.. Automating the creation of meeting notes pages directly from Claude.. Appending daily summaries or research findings to existing OneNote pages.. Managing personal knowledge bases stored in OneNote without leaving the Claude interface..

How do I install OneNote MCP Server?

Install OneNote MCP Server by running: git clone https://github.com/mhzarem/onenote-mcp.git && cd onenote-mcp && uv sync

What MCP clients work with OneNote MCP Server?

OneNote MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Conare · memory for coding agents

Turn this server into reusable context

Keep OneNote MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Set up free$npx conare@latest