S

Sharepoint连接器

@BrianCusack/mcpsharepoint
0 Stars 376 次浏览 BrianCusack 更新于 2026-08-23

通过 Microsoft Graph API 提供对组织 Sharepoint 文档的访问,使 AI 助手能够搜索和检索 Sharepoint 内容。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "sharepoint": {
      "args": [
        "run",
        "-i",
        "--rm",
        "--init",
        "-e",
        "DOCKER_CONTAINER=true",
        "-e",
        "TENANT_ID=your-tenant-id",
        "-e",
        "CLIENT_ID=your-client-id",
        "-e",
        "CLIENT_SECRET=your-client-secret",
        "-e",
        "SITE_ID=your-site-id",
        "-e",
        "DRIVE_ID=your-drive-id",
        "mcp/sharepoint"
      ],
      "command": "docker"
    }
  }
}

该服务需要配置环境变量:CLIENT_ID、CLIENT_SECRET、DOCKER_CONTAINER、SITE_ID、TENANT_ID

可用工具 (1 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

search-documents 2 个参数 需填 1 项

必填参数:query

服务介绍

Sharepoint - WIP, just for R&D ATM

一个提供组织Sharepoint访问的模型上下文协议服务器。

组件

工具

  • 使用Microsoft Graph API连接到Sharepoint
  • 将Sharepoint文档和文件系统作为资源公开
  • 提供搜索文档和读取文档的工具
  • 包含用于常见Sharepoint任务的提示

环境变量

  • 将.env.example复制为.env
  • 填写所需的字段

与Claude Desktop一起使用

要将此服务器与Claude Desktop应用程序一起使用,请在您的claude_desktop_config.json的"mcpServers"部分添加以下配置:

Docker

  • 构建并标记Docker docker build -t mcp/sharepoint .
{
  "mcpServers": {
    "sharepoint": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "--init", 
        "-e", "DOCKER_CONTAINER=true",
        "-e", "TENANT_ID=your-tenant-id",
        "-e", "CLIENT_ID=your-client-id",
        "-e", "CLIENT_SECRET=your-client-secret",
        "-e", "SITE_ID=your-site-id",
        "-e", "DRIVE_ID=your-drive-id",
        "mcp/sharepoint"
      ]
    }
  }
}

Bun MCP配置文件

{
  "mcpServers": {
    "sharepoint": {
      "command": "bun",
      "args": ["run", "start"],
      "env": {
        "TENANT_ID": "your-tenant-id",
        "CLIENT_ID": "your-client-id",
        "CLIENT_SECRET": "your-client-secret",
        "SITE_ID": "your-site-id",
        "DRIVE_ID": "your-drive-id",
      }
    }
  }
}

许可证

该MCP服务器根据MIT许可证授权。这意味着您可以自由地使用、修改和分发软件,但需遵守MIT许可证的条款和条件。有关更多详细信息,请参见项目仓库中的LICENSE文件。

相关 MCP 服务