Registry / crm-productivity / mcp-sharepoint

mcp-sharepoint

JSON →
library0.1.7pypypiunverified

MCP server for integrating with Microsoft SharePoint. Allows model context protocol (MCP) clients to interact with SharePoint sites, lists, libraries, and items. Current version: 0.1.7. Actively developed with monthly releases.

pip install mcp-sharepoint
INSTALL
IMPORT
SIG · MCP-SHAREPOINT
M
mcp-sharepoint
crm-productivitypythonv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Server
from mcp_sharepoint import Server
from mcp_sharepoint.server import Server
Server is re-exported at package level, not in submodule.
SharePointClient
from mcp_sharepoint import SharePointClient
from mcp_sharepoint.client import SharePointClient
Client is re-exported at package level.

Initialize SharePoint client and MCP server. Requires Azure app registration with SharePoint permissions.

import os from mcp_sharepoint import Server, SharePointClient # Environment variables: SHAREPOINT_TENANT_ID, SHAREPOINT_CLIENT_ID, SHAREPOINT_CLIENT_SECRET, SHAREPOINT_SITE_URL client = SharePointClient( tenant_id=os.environ.get('SHAREPOINT_TENANT_ID', ''), client_id=os.environ.get('SHAREPOINT_CLIENT_ID', ''), client_secret=os.environ.get('SHAREPOINT_CLIENT_SECRET', ''), site_url=os.environ.get('SHAREPOINT_SITE_URL', '') ) server = Server(client) server.run()
Debug
Known issues
breakingIn 0.1.5, the SharePointClient constructor changed from positional arguments to keyword-only arguments. Code using positional args will break.
fix
Use keyword arguments: SharePointClient(tenant_id=..., client_id=..., ...)
affects: >=0.1.5
gotchaThe SharePoint site URL must include the site path exactly (e.g., 'https://contoso.sharepoint.com/sites/MySite'). Trailing slash is required.
fix
Ensure site_url ends with '/' or no path error occurs.
affects: all
deprecatedThe 'get_list_items' method was renamed to 'list_items' in 0.1.6. Old name still works but will be removed in 0.2.0.
fix
Use client.list_items() instead of client.get_list_items().
affects: <=0.1.6
Upgrade
Version history
0.1.7latest on PyPI · released Nov 15, 2025
Audit
Dependencies
mcprequiredCore MCP framework for server implementation
office365-rest-python-clientrequiredSharePoint REST API client
Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
1
Resources
mcp-sharepoint — pip install mcp-sharepoint · libregistry