SharePoint
SharePoint MCP (Model Context Protocol) - A SharePoint connector for LLM applications. Access SharePoint documents and lists through Microsoft Graph API.
What is SharePoint?
SharePoint is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to sharepoint mcp (model context protocol) - a sharepoint connector for llm applications. access sharepoint documents and lists through microsoft graph api.
SharePoint MCP (Model Context Protocol) - A SharePoint connector for LLM applications. Access SharePoint documents and lists through Microsoft Graph API.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- SharePoint MCP (Model Context Protocol) - A SharePoint conne
Use Cases
Maintainer
Works with
Installation
NPM
npx -y sharepointManual Installation
npx -y sharepointConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use SharePoint
SharePoint MCP Server is a Python-based Model Context Protocol server that connects LLM applications such as Claude to a SharePoint site via the Microsoft Graph API. It supports browsing document libraries, reading DOCX, PDF, XLSX, CSV, and TXT files, performing full-text search across site content, managing lists, creating pages and news posts, uploading files, and even provisioning new SharePoint sites — all through natural-language queries from your AI assistant. It runs locally over stdio or as an HTTP service, making it suitable for both personal use and enterprise deployments.
Prerequisites
- Python 3.10 or higher
- A Microsoft 365 account with access to a SharePoint site
- An Azure AD application registration with Microsoft Graph API permissions (Sites.ReadWrite.All, Files.ReadWrite.All, Lists.ReadWrite.All — see docs/auth_guide.md in the repo)
- Azure AD Tenant ID, Client ID, and Client Secret from your app registration
- An MCP-compatible client such as Claude Desktop
Clone the repository and create a virtual environment
Clone the project and set up an isolated Python environment to avoid dependency conflicts.
git clone https://github.com/DEmodoriGatsuO/sharepoint-mcp.git
cd sharepoint-mcp
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtRegister an Azure AD application
In the Azure portal, register a new application, add the required Microsoft Graph API permissions, and create a client secret. Note your Tenant ID, Client ID, Client Secret, and your SharePoint site URL.
Configure environment variables
Copy the example environment file and fill in your Azure AD credentials and SharePoint site URL.
cp .env.example .env
# Edit .env:
# TENANT_ID=your-azure-tenant-id
# CLIENT_ID=your-azure-client-id
# CLIENT_SECRET=your-azure-client-secret
# SITE_URL=https://yourtenant.sharepoint.com/sites/yoursiteValidate your configuration (optional)
Run the included diagnostic scripts to verify that authentication and site connectivity work before wiring up the MCP client.
python config_checker.py
python auth-diagnostic.pyAdd the server to Claude Desktop
Add an entry to claude_desktop_config.json referencing the server.py file and passing your credentials as environment variables. Replace the path and credential values with your own.
{
"mcpServers": {
"sharepoint": {
"command": "python",
"args": ["/absolute/path/to/sharepoint-mcp/server.py"],
"env": {
"TENANT_ID": "your-tenant-id",
"CLIENT_ID": "your-client-id",
"CLIENT_SECRET": "your-client-secret",
"SITE_URL": "https://yourtenant.sharepoint.com/sites/yoursite"
}
}
}
}Restart Claude Desktop and test
Restart Claude Desktop. Ask it to list document libraries or search for a document to confirm the connection is working.
SharePoint Examples
Client configuration
claude_desktop_config.json entry for the SharePoint MCP server using Python stdio transport. All credentials are passed as environment variables.
{
"mcpServers": {
"sharepoint": {
"command": "python",
"args": ["/Users/yourname/sharepoint-mcp/server.py"],
"env": {
"TENANT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"CLIENT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"CLIENT_SECRET": "your-client-secret",
"SITE_URL": "https://contoso.sharepoint.com/sites/TeamSite"
}
}
}
}Prompts to try
Example natural-language queries you can send to Claude once the SharePoint server is connected.
- "List all document libraries in my SharePoint site."
- "Search for documents about Q3 budget in SharePoint."
- "Read the contents of the file 'ProjectPlan.docx' from the Documents library."
- "Create a new list called 'Action Items' with columns for Title, Owner, and Due Date."
- "Upload the file report.pdf to the Documents/Reports folder."Troubleshooting SharePoint
Authentication fails with 'AADSTS700016: Application not found in the directory'
Verify that CLIENT_ID matches the Application (client) ID in your Azure AD app registration and that the app is registered in the same tenant as TENANT_ID.
Graph API returns 403 Forbidden when accessing SharePoint content
Ensure your Azure AD app has the correct Microsoft Graph API permissions (Sites.ReadWrite.All, Files.ReadWrite.All) and that an admin has granted consent to those permissions in the Azure portal.
PDF or DOCX files cannot be read — content comes back empty
Confirm that the required Python packages (pdfplumber, python-docx, openpyxl) installed correctly by running 'pip install -r requirements.txt' inside the activated virtual environment.
Frequently Asked Questions about SharePoint
What is SharePoint?
SharePoint is a Model Context Protocol (MCP) server that sharepoint mcp (model context protocol) - a sharepoint connector for llm applications. access sharepoint documents and lists through microsoft graph api. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install SharePoint?
Install via npm with the command: npx -y sharepoint. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with SharePoint?
SharePoint works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is SharePoint free to use?
Yes, SharePoint is open source and available under the NOASSERTION license. You can use it freely in both personal and commercial projects.
SharePoint Alternatives — Similar Business Applications Servers
Looking for alternatives to SharePoint? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up SharePoint in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use SharePoint?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.