OneNote MCP Server

by ZubeidHendricks
Verified

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.

OneNote MCP 服务器

Microsoft OneNote 的模型上下文协议 (MCP) 服务器实现,使 AI 语言模型能够通过标准化接口与 OneNote 交互。

特征

笔记本管理

  • 列出所有笔记本
  • 创建新笔记本
  • 获取笔记本详细信息
  • 删除笔记本

部门管理

  • 列出笔记本中的部分
  • 创建新部分
  • 获取部分详细信息
  • 删除部分

页面管理

  • 列出部分中的页面
  • 使用 HTML 内容创建新页面
  • 阅读页面内容
  • 更新页面内容
  • 删除页面
  • 跨笔记本搜索页面

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 OneNote Server:

npx -y @smithery/cli install @modelcontextprotocol/server-onenote --client claude

手动安装

npm install -g mcp-server-onenote

配置

设置以下环境变量:

  • AZURE_TENANT_ID :您的 Azure 租户 ID
  • AZURE_CLIENT_ID :您的 Azure 应用程序(客户端)ID
  • AZURE_CLIENT_SECRET :您的 Azure 客户端机密

与 MCP 客户端一起使用

将其添加到您的 MCP 客户端配置(例如 Claude Desktop):

{ "mcpServers": { "onenote": { "command": "npx", "args": ["-y", "mcp-server-onenote"], "env": { "AZURE_TENANT_ID": "<YOUR_TENANT_ID>", "AZURE_CLIENT_ID": "<YOUR_CLIENT_ID>", "AZURE_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>" } } } }

Azure 应用注册

  1. 转到 Azure 门户并导航至应用程序注册
  2. 创建新注册
  3. 添加 Microsoft Graph API 权限:
    • Notes.ReadWrite.All
    • 注释.已读.全部
  4. 创建客户端机密
  5. 复制租户 ID、客户端 ID 和客户端密钥以进行配置

发展

# Install dependencies npm install # Run tests npm test # Build npm run build # Lint npm run lint

贡献

有关对此存储库做出贡献的信息,请参阅CONTRIBUTING.md

执照

该项目采用 MIT 许可证 - 有关详细信息,请参阅LICENSE文件

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

使AI语言模型能够通过标准化接口与Microsoft OneNote进行交互,支持通过自然语言进行笔记本和页面管理。

  1. Features
    1. Notebook Management
    2. Section Management
    3. Page Management
  2. Installation
    1. Installing via Smithery
    2. Manual Installation
  3. Configuration
    1. Using with MCP Client
      1. Azure App Registration
        1. Development
          1. Contributing
            1. License
              ID: uggdlbejx0