15. SharePoint MCP Server
Last updated
With this MCP you can access the documents of a Microsoft SharePoint site via Microsoft Graph.
List and search files and folders of a SharePoint site
Read document content and return an access link
Examples:
"Search the 'Sales' site for contracts signed in May."
"Open the latest document in the 'Quotes' folder and summarise it."
clientId
Yes
Client ID of the Microsoft Entra (Azure AD) App Registration dedicated to SharePoint.
clientSecret
Yes
Client Secret of the App Registration.
tenantId
Yes
Microsoft Entra Directory (Tenant) ID.
siteId
Yes
Full SharePoint site ID. Format: sitename.sharepoint.com,<site-guid>,<web-guid>.
driveId
Yes
SharePoint Drive ID (Document Library) to use. Format: f!....
listId
No
SharePoint list ID. Required only by document search by keywords.
No additional parameters needed.
On the Azure portal register a new app under Microsoft Entra ID → App registrations
Under API permissions → Microsoft Graph (application) add Sites.Read.All (or Sites.ReadWrite.All) and grant admin consent
Under Certificates & secrets create a client secret and copy it immediately
Copy the Application (client) ID and Directory (tenant) ID
Find the siteId and driveId of the site/library to connect (e.g. via Graph Explorer)
Last updated