OneNote MCP 服务器
通过浏览器自动化实现与 OneNote Web 应用交互的 MCP 服务器。
快速入门
要求
- Python 3.10 或更高版本
- browser-use 0.1.40 或更高版本
- MCP SDK 1.2.0 或更高版本
- Playwright
安装
- 克隆仓库或创建项目结构。
- 导航到项目目录:
cd onenote-mcp
- 安装依赖:
pip install -e .
- 安装 Playwright 浏览器:
playwright install
使用
独立模式
运行以下命令启动服务器:
python -m onenote_mcp
集成其他工具
配置 Claude Desktop 或其他 MCP 主机以使用该服务器,例如:
{
"mcpServers": {
"onenote": {
"command": "python",
"args": ["-m", "onenote_mcp"]
}
}
}
常用功能
launch_onenote(shared_url)
:启动 OneNote 并加载共享笔记本get_all_notebooks()
:列出所有笔记本create_new_page_with_name(page_name)
:创建新页面search_in_onenote(search_term)
:搜索内容
详情请参考 README 文档。