Skip to main content
Glama
OneNote MCP Server

OneNote MCP Server

by mhzarem

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.

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

Available Tools

10 tools
append_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

    A3.7/5.0

    Scored across 10 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      12
      2
      MIT