onenote-mcp
onenote-mcp
Claude が OneNote ノートブックを読めるようにするローカル MCP サーバーです。そこに貼り付けた画像も含みます。
OneNote デスクトップ アプリケーションには COM インターフェイスで接続します。Azure アプリの登録も、テナントの同意も不要です。何もマシンの外へ送信されません。
なぜ作ったのか
Microsoft 365 コネクタは OneNote をサポートしていません。mime type 'application/msonenote' is not allowed というエラーで拒否されます。Graph API のどのルートでも、Notes.ReadWrite.All を伴う Entra アプリの登録が必要になり、企業テナントの場合は IT 部門への依頼が必要です。デスクトップ COM API はそのどちらも必要としません。
Related MCP server: notebooklm-claude-integration
できること
開いているすべてのノートブックを検索できます。貼り付けたスクリーンショット内のテキストも対象です。OneNote 自身のインデックスが OCR をカバーしているためです。
ページをテキストとして読み取り、ページ上の画像の一覧を返します。
その画像を、会話の記録に収まるサイズに縮小したうえで、画像として返します。
これは読み取り専用です。変更、作成、削除は一切できません。
必要条件
OneNote デスクトップ アプリケーションがインストールされている Windows。Microsoft Store の OneNote アプリは別のプログラムであり、COM インターフェイスを持ちません。
Python 3.11 以降。ビット数は問いません。
インストール
python -m venv .venv
.venv\Scripts\python.exe -m pip install -e .登録
このフォルダの .mcp.json は、このプロジェクトでこのサーバーを登録します。どこでも使えるようにするには:
claude mcp add onenote -s user -- C:\path\to\onenote_COM_mcp\.venv\Scripts\python.exe -m onenote_mcp.server同じコマンドで、Claude Desktop と VS Code 拡張機能の両方で使用できます。
ツール
ツール | 内容 |
| 開いているノートブックとそのセクションを返し、それぞれのノートブックが個人用か共有チーム サイトにあるかも返します |
| ノートブック、セクション グループ、またはセクション配下のページを返します |
| 全範囲、または指定した範囲内でクエリに一致するページを返します |
| 1 つのページをテキストとして返し、画像のマニフェストも返します。画像ピクセルは含みません |
| インデックスで指定した画像を、 |
get_page と get_page_images は意図的に分離されています。1 ページにフルサイズのスクリーンショットが複数含まれることがあり、そのテキストを読むたびにすべての画像を会話に読み込むべきではないためです。
画像の中で OneNote が認識したテキストが必要なときは、get_page に include_ocr を指定してください。画像を一切取得せずに質問に答えるのに十分なこともよくあります。
最初の呼び出しは遅い
サーバーは最初のツール呼び出しまで OneNote にアクセスしません。その呼び出しは、OneNote が閉じていれば OneNote を起動するため、時間がかかることがあります。以降の呼び出しは高速で、10 ページのセクションなら約 2 秒で読み取れます。
開発
.venv\Scripts\python.exe -m pytest # no OneNote needed
.venv\Scripts\python.exe tools\smoke.py # live check, needs OneNotecom.py を変更する前に CLAUDE.md を読んでください。COM インターフェイスには、見つけるのに 1 日かかる罠が 2 つあり、そのうちの 1 つは OneNote プロセスを強制終了させます。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables Claude to read and write to local Microsoft OneNote notebooks by parsing backup files and utilizing the OneNote COM API. It allows for searching notes, creating pages, and appending content without requiring Azure registration or API keys.103
- AlicenseNot gradedqualityCmaintenanceEnables querying Google NotebookLM notebooks directly from Claude Desktop (MCP) and Claude Code (CLI), providing citation-backed answers from Gemini.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to read, search, write, and update Microsoft OneNote pages through the Model Context Protocol.25MIT
- FlicenseAqualityFmaintenanceEnables AI agents to read, create, and analyze Microsoft OneNote notebooks, sections, and pages, including automatic image text extraction via Claude Vision.71
Related MCP Connectors
Connect Claude to Fathom meeting recordings, transcripts, and summaries
Read and write your Fresh Jots notes from Claude, Cursor, and any MCP client.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ChristianCruger/onenote-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server