
SharePoint MCP Server
io.github.ravikant1918由 GitHub 账号 ravikant1918 发布v1.1.1更新于 Oct 27, 2026
MCP server for Microsoft SharePoint — manage folders, documents, and metadata.
概览
本地运行的 MCP 服务器,将 AI 助手连接到单个 Microsoft SharePoint 站点,用于浏览文件夹、读写文档和编辑元数据。
- 可以做什么
- 列出文件夹与文件、获取完整递归目录树、创建文件夹并删除空文件夹
- 使用 KQL 搜索文档,并读取 PDF、Word、Excel、文本等文件的解析内容
- 以字符串、Base64 或本地路径上传文件,覆盖已有内容、下载文件并删除文档
- 读取和更新 SharePoint 列表项元数据字段
- 适用场景
- 当助手需要直接处理公司 SharePoint 站点中已有的文档时适用,例如总结报告、翻译后回存文件,或按文件夹和搜索查找文档,而不必手动粘贴内容。
- 运行要求
- 以本地 Python 包(pip 或 uvx)或 Docker 运行;默认 stdio,可选 HTTP 传输。需要注册 Azure AD 应用并授予 SharePoint API 权限(必要时需管理员同意),并设置环境变量 SHP_ID_APP、SHP_ID_APP_SECRET、SHP_TENANT_ID 和 SHP_SITE_URL。每个实例只连接一个站点;可用 SHP_DOC_LIBRARY 限定到子文件夹。
安装
在 SourceWeft 中
- 打开 控制台中的 SharePoint MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🗂️ sharepoint-mcp
The MCP Server that gives your AI agent a brain for Microsoft SharePoint
[CI] [PyPI version] [Python] [License: MIT] [Docker] [MCP]
A production-grade Model Context Protocol (MCP) server for Microsoft SharePoint.
Connect Claude Desktop, VS Code Copilot, Cursor, Continue, or any MCP-compatible AI agent
to your SharePoint — read files, manage folders, and reason over your organisation's knowledge.
📚 Docs · 🗺️ Roadmap · 🐛 Bugs · 💡 Features
📑 Table of Contents
- Why sharepoint-mcp?
- What Your Agent Can Do
- Features
- Quickstart
- Docker
- Transport Modes
- Integrations — Claude Desktop · VS Code Copilot · Cursor
- All 14 Tools
- Configuration Reference
- Limitations
- Troubleshooting
- Development
- Documentation
- Contributing
- Security
🧠 Why sharepoint-mcp?
Most AI agents only know what's in their training data.
sharepoint-mcp gives your agent live access to your organisation's real knowledge.
🚀 What Your Agent Can Do
📖 Understand Any Document
✏️ Read → Reason → Write
🗂️ Navigate Your Library
📊 Supported File Formats
✨ Features
⚡ Quickstart
1️⃣ Install
Or from source:
2️⃣ Configure
🔑 New to Azure AD? Follow the step-by-step guide →
🔀 Choose Your API: SharePoint MCP supports both Office365 REST API (default) and Microsoft Graph API. See API Configuration Guide →
Optional: Scope to a subfolder
By default, the server accesses your entire document library root. To restrict operations to a specific subfolder:
3️⃣ Run
🐳 Docker
The fastest way to deploy for remote or cloud use.
📋 Usage Scenarios
Scenario A: Pull Latest Version from DockerHub (Recommended)
Use this for production deployments with the latest stable release:
What happens: Pulls ravikant1918/sharepoint-mcp:latest from DockerHub with automatic architecture detection (Intel/ARM).
Scenario B: Use Specific Version
Lock to a specific version for stability or testing:
What happens: Pulls ravikant1918/sharepoint-mcp:v1.0.1 instead of latest.
Scenario C: Build Locally from Source
Use this for development or when you've made local code changes:
What happens: Builds image from local Dockerfile, tags as ravikant1918/sharepoint-mcp:latest, and starts container.
Scenario D: Use Custom Image/Fork
If you've forked the repo and published to your own DockerHub:
What happens: Pulls from your custom registry/repository.
🔧 Common Commands
Using Podman? Just replace
dockerwithpodman— fully compatible.
Docker Environment Variables
🔌 Transport Modes
🔗 Integrations
🤖 Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
💡 Omit
SHP_DOC_LIBRARYto access the full library root. If your org uses Office365 REST API and renamed the default library, also setSHP_LIBRARY_NAME.
💻 VS Code Copilot (Agent Mode)
- Start the server via Docker or
TRANSPORT=http sharepoint-mcp - Create
.vscode/mcp.jsonin your workspace:
- Open Copilot Chat → switch to Agent mode → your 14 SharePoint tools are available.
⚠️ Trailing slash matters — the URL must end with
/mcp/(not/mcp).
⌨️ Cursor / Continue
Add to your MCP config (uses stdio transport):
🛠️ All 14 Tools
📁 Folder Management
📄 Document Management
🏷️ Metadata Management
⚙️ Full Configuration Reference
⚠️ Limitations
🔧 Troubleshooting
Authentication Errors
Problem: Missing or invalid SharePoint credentials
Solution: Verify all 4 required environment variables are set:
Connection Issues (HTTP Transport)
Problem: Agent can't connect to the MCP server
Solution:
- Ensure the server is running:
curl http://localhost:8000/mcp/ - Check the URL ends with
/mcp/(trailing slash required) - Verify the port is not blocked by a firewall
Docker Container Unhealthy
Problem: podman ps / docker ps shows (unhealthy)
Solution: Check container logs for errors:
Debug Logging
Enable verbose output by setting LOG_LEVEL=DEBUG:
For Docker, add to your .env file or docker-compose.yml:
Permission Errors
Problem: Access denied from SharePoint
Solution:
- Verify the Azure AD app has the required API permissions
- Ensure admin consent has been granted (if required by your org)
- Confirm
SHP_SITE_URLpoints to a site your app has access to
🧪 Development
📚 Documentation
🤝 Contributing
Contributions are welcome! Please read docs/contributing.md and our Code of Conduct.
- 🍴 Fork the repo
- 🌿 Create a branch:
git checkout -b feat/my-tool - ✅ Add tests:
make test - 📬 Open a Pull Request
🔒 Security
Found a vulnerability? Please do not open a public issue.
Report privately via GitHub Security Advisories or see SECURITY.md.
MIT License © 2026 Ravi Kant
⭐ If this project helps you, please star it on GitHub!
来源:README.md,提交 986fcfa
工具
0版本历史
1- v1.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分