{"id":27142,"library":"mcp-sharepoint","title":"MCP SharePoint","description":"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.","status":"active","version":"0.1.7","language":"python","source_language":"en","source_url":"https://github.com/your-org/mcp-sharepoint","tags":["mcp","sharepoint","microsoft","model-context-protocol","ai"],"install":[{"cmd":"pip install mcp-sharepoint","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core MCP framework for server implementation","package":"mcp","optional":false},{"reason":"SharePoint REST API client","package":"office365-rest-python-client","optional":false}],"imports":[{"note":"Server is re-exported at package level, not in submodule.","wrong":"from mcp_sharepoint.server import Server","symbol":"Server","correct":"from mcp_sharepoint import Server"},{"note":"Client is re-exported at package level.","wrong":"from mcp_sharepoint.client import SharePointClient","symbol":"SharePointClient","correct":"from mcp_sharepoint import SharePointClient"}],"quickstart":{"code":"import os\nfrom mcp_sharepoint import Server, SharePointClient\n\n# Environment variables: SHAREPOINT_TENANT_ID, SHAREPOINT_CLIENT_ID, SHAREPOINT_CLIENT_SECRET, SHAREPOINT_SITE_URL\nclient = SharePointClient(\n    tenant_id=os.environ.get('SHAREPOINT_TENANT_ID', ''),\n    client_id=os.environ.get('SHAREPOINT_CLIENT_ID', ''),\n    client_secret=os.environ.get('SHAREPOINT_CLIENT_SECRET', ''),\n    site_url=os.environ.get('SHAREPOINT_SITE_URL', '')\n)\nserver = Server(client)\nserver.run()","lang":"python","description":"Initialize SharePoint client and MCP server. Requires Azure app registration with SharePoint permissions."},"warnings":[{"fix":"Use keyword arguments: SharePointClient(tenant_id=..., client_id=..., ...)","message":"In 0.1.5, the SharePointClient constructor changed from positional arguments to keyword-only arguments. Code using positional args will break.","severity":"breaking","affected_versions":">=0.1.5"},{"fix":"Ensure site_url ends with '/' or no path error occurs.","message":"The SharePoint site URL must include the site path exactly (e.g., 'https://contoso.sharepoint.com/sites/MySite'). Trailing slash is required.","severity":"gotcha","affected_versions":"all"},{"fix":"Use client.list_items() instead of client.get_list_items().","message":"The '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.","severity":"deprecated","affected_versions":"<=0.1.6"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install mcp-sharepoint' in the correct environment.","cause":"Missing package installation or wrong Python environment.","error":"ModuleNotFoundError: No module named 'mcp_sharepoint'"},{"fix":"Check the site URL format: 'https://{tenant}.sharepoint.com/sites/{site-name}/'","cause":"Site URL does not match expected pattern (e.g., missing 'sites' path or typo).","error":"ValueError: Invalid site URL. Must be a valid SharePoint site URL."},{"fix":"Verify SHAREPOINT_TENANT_ID, SHAREPOINT_CLIENT_ID, SHAREPOINT_CLIENT_SECRET are correct and app has 'Sites.Read.All' or equivalent delegated permissions.","cause":"Authentication failed; Azure AD app may lack proper permissions or secrets expired.","error":"KeyError: 'access_token'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}