OneNote MCP Server

by hwillGIT

OneNote MCP 服务器

一个 MCP(模型上下文协议)服务器,用于使用浏览器自动化功能浏览 OneNote Web 应用并与之交互。该服务器支持 AI 助手和其他兼容 MCP 的客户端以编程方式浏览并通过 Web 链接共享的 OneNote 笔记本并与之交互。

特征

  • 浏览 OneNote 的层次结构(笔记本、部分、页面)
  • 从 OneNote 读取页面内容
  • 向现有页面添加新内容
  • 创建新页面
  • 在 OneNote 中搜索
  • 截取当前视图的屏幕截图
  • 在整个会话中保持状态

要求

  • Python 3.10 或更高版本
  • browser-use 0.1.40 或更高版本
  • MCP SDK 1.2.0 或更高版本
  • 剧作家
  • 互联网连接
  • 共享的 OneNote 笔记本 URL(必须无需身份验证即可访问)

安装

# Clone the repository or create the project structure # Then navigate to the project directory cd onenote-mcp # Install the package and dependencies pip install -e . # Install Playwright browsers playwright install

用法

独立模式

您可以使用以下方式直接运行服务器:

python -m onenote_mcp

与 Claude Desktop 或其他 MCP 主机集成

  1. 通过编辑配置文件配置您的 Claude Desktop 以使用 OneNote MCP 服务器:
{ "mcpServers": { "onenote": { "command": "python", "args": ["-m", "onenote_mcp"] } } }
  1. 启动 Claude Desktop,它将自动启动 OneNote MCP 服务器
  2. 使用与 Claude 聊天时可用的工具:
Can you help me navigate my OneNote notebook at https://example.com/my-shared-notebook? First, please launch OneNote with this URL and tell me what notebooks are available.

可用工具

  • launch_onenote(shared_url) :使用共享笔记本 URL 启动 OneNote Web 应用程序
  • get_all_notebooks() :列出所有可用的笔记本
  • get_all_sections() :列出当前笔记本中的所有部分
  • get_all_pages() :列出当前部分的所有页面
  • navigate_to_notebook_by_name(notebook_name) :转到特定笔记本
  • navigate_to_section_by_name(section_name) :转到特定部分
  • navigate_to_page_by_name(page_name) :转到特定页面
  • get_current_page_content() :获取当前页面的内容
  • add_content_to_page(content) :将内容添加到当前页面
  • create_new_page_with_name(page_name) :创建新页面
  • search_in_onenote(search_term) :在 OneNote 中搜索特定术语
  • take_screenshot() :截取当前视图的屏幕截图
  • get_onenote_state() :获取当前状态信息
  • close_onenote() :关闭 OneNote 会话并清理资源

工作原理

该 MCP 服务器使用浏览器自动化框架 browser-use 与 OneNote Web 界面进行交互。它在兼容 MCP 的 AI 助手和 OneNote Web 应用程序之间架起了一座桥梁,从而实现了对 OneNote 功能的编程控制。

限制

  • 仅适用于通过公共链接共享的 OneNote 笔记本(无需身份验证)
  • 如果 OneNote Web 界面发生变化,服务器可能需要调整
  • 浏览器自动化可能有些脆弱,并且依赖于 UI 结构
  • 性能可能因网络条件和 OneNote 的响应能力而异

故障排除

  • 如果服务器无法连接到 OneNote,请确保无需登录即可访问共享链接
  • 如果选择器失败,OneNote UI 可能已更改 - 检查服务器代码
  • 对于其他问题,请检查服务器日志以获取错误详细信息

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器使 AI 助手能够通过浏览器自动化以编程方式浏览并通过网络链接共享的 OneNote 笔记本并进行交互。

  1. 特征
    1. 要求
      1. 安装
        1. 用法
          1. 独立模式
          2. 与 Claude Desktop 或其他 MCP 主机集成
        2. 可用工具
          1. 工作原理
            1. 限制
              1. 故障排除
                1. 执照

                  Related MCP Servers

                  • -
                    security
                    F
                    license
                    -
                    quality
                    Enables AI language models to interact with Microsoft OneNote via a standardized interface, supporting notebook and page management through natural language.
                    Last updated -
                    107
                    6
                    TypeScript
                  • -
                    security
                    A
                    license
                    -
                    quality
                    An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
                    Last updated -
                    387
                    Python
                    MIT License
                    • Apple
                  • A
                    security
                    A
                    license
                    A
                    quality
                    An MCP server implementation that integrates with SiYuan Note system, enabling AI models to access and manipulate note data through comprehensive commands for notebook management, document operations, and content manipulation.
                    Last updated -
                    3
                    104
                    1
                    TypeScript
                    ISC License
                    • Linux
                    • Apple
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
                    Last updated -
                    5
                    TypeScript

                  View all related MCP servers

                  ID: n65frsyu80