Skip to main content
Glama

SharePoint Online MCP Server

by Zerg00s

SharePoint Online MCP 服务器

这是 Claude Desktop 的 MCP 服务器,允许您使用 SharePoint REST API 与 SharePoint Online 进行交互。它旨在与Claude Desktop应用配合使用,但也可供其他 MCP 客户端使用。

执行

成分手术可用的
用户
获取用户
站点
列出站点
获取站点详细信息
创建子网站
删除站点
列表
获取所有列表
创建列表
阅读列表
添加至列表
更新列表
删除列表
列表项
获取所有列表项
添加模拟项目
添加列表项
更新列表项
删除列表项

配置步骤

⚠️ 您需要成为 SharePoint 租户管理员或全局管理员才能创建 SharePoint 应用程序。

允许仅限 SharePoint 的应用程序

  • 这里下载并安装 SharePoint Online 命令行管理程序。
  • 打开 PowerShell 并运行以下命令以确保仅 SharePoint 应用程序已启用:
Connect-SPOService -Url https://<your-tenant>-admin.sharepoint.com/ Set-SPOTenant -DisableCustomAppAuthentication $false

创建仅限 SharePoint 的应用程序

  • 打开 https://.sharepoint.com/_layouts/15/appregnew.aspx
  • 单击Generate以创建新的客户端 ID 和密钥。
  • 填写以下字段:
    • 应用程序域: www.example.com (或您拥有的任何域名)
    • 重定向 URL: http://example.com应用程序注册
  • 单击Create以创建应用程序。
  • Client IDClient Secret值复制到安全的地方。稍后您将需要它们。

授予应用程序权限

<AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" /> </AppPermissionRequests>
  • 单击Create ,然后Trust It以授予应用程序权限。

相信它

安装 Node.js

安装node.js版本: 22.14.0或更高版本

安装并配置 Claude Desktop

  • 下载Claude Desktop并安装它。
  • 在 Claude Desktop 中,转到File > Settings > Developer文件 > 设置
  • 单击编辑配置配置
  • 在编辑器中打开 claude_desktop_config.json 配置文件。
  • 将以下内容粘贴到配置中并使用您自己的值更新mcpServers部分:
{ "mcpServers": { "server-sharepoint": { "command": "npx", "args": [ "-y", "server-sharepoint" ], "env": { "SHAREPOINT_CLIENT_ID": "<your-client-id>", "SHAREPOINT_CLIENT_SECRET": "<your-client-secret>", "SHAREPOINT_TENANT_ID": "<your-tenant-id>" } } } }

💡了解如何从 Entra ID 获取租户 ID

  • 保存配置文件并重启 Claude Desktop。确保通过任务栏图标彻底关闭应用:快速克劳德应用程序

如何与 MCP 服务器“对话”

  • 打开 Claude Desktop 并提出类似以下问题Get me the list of lists from https://<your-tenant>.sharepoint.com/sites/Dashboard-Communication. Present the results in a table form. don't use code

示例结果

对于贡献者

  • 构建一个新的 npm 包
npm run build npm publish npx clear-npx-cache npm cache clean --force

在本地运行 MCP Inspector

npx @modelcontextprotocol/inspector 节点构建/index.js

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

允许 Claude 使用 REST API 与 SharePoint Online 交互,使用户能够通过自然语言命令查询站点信息、列表和列表项。

  1. 执行
    1. 配置步骤
      1. 允许仅限 SharePoint 的应用程序
      2. 创建仅限 SharePoint 的应用程序
      3. 授予应用程序权限
      4. 安装 Node.js
      5. 安装并配置 Claude Desktop
    2. 如何与 MCP 服务器“对话”
      1. 对于贡献者
        1. 在本地运行 MCP Inspector

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Enables Claude to interact with Ethereum nodes, allowing users to check ENS token balances, view smart contract code, and decode transactions through natural language.
            Last updated -
            5
            1
            JavaScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            Enables Claude to interact with Webflow's APIs for managing sites, retrieving information, and executing tasks using natural language.
            Last updated -
            2
            4
            TypeScript
            MIT License
            • Apple
            • Linux
          • A
            security
            F
            license
            A
            quality
            A server that enables Claude Desktop users to access the Claude API directly, allowing them to bypass Professional Plan limitations and use advanced features like custom system prompts and conversation management.
            Last updated -
            1
            5
            Python
            • Apple
          • -
            security
            A
            license
            -
            quality
            Enables Claude to interact with Webflow's APIs, allowing access to site information, collections, and other Webflow resources.
            Last updated -
            TypeScript
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zerg00s/server-sharepoint'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server