What it does
Microsoft OneNote MCP server, CLI, and TUI in Rust with local SQLite FTS5 cache & block edits.
- Connects Runs on your computer
- Account or key Needs ONENOTE_ACCESS_TOKEN
- Category Developer tools
Use together with
Skills that teach the AI this kind of work; they work alongside this one
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Why it ranks here
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 0/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 12/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Install
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Microsoft OneNote (TUI, CLI & MCP). Follow https://mcp.popnx.com/i/bitefoundry-onenote.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 24, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Let AI install it
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Microsoft OneNote (TUI, CLI & MCP) for Claude on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "onenote": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ONENOTE_ACCESS_TOKEN", "ghcr.io/bitefoundry/onenote:0.4.2" ], "env": { "ONENOTE_ACCESS_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ONENOTE_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Microsoft OneNote (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Docker (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
docker --version- A version number such as Docker version … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
docker --versionInstall once; it works for everything that needs Docker
Sign up and create a Microsoft OneNote (TUI, CLI & MCP) key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "onenote": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ONENOTE_ACCESS_TOKEN", "ghcr.io/bitefoundry/onenote:0.4.2" ], "env": { "ONENOTE_ACCESS_TOKEN": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use Microsoft OneNote (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Claude says it is using Microsoft OneNote (TUI, CLI & MCP) or shows a Microsoft OneNote (TUI, CLI & MCP) tool in the answer, you are connected
1 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILEOptional shared Microsoft Graph token file path.
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Microsoft OneNote (TUI, CLI & MCP) yet
Microsoft OneNote (TUI, CLI & MCP) runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect Microsoft OneNote (TUI, CLI & MCP)
- You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
- You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
- You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Works with Claude Code, with some setup first
You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Let AI install it
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Microsoft OneNote (TUI, CLI & MCP) for Claude Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user onenote --env ONENOTE_ACCESS_TOKEN=your-value -- docker run -i --rm -e ONENOTE_ACCESS_TOKEN ghcr.io/bitefoundry/onenote:0.4.2 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ONENOTE_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Microsoft OneNote (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Docker (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
docker --version- A version number such as Docker version … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
docker --versionInstall once; it works for everything that needs Docker
Sign up and create a Microsoft OneNote (TUI, CLI & MCP) key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add --scope user onenote --env ONENOTE_ACCESS_TOKEN=your-value -- docker run -i --rm -e ONENOTE_ACCESS_TOKEN ghcr.io/bitefoundry/onenote:0.4.2Replace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see Microsoft OneNote (TUI, CLI & MCP) listed as connected
Try it
Use Microsoft OneNote (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Microsoft OneNote (TUI, CLI & MCP) or shows a Microsoft OneNote (TUI, CLI & MCP) tool in the answer, you are connected
1 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILEOptional shared Microsoft Graph token file path.
Descriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Let AI install it
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Microsoft OneNote (TUI, CLI & MCP) for Cursor on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "onenote": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ONENOTE_ACCESS_TOKEN", "ghcr.io/bitefoundry/onenote:0.4.2" ], "env": { "ONENOTE_ACCESS_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ONENOTE_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Microsoft OneNote (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Docker (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
docker --version- A version number such as Docker version … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
docker --versionInstall once; it works for everything that needs Docker
Sign up and create a Microsoft OneNote (TUI, CLI & MCP) key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in your key
In the Microsoft OneNote (TUI, CLI & MCP) settings, ONENOTE_ACCESS_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use Microsoft OneNote (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Microsoft OneNote (TUI, CLI & MCP) or shows a Microsoft OneNote (TUI, CLI & MCP) tool in the answer, you are connected
1 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILEOptional shared Microsoft Graph token file path.
Descriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a Microsoft OneNote (TUI, CLI & MCP) key (create it on the maker’s site) · Install Docker on your computer first (one time)
Let AI install it
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Microsoft OneNote (TUI, CLI & MCP) for VS Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "onenote": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ONENOTE_ACCESS_TOKEN", "ghcr.io/bitefoundry/onenote:0.4.2" ], "env": { "ONENOTE_ACCESS_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For ONENOTE_ACCESS_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Microsoft OneNote (TUI, CLI & MCP) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Install Docker (if you don’t have it)
Already installed? Check first · Open Terminal, type this command and press Enter
docker --version- A version number such as Docker version … = installed, skip this step
- "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal
Mac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed
Open the Docker download page ↗
When it’s done, close Terminal, open it again and run the same command. You should see a version number:
docker --versionInstall once; it works for everything that needs Docker
Sign up and create a Microsoft OneNote (TUI, CLI & MCP) key
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
Fill in your key
In the Microsoft OneNote (TUI, CLI & MCP) settings, ONENOTE_ACCESS_TOKEN is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use Microsoft OneNote (TUI, CLI & MCP) and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Microsoft OneNote (TUI, CLI & MCP) or shows a Microsoft OneNote (TUI, CLI & MCP) tool in the answer, you are connected
1 optional setting(s) (works without them)
The command above works without these. Add them only if you want to change something, following the maker’s description.
TEAMS_TOKEN_FILEOptional shared Microsoft Graph token file path.
Descriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add --scope user onenote --env ONENOTE_ACCESS_TOKEN=your-value -- docker run -i --rm -e ONENOTE_ACCESS_TOKEN ghcr.io/bitefoundry/onenote:0.4.2Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"onenote": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ONENOTE_ACCESS_TOKEN",
"ghcr.io/bitefoundry/onenote:0.4.2"
],
"env": {
"ONENOTE_ACCESS_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"onenote": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ONENOTE_ACCESS_TOKEN",
"ghcr.io/bitefoundry/onenote:0.4.2"
],
"env": {
"ONENOTE_ACCESS_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"onenote": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"ONENOTE_ACCESS_TOKEN",
"ghcr.io/bitefoundry/onenote:0.4.2"
],
"env": {
"ONENOTE_ACCESS_TOKEN": "your-value"
}
}
}
}Values you fill in
ONENOTE_ACCESS_TOKENsecret required envMicrosoft Graph delegated bearer token for Microsoft OneNote.TEAMS_TOKEN_FILEenvOptional shared Microsoft Graph token file path.
Descriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
- Registry name
io.github.BiteFoundry/onenote- Downloads per weeki
- Not on npm/PyPI
- Connection
- Runs on your computer
- Latest versioni
- 0.4.2
- Categoryi
- Developer tools
- Published to registryi
- Nov 24, 2026
- Code last changedi
- Nov 25, 2026
- Maker
- BiteFoundry
- Packages
oci: ghcr.io/bitefoundry/onenote:0.4.2- Website
- bitefoundry.dev
- Registry status
- Active
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account BiteFoundry, which owns the repo
- ✓ Pass
Still maintained
Code last changed yesterday
- ✓ Pass
Has a licence
Uses MIT
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Published vulnerabilities (OSV.dev)
Not checked: only npm and PyPI packages with a version can be checked
Makers: ask for a re-check or report wrong info
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/bitefoundry-onenote)Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Developer toolsi
- More stars than 0% of the other 7984 servers in this category
- Published to the registry more recently than 94% of the other 7984 servers in this category
- Basic checks equal to or better than 99% of the other 7984 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is Microsoft OneNote (TUI, CLI & MCP) safe?
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: ONENOTE_ACCESS_TOKEN
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed yesterday, and the latest version (0.4.2) reached the registry 2 days ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Docker on your computer.
What can I use instead?
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Similar alternatives
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one Microsoft OneNote (TUI, CLI & MCP) | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
@bitefoundry/onenote
Read and edit OneNote pages, search cached notebooks, and update checklists from the terminal.
BiteFoundry · Latest release notes
Highlights
| Capability | Details |
|---|---|
| Minimal-Chrome 3-Pane TUI | Personal and Teams/Group notebooks, colored section ribbon, nested subpages (level 0/1/2), bidirectional XHTML ↔ Markdown canvas, surgical data-id PATCH edits, optimistic to-do toggles, Link Extractor (u), File Picker with zoxide (Ctrl+F), and 6 themes. |
| High-Res Terminal Images | Inline thumbnails & fullscreen HD previews (v / Alt+v) with 80ms protocol probing for Kitty, iTerm2, Sixel (Floyd-Steinberg dithering), and 24-bit Unicode Half-Blocks + Ctrl+V clipboard PNG upload. |
| Local SQLite FTS5 + IPC Daemon | WAL-mode SQLite cache with 4-reader pool, trigram full-text search (/), persistent DraftStore, and a shared background sync daemon (onenote daemon start). |
| 4-in-1 Agent Interface | Interactive TUI (onenote), scriptable --json CLI, local HTTP JSON API (onenote serve, port 8793), and stdio MCP Server (onenote mcp). |
Quick Start
# 1. Install globally via npm (precompiled native binary for win32 / darwin / linux)
npm i -g @bitefoundry/onenote
2. Authenticate with Microsoft 365 (PKCE loopback, --device-code, or --token-file)
onenote login
3. Launch the interactive TUI
onenote
onenote read "Meeting notes" --json
Read a page with its key and notebook scope. Local search uses the identified account’s cache. If you use an opaque access token, run onenote whoami once online first. For full detail, add --full in the CLI or pass compact: false to get_page in MCP.
Build from source with cargo build --release. See installation and migration for updating scripts, MCP configurations, and local HTTP clients.
Company-managed Microsoft Entra sign-in
onenote login uses the public Microsoft Graph Command Line Tools client by default. To use a company-owned app, register it as a public client and configure the http://localhost redirect URI. Enable public client flows for headless --device-code sign-in. Company app registration guide
Add the Microsoft Graph delegated permissions your users need and have your Entra administrator grant consent where required.
| Feature | Delegated scopes |
|---|---|
| Profile and session refresh | User.Read, offline_access |
| Read, create, and edit the user's OneNote content | Notes.Read, Notes.Create, Notes.ReadWrite |
| Discover joined Teams and read or edit organizational notebooks the user can access | Team.ReadBasic.All, Notes.Read.All, Notes.ReadWrite.All |
The default sign-in adds the organizational scopes when you specify your company's tenant ID. Set scopes in config.toml to request a narrower set that matches your workflow.
onenote login --client-id YOUR_APP_ID --tenant-id YOUR_TENANT_ID
onenote whoami --json
For persistent environment configuration, set ONENOTE_CLIENT_ID and ONENOTE_TENANT_ID.
When supplying a token without an embedded user ID (for example an opaque ONENOTE_ACCESS_TOKEN or ONENOTE_TOKEN_FILE), run onenote whoami once while online to record only the token fingerprint and user ID under identity-map/. Running local search (without --refresh) or --offline with an unrecorded token returns an Unknown identity error instead of falling back to an empty default cache. Running onenote search --refresh also records the identity binding. Whenever the token rotates or changes, run onenote whoami once again for the new token.
Enterprise networks / custom CA
HTTPS connections trust the bundled Mozilla roots and the operating system's trust store. If your network inspects HTTPS with a private root CA that is not in either, export that root as PEM and point the CLI at it:
| Variable | Behaviour |
|---|---|
ONENOTE_EXTRA_CA_PEM | PEM file (one certificate or a bundle) added to the trusted roots. If it cannot be read or parsed, the command fails with an error naming the file. |
SSL_CERT_FILE | Also loaded as extra roots. An unusable file is reported on stderr and skipped. When set, it replaces the OS trust store for the native-roots lookup; the bundled roots still apply. |
NODE_EXTRA_CA_CERTS | Also loaded as extra roots, so an existing Node.js setup works unchanged. An unusable file is reported on stderr and skipped. |
export ONENOTE_EXTRA_CA_PEM=/path/to/corporate-root.pem
onenote doctor --online
A certificate from an unknown issuer produces a TLS certificate was not trusted (unknown issuer) hint naming these variables. Certificate verification cannot be turned off. Warnings go to stderr only, so onenote mcp stdio output is unaffected.
Keybindings Cheat Sheet
| Key | Action |
|---|---|
Tab / Shift+Tab | Cycle focus (Notebooks → Pages → Note Canvas) |
j / k · ↑ / ↓ | Navigate notebooks, pages, subpages, or blocks |
[ / ] | Switch to previous / next section tab |
n | Create a page (Markdown + Ctrl+V PNG) |
a / e | Append Markdown block / surgically edit selected block |
Space / x | Toggle selected To-Do checkbox (data-tag="to-do:completed") |
B / S / D | Create notebook / create section / delete page |
u / h | Open Link Extractor modal / toggle inline href URLs |
v / o / y | HD image preview / open in browser / copy page Markdown |
Ctrl+F | Interactive File Picker (z for zoxide directory jump) |
/ | Instant full-text search across cached pages (SQLite FTS5) |
Ctrl+P / Ctrl+K | Unified Command Palette & Omni-Switcher |
. / Right-click | Context Menu |
Ctrl+, / Ctrl+B / ? | Settings / Toggle sidebar / Keyboard shortcuts help |
CLI, HTTP API & MCP
CLI
onenote notebooks --json
onenote pages "Acme Engineering/Architecture" --json onenote rename-section 'me|SECTION_ID' --name 'Architecture Notes' --json onenote rename-notebook --drive-id DRIVE_ID --item-id ITEM_ID --name 'Engineering Notes' --json onenote read "Q4 Architecture RFC" --json onenote read "Q4 Architecture RFC" --json --full onenote copy-page 'me|PAGE_ID' --section 'me|SECTION_ID' --json onenote create "Architecture" --title "Release Notes" '## Shipped
- WAL pool' --json
onenote check "Migration Cutover" --block-id 'p:m3' --done --json onenote search "canary" --json
onenote read PAGE --json returns compact Markdown and identifiers by default; pass --full for parsed blocks, raw XHTML, and resources. Passing an explicit --format --json returns the full JSON page, and adding --compact selects the compact shape. Write commands (append, update, check) with --json return a compact summary (ok, page_key, title, last_modified_at, plus block_id / completed where applicable) by default; pass --full to include the full page object.
Page commands (read, append, update, check, delete) accept an optional --section (name, Notebook/Section, ID, or scoped key) to narrow title lookup to one section.
When a --json command fails at runtime, it exits 1 and writes a single JSON object ({"ok":false,"error":{"code","message"}}, plus top-level operation fields for non-completed copy-page) to stdout alongside the stderr error line. Successful read/list --json responses omit ok and signal success with exit 0; CLI argument/usage errors exit 2 on stderr without JSON.
onenote notebooks --json and onenote sections --json return 50 items by default (text output stays unbounded unless --limit is passed); pages defaults to 50 and search defaults to 30. All four JSON list responses include returned, has_more, and next_cursor, which can be passed back with --limit and --cursor to page through results. Full-text body search in onenote search covers pages that have been read or synced (cache.pages_with_body).
Use onenote read PAGE --format blocks to find a checkbox or text block's current element ID. Use --done or --undone to set a checkbox state. Omit both flags to toggle it.
onenote notebooks lists your personal notebooks, plus the notebooks of your joined Teams/Groups with --include-teams. SharePoint site notebooks are not auto-discovered; you can create one with onenote create-notebook NAME --site SITE_ID.
copy-page uses Microsoft Graph to create a new page in the destination section and preserves the original page and its links. If the copy is still pending, pass its operation_url with --operation to check the same copy. Copy a page
On Windows, desktop-set-page-level and desktop-rename-section work on existing objects in an open notebook. Use the OneNote app's Move command to move a page between sections. Hierarchy operations and permissions
Local HTTP API (onenote serve)
# Start local Axum JSON server (default 127.0.0.1:8793) with your own API key
onenote serve --token dev-secret
Query pages & FTS5 search from scripts or agents
curl -H "Authorization: Bearer dev-secret" \ "http://127.0.0.1:8793/v1/onenote/search?q=canary&limit=10"
The API key is required on every route except /health. Without --token (alias of --api-key) or ONENOTE_API_KEY, a loopback server generates a random key and prints it once on stderr; pass --allow-keyless to run a loopback server without one. A non-loopback --bind always needs a key. Browser pages cannot call the API unless their exact origin is listed with --cors-origin, and requests whose Host is not a loopback name, the bind address or an --allowed-host are refused. Authentication and access control
Full route reference & OpenAPI 3.1 spec: docs/API.md · docs/openapi.yaml.
Model Context Protocol (onenote mcp)
Add to Claude Desktop, Claude Code, Cursor, or Codex over stdio JSON-RPC 2.0.
{
"mcpServers": { "onenote": { "command": "onenote", "args": ["mcp"] } } }
Full tool catalog & schemas: docs/MCP.md.
@bitefoundry Enterprise Terminal Suite
| Package | Commands | Workspace Coverage |
|---|---|---|
@bitefoundry/teams | teams | Microsoft Teams chats, channels, threads & meetings |
@bitefoundry/outlook | outlook | Microsoft Outlook mail, calendar & contacts |
| `@bitefoundry/onenote` *(this repo)* | onenote | Microsoft OneNote notebooks, sections, pages & XHTML/Markdown |
| @bitefoundry/sharepoint | sharepoint, bitefoundry-onedrive | Microsoft SharePoint sites, document libraries & OneDrive