
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 分