
purpleslurple/onenote-mcp-server 是从 https://github.com/purpleslurple/onenote-mcp-server. 导入的 MCP 服务器候选
概览
purpleslurple/onenote-mcp-server 是从 https://github.com/purpleslurple/onenote-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个完整、稳健的模型上下文协议(MCP)服务器,用于Microsoft OneNote与Claude Desktop集成。通过自然语言查询访问您的全部OneNote知识库。
🎯 这会带来什么
将你的 OneNote 笔记本转变为 AI 可访问的知识库:
- 列出你所有的笔记本、章节和页面
- 阅读页面内容以进行分析和检索
- 自然语言查询,如“展示我的DevOps笔记”或“查找关于项目规划的页面”
- **使用 Microsoft Graph API 实现 Secure OAuth 认证
- 防弹错误处理,附有详细调试
✨ 为什么要采用这种方式
与其他 OneNote MCP 服务器不同,这个服务器:
- ✅ 实际可行 - 广泛测试真实 OneNote 数据
- ✅ 完整功能 - 所有核心 OneNote 操作已实现
- ✅ 稳健认证 - 处理边缘情况的两步设备流程
- ✅ 生产准备 - 正确的错误处理和日志记录
- ✅ 简单设置 - 为非技术用户提供详细说明
🚀 快速启动
先决条件
- Python 3.10+
- UV包管理器(推荐)或PIP
- Claude桌面
- Microsoft Azure账户(免费)
1.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OneNote MCP Server
A complete, robust Model Context Protocol (MCP) server for Microsoft OneNote integration with Claude Desktop. Access your entire OneNote knowledge base through natural language queries.
🎯 What This Does
Transform your OneNote notebooks into an AI-accessible knowledge base:
- List all your notebooks, sections, and pages
- Read page content for analysis and search
- Natural language queries like “Show me my DevOps notes” or “Find pages about project planning”
- Secure OAuth authentication with Microsoft Graph API
- Bulletproof error handling with detailed debugging
✨ Why This Implementation
Unlike other OneNote MCP servers, this one:
- ✅ Actually works - tested extensively with real OneNote data
- ✅ Complete functionality - all core OneNote operations implemented
- ✅ Robust authentication - two-step device flow that handles edge cases
- ✅ Production ready - proper error handling and logging
- ✅ Easy setup - detailed instructions for non-technical users
🚀 Quick Start
Prerequisites
- Python 3.10+
- uv package manager (recommended) or pip
- Claude Desktop
- Microsoft Azure account (free)
1. Install uv (if you don’t have it)
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# or with Homebrew
brew install uv
2. Clone and Setup
git clone https://github.com/yourusername/onenote-mcp-server.git
cd onenote-mcp-server
# Create virtual environment and install dependencies
uv sync
3. Azure App Registration
You need to create an Azure app to access OneNote. Don’t worry, it’s free and takes 5 minutes:
- Go to Azure Portal (sign in with your Microsoft account)
- Navigate to Azure Active Directory → App registrations → New registration
- Fill out the form:
- Name: “OneNote MCP Server” (or whatever you like)
- Supported account types: “Accounts in any organizational directory and personal Microsoft accounts”
- Redirect URI: Select “Public client/native” and enter:
https://login.microsoftonline.com/common/oauth2/nativeclient
- Click Register
- Copy the Application (client) ID - you’ll need this!
4. Add Permissions
Still in your Azure app:
- Go to API permissions → Add a permission
- Select Microsoft Graph → Delegated permissions
- Add these permissions:
Notes.Read- Read OneNote notebooksNotes.ReadWrite- Create/modify OneNote content (optional but recommended)User.Read- Read user profile
- Click Grant admin consent (the button at the top)
5. Configure Claude Desktop
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"onenote": {
"command": "uv",
"args": [
"--directory", "/FULL/PATH/TO/onenote-mcp-server",
"run", "python", "onenote_mcp_server.py"
],
"env": {
"AZURE_CLIENT_ID": "your-azure-client-id-here"
}
}
}
}