Skip to main content
Glama
mhzarem

OneNote MCP Server

by mhzarem

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ONENOTE_BACKUP_DIRNoThe directory where OneNote backup files (.one) are stored. By default, the server reads from the OneNote desktop app's local backup directory (C:\Users\<user>\AppData\Local\Microsoft\OneNote\16.0\Backup\).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_notebooksA

List all locally available OneNote notebooks.

Shows notebook names and how many sections each one has.

list_sectionsC

List all sections in a specific notebook.

Args:
    notebook_name: The name of the notebook (from list_notebooks).
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).
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).
list_all_sectionsA

List ALL sections across ALL notebooks.

Useful for getting a complete overview of everything in your OneNote.

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

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/mhzarem/onenote-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server