For the complete documentation index, see llms.txt. This page is also available as Markdown.

15. SharePoint MCP Server

With this MCP you can access the documents of a Microsoft SharePoint site via Microsoft Graph.

What it can do

  • 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."

Configuration parameters

Parameter
Required
Description

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.

Custom parameters

No additional parameters needed.

How to get the parameters (Azure / Graph app)

  1. On the Azure portal register a new app under Microsoft Entra ID → App registrations

  2. Under API permissions → Microsoft Graph (application) add Sites.Read.All (or Sites.ReadWrite.All) and grant admin consent

  3. Under Certificates & secrets create a client secret and copy it immediately

  4. Copy the Application (client) ID and Directory (tenant) ID

  5. Find the siteId and driveId of the site/library to connect (e.g. via Graph Explorer)

Last updated