sharepoint-online-mcp
SharePoint Online MCP Server
MCP server for SharePoint Online — zero-config, no Azure Portal, no env vars.
Quick Start
Install and run:
npx sharepoint-online-mcpAdd to Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"sharepoint": {
"command": "npx",
"args": ["-y", "sharepoint-online-mcp"]
}
}
}No environment variables needed. That's the entire setup.
Related MCP server: sharepoint-mcp
How It Works
Uses the Microsoft Office well-known client ID — no Azure app registration needed
On first use, prompts for device code authentication (open a URL, enter a code)
Auto-discovers your tenant ID from the SharePoint URL
Caches tokens in
~/.sharepoint-mcp-cache.json— persists across restarts
Usage
Start by asking Claude to connect to your SharePoint site:
"Connect to https://contoso.sharepoint.com/sites/marketing"
Claude will handle the authentication prompts. Once connected, use any tool — search sites, create pages, manage navigation, and more.
Tools
Category | Tool | Description |
Sites |
| Search for SharePoint sites by keyword |
| Get detailed information about a site | |
| Resolve a site from its SharePoint URL | |
| Connect to a site (auto tenant discovery + auth) | |
| List sites you follow | |
Pages |
| List pages in a site |
| Get page content and metadata | |
| Create a new modern page | |
| Update page title or description | |
| Publish a draft page | |
| Delete a page | |
Layout |
| Add a section with column layout |
| Get the layout structure of a page | |
Web Parts |
| Add a text/HTML web part |
| Add an image web part | |
| Add a spacer web part | |
| Add a divider web part | |
| Add any web part by type ID | |
Navigation |
| Get Quick Launch or Top Navigation |
| Add a navigation link | |
| Remove a navigation link | |
Branding |
| Set the site logo |
| Upload a file to Site Assets | |
Utility |
| List available site design templates |
| Clear auth tokens and disconnect |
Requirements
Node.js >= 18
A Microsoft 365 / SharePoint Online account
Known Limitations
Some organizations block device code authentication via Conditional Access policies. If you see error
AADSTS50076orAADSTS53003, contact your IT administrator.Only works with SharePoint Online (Microsoft 365), not on-premises SharePoint Server.
Permissions depend on your Microsoft 365 account — you can only access sites you have permission to.
Troubleshooting
Problem | Solution |
Authentication failed | Run the |
Tenant discovery failed | Check that the SharePoint URL is correct and accessible |
Access denied (403) | Your account may not have permission for this site or operation |
Resource not found (404) | Verify the site URL, page ID, or resource exists |
Token issues | Delete |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP server that enables running CLI for Microsoft 365 commands through GitHub Copilot Agent, allowing users to interact with Microsoft 365 services using natural language.Last updated4439122MIT
- AlicenseAqualityFmaintenanceA production-grade Model Context Protocol (MCP) server for Microsoft SharePoint that connects AI agents to read files, manage folders, and reason over organizational knowledge.Last updated1410MIT
- Flicense-qualityDmaintenanceA Model Context Protocol server that connects AI assistants to SharePoint via Microsoft Graph API, enabling natural language queries for documents, lists, and site management.Last updated75
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
A MCP server built for developers enabling Git based project management with project and personal…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/dYn36/sharepoint-online-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server