Back to MCP directory
publicPublicdnsLocal runtime

SharePoint

一个通过Microsoft Graph API连接SharePoint的MCP服务,提供文档搜索和读取功能,支持Docker和Bun部署。

article

README

🚀 SharePoint - WIP,仅供研发ATM使用

这是一个提供组织级SharePoint访问的模型上下文协议服务器,可助力用户高效访问和管理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 License授权。这意味着您可以自由使用、修改和分发该软件,但需遵守MIT License的条款和条件。更多详细信息,请参阅项目仓库中的LICENSE文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client