danosb/onenote-mcp 是从 https://github.com/danosb/onenote-mcp. 导入的 MCP 服务器候选服务器。
概览
danosb/onenote-mcp 是从 https://github.com/danosb/onenote-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一个模型上下文协议(MCP)服务器实现,使 Claude 及其他大型语言模型等 AI 语言模型能够与 Microsoft OneNote 交互。
该项目基于 Zubeid Hendricks 的 azure-onenote-mcp-server,并对认证流程进行了简化和提升可用性的修改。
这有什么用?
该服务器允许AI助手:
- 访问您的 OneNote 笔记本、部分和页面
- 在笔记本中创建新页面
- 搜索你的笔记
- 阅读完整的笔记内容,包括HTML格式和文本
- 直接分析和总结你的笔记
所有这些都直接通过AI界面完成,无需切换上下文。
使用 AI 助手
光标设置
- 克隆该仓库,并按照以下安装步骤操作
- 启动MCP服务器:
npm start - 在光标中注册服务器:
- 打开光标偏好设置(Mac 上的 Cmd+ 或 Windows 上的 Ctrl+)
- 进入“MCP”标签页
- 添加一个新的MCP服务器,设置如下:
- 名称:
onenote - 指令:
node - Args:
["/path/to/your/onenote-mcp.mjs"](使用绝对路径)
以下是完整的JSON配置示例:
- 重启光标
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OneNote MCP Server
A Model Context Protocol (MCP) server implementation that enables AI language models like Claude and other LLMs to interact with Microsoft OneNote.
This project is based on azure-onenote-mcp-server by Zubeid Hendricks, with modifications to simplify authentication and improve usability.
What Does This Do?
This server allows AI assistants to:
- Access your OneNote notebooks, sections, and pages
- Create new pages in your notebooks
- Search through your notes
- Read complete note content, including HTML formatting and text
- Analyze and summarize your notes directly
All of this happens directly through the AI interface without you having to switch contexts.
Using with AI Assistants
Setup for Cursor
-
Clone this repository and follow the installation steps below
-
Start the MCP server:
npm start -
Register the server in Cursor:
- Open Cursor preferences (Cmd+, on Mac or Ctrl+, on Windows)
- Go to the “MCP” tab
- Add a new MCP server with these settings:
- Name:
onenote - Command:
node - Args:
["/path/to/your/onenote-mcp.mjs"](use absolute path)
- Name:
Here’s the complete JSON configuration example:
{ "mcpServers": { "onenote": { "command": "node", "args": ["/absolute/path/to/your/onenote-mcp.mjs"], "env": {} } } } -
Restart Cursor
-
In Cursor, you can now interact with your OneNote data using natural language:
Can you show me my OneNote notebooks?
Create a new page in my first notebook with a summary of this conversation
Find notes related to "project planning" in my OneNote
The first time you ask about OneNote, the AI will guide you through the authentication process.
Setup for Claude Desktop (or other MCP-compatible assistants)
-
Clone this repository and follow the installation steps below
-
Start the MCP server:
npm start -
In the Claude Desktop settings, add the OneNote MCP server:
- Name:
onenote - Command:
node - Args:
["/path/to/your/onenote-mcp.mjs"](use absolute path)
JSON configuration example:
{ "mcpServers": { "onenote": { "command": "node", "args": ["/absolute/path/to/your/onenote-mcp.mjs"], "env": {} } } } - Name:
-
You can now ask Claude to interact with your OneNote data
Features
- Authentication with Microsoft OneNote using device code flow (no Azure setup needed)
- List all notebooks, sections, and pages
- Create new pages with HTML content
- Read complete page content, including HTML formatting
- Extract text content for AI analysis and summaries
- Summarize content of all pages in a single operation
- Read full content of all pages in a readable format
- Search across your notes
Installation
Prerequisites
- Node.js 16 or higher (install from nodejs.org)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"onenote": {
"command": "node",
"args": ["/absolute/path/to/your/onenote-mcp.mjs"],
"env": {}
}
}
}