onenote-mcp
Enables natural language interaction with Microsoft OneNote to manage notebooks, sections, and pages, including creating and searching pages via the Microsoft Graph API.
README
OneNote MCP Server
A stdio Model Context Protocol server for Microsoft OneNote. It uses Microsoft Graph delegated permissions and Microsoft device-code authentication.
Requirements
- Node.js 20 or newer
- A Microsoft account with OneNote access
- An MCP client such as Codex
Install
Option 1: Add from the desktop GUI
-
Open the Codex desktop app, select Plugins, open Create, and select Add marketplace.

-
Select Add plugin marketplace and enter:
- Source:
https://github.com/seanGSISG/onenote-mcp.git - Git ref:
main - Sparse paths: leave blank

- Source:
-
Select Add marketplace, return to Plugins, and select the Personal tab. If the new marketplace does not appear, completely restart the desktop app and return to Plugins.
-
Select Sean's OneNote Plugin and choose Install beside Microsoft OneNote.

-
Restart the desktop app again, open a new task, and ask:
Authenticate with OneNote.
Option 2: Let Codex configure it
Paste this into a Codex desktop task—no clone is required:
Read https://raw.githubusercontent.com/seanGSISG/onenote-mcp/main/AGENTS.md and follow it to install the complete OneNote plugin in the Codex desktop app.
Codex will add this repository as a plugin marketplace, install the complete OneNote plugin, verify its MCP server, and explain when a desktop-app restart or new task is required. Users do not need to clone the repository or edit MCP JSON or TOML files.
Option 3: Install for development
git clone https://github.com/seanGSISG/onenote-mcp.git
cd onenote-mcp
npm install
npm test
The MCP SDK is installed from npm. A separate SDK checkout and build are no longer required.
Advanced: MCP-only configuration
Add this to ~/.codex/config.toml, replacing the path with the absolute path to onenote-mcp.mjs:
[mcp_servers.onenote]
type = "stdio"
command = "node"
args = ["C:/absolute/path/to/onenote-mcp.mjs"]
enabled = true
startup_timeout_sec = 30
Restart Codex after changing MCP configuration.
Authentication
- Call
authenticationStatus. - If unauthenticated, call
authenticate. - Open the returned Microsoft device-login URL and enter the returned code. Use
force: trueto replace a stale or unwanted login. - Call
authenticationStatusagain to confirm completion.
Authentication starts in the background, so the authenticate tool returns the device code immediately. The delegated access token is stored at ~/.onenote-mcp/access-token.json. Set ONENOTE_TOKEN_PATH to override that location, or supply GRAPH_ACCESS_TOKEN in the server environment. ONENOTE_CLIENT_ID and ONENOTE_TENANT_ID override the default public client and common tenant.
The server requests the delegated Notes.ReadWrite and User.Read scopes.
Tools
| Tool | Purpose |
|---|---|
authenticationStatus |
Check authentication state and expiration |
authenticate |
Start device-code authentication |
listNotebooks |
List up to maxResults notebooks |
getNotebook |
Get one notebook by exact ID |
listSections |
List up to maxResults sections, optionally in a notebook |
listPages |
List up to maxResults pages, optionally in a section |
getPage |
Get page metadata and optionally its HTML |
createPage |
Create a titled XHTML page in an exact section |
searchPages |
Search page titles |
All resource-specific operations use explicit IDs. The server never silently chooses the first notebook, section, or page.
Development
npm run check
npm test
npm audit
The test suite covers token migration and expiration, asynchronous device-code flow, Graph request construction and errors, XHTML title escaping, and a real MCP stdio handshake.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.