Connector guide10-minute read29 MCP tools7 languages

How to Connect Microsoft SharePoint to Claude via MCP

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

HCBy HelpCode teamUpdated 10 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

SharePoint (Microsoft 365)

SharePoint (Microsoft 365)

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

tools

29

Region

INTL

Category

File Storage

Authentication

OAuth 2.0

Required env vars

MICROSOFT_CLIENT_IDMICROSOFT_CLIENT_SECRETMICROSOFT_TENANT_ID
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the SharePoint (Microsoft 365) in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.

Summary

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Try asking

Example prompts for SharePoint (Microsoft 365)

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

SharePoint (Microsoft 365) · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → SharePoint (Microsoft 365), paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Microsoft SharePoint + Claude

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID

Step 1 — Get credentials

  1. Open the Microsoft Entra admin center (entra.microsoft.com) or the Azure portal and go to Applications → App registrations → New registration.

  2. Name the app (for example "AnythingMCP Microsoft 365") and choose the Supported account types. The choice decides what goes into MICROSOFT_TENANT_ID:

    • Accounts in this organizational directory only (single tenant): only users of your organisation can sign in. Use the Directory (tenant) ID from the app's Overview page (a GUID) or your domain, such as contoso.onmicrosoft.com.
    • Accounts in any organizational directory (multi-tenant): use organizations.
    • Accounts in any organizational directory and personal Microsoft accounts: use common. Personal Microsoft accounts have no SharePoint, so they can sign in but get no data.

    If the value does not match the account type, Microsoft refuses the sign-in (AADSTS50194 or AADSTS50020).

  3. Under Redirect URI, pick the platform Web and enter https://cloud.anythingmcp.com/api/mcp-oauth/callback. If you host AnythingMCP yourself, enter https://your-anythingmcp-host/api/mcp-oauth/callback instead. The URI must match character for character, otherwise Microsoft answers AADSTS50011.

  4. Open API permissions → Add a permission → Microsoft Graph → Delegated permissions and add offline_access, User.Read, Sites.ReadWrite.All and Files.ReadWrite.All. offline_access is what makes Microsoft issue a refresh token; without it the connector stops an hour after you authorize it.

  5. Open Certificates & secrets → New client secret. Copy the secret Value, not the Secret ID; it is shown only once. Note the expiry date: when the secret expires, the connector stops working until you create a new one and paste it in.

  6. Paste the Application (client) ID from the Overview page into MICROSOFT_CLIENT_ID, the secret value into MICROSOFT_CLIENT_SECRET and the tenant value from step 2 into MICROSOFT_TENANT_ID, then install the connector.

  7. On the connector page, click Authorize with Provider and sign in with the work account whose SharePoint sites the AI should work with. The refresh token is stored encrypted, and access tokens (valid for about an hour) are renewed automatically.

  8. Start with sharepoint_get_root_site: it shows your organisation's root site and confirms that SharePoint is reachable.

What ".All" means: in these delegated permissions, All means "every site the signed-in user can open". The AI never gets more than that user's own SharePoint access.

One Entra app for all Microsoft connectors: the app registration you made for the Outlook, OneDrive or Excel connector works here too. Open it, add the permissions from step 4 under API permissions, keep the same redirect URI and reuse the same client ID, secret and tenant. Each connector asks only for its own permissions when you authorize it:

  • Outlook: Mail.ReadWrite, Mail.Send, Calendars.ReadWrite
  • OneDrive: Files.ReadWrite
  • Excel: Files.ReadWrite (plus Files.ReadWrite.All for workbooks in SharePoint or shared with you)
  • SharePoint: Sites.ReadWrite.All and Files.ReadWrite.All

All of them also need offline_access and User.Read.

Admin consent: these delegated permissions normally do not need an administrator, but many organisations turn off user consent. If the sign-in shows "Need admin approval" (AADSTS65001 or AADSTS90094), a tenant administrator opens the app registration once and clicks API permissions → Grant admin consent for the organisation. After that every user can authorize. Each connector still works only with what the account that signed in may see.

Read-only setup: add Sites.Read.All and Files.Read.All to the app registration, replace the scopes in the connector's OAuth settings with offline_access User.Read Sites.Read.All Files.Read.All, authorize again and disable sharepoint_create_list_item, sharepoint_update_list_item, sharepoint_create_list, sharepoint_create_folder, sharepoint_upload_text_file, sharepoint_rename_drive_item and sharepoint_move_drive_item.

Switched off at install: sharepoint_delete_list_item, sharepoint_delete_drive_item, sharepoint_create_sharing_link and sharepoint_invite. Sharing links and invitations are off on purpose: they give other people access to your organisation's files, and a document the AI reads could contain text asking it to share something. Turn a tool on only if the AI really needs it. Deleted items go to the site's recycle bin.

Finding your way: the AI finds a site by keyword or from its address (for example https://contoso.sharepoint.com/sites/Marketing), then opens its document libraries and lists. sharepoint_search uses Microsoft Search across all sites, files and list items you can see. Modern site pages can be read; classic pages, news posts and page editing are not covered.

Lists: list values are stored under each column's internal name, which can differ from the name you see (a column shown as "Due date" may be DueDate). The AI reads the columns first with sharepoint_list_columns. On lists with more than 5,000 items, SharePoint only filters and sorts on indexed columns.

Files and content: the connector does not download file content: the AI gives you the file's link instead. It creates text files of up to about 4 MB and, by default, never overwrites an existing file. For the cells of Excel workbooks in a library, use the Microsoft Excel connector.

Common errors: 401 InvalidAuthenticationToken means the authorization was revoked or the client secret expired; paste a new secret if needed and click Authorize with Provider again. 403 accessDenied means a permission from step 4 is missing or was not consented, or you have no access to that site, library or list. 404 itemNotFound means a wrong site, library, list or item, or a site path that does not exist; personal Microsoft accounts get 404 or 400 for every call. 400 invalidRequest on list items means a column name is not the internal name or a value does not fit the column; "cannot be referenced in filter or orderby as it is not indexed" means the column needs an index in the list settings. 409 nameAlreadyExists means an item with that name is already in the folder.

The connector does not download file content, upload binary files, create sites or change site permissions, delete lists or columns, edit pages or manage the term store and content types.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Claude

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Recommended path: works on claude.ai web without editing any config file.

  1. In Claude, open Customize → Connectors.
  2. Click +, then Add custom connector.
  3. Enter a name, e.g. Microsoft SharePoint, and the remote MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Add.
  4. Click Connect and sign in to AnythingMCP (OAuth) to allow access.

All tools below appear in your chat: start typing prompts.

Available tools

ToolWhat it does
sharepoint_get_root_siteGet the organisation's root SharePoint site (e.g. https://contoso.sharepoint.com): its id, name, displayName, webUrl and hostname…
sharepoint_search_sitesFind SharePoint sites the user can open by keyword in their name or description, e.g. "marketing". "*" lists all sites the user can reach
sharepoint_get_site_by_pathGet a site from its address: hostname plus server-relative path, as in https://contoso.sharepoint.com/sites/Marketing → hostname…
sharepoint_get_siteGet one site by id: name, displayName, description, webUrl, dates and hostname
sharepoint_list_subsitesList the subsites of a site: id, name, displayName, webUrl
sharepoint_list_drivesList the document libraries (drives) of a site, e.g. "Documents" (Shared Documents) and other libraries: id, name, description, driveType…
sharepoint_list_drive_rootList the files and folders at the top level of a document library: id, name, size, dates, last modifier, file mimeType or folder child…
sharepoint_list_folderList the files and folders inside one folder of a document library
sharepoint_search_driveSearch one document library for files and folders whose name, metadata or content matches the text
sharepoint_get_drive_itemGet one file's or folder's metadata in a document library: name, size, dates, creator and last modifier, parentReference, file mimeType or…
sharepoint_searchSearch everything the user can see across SharePoint and OneDrive with Microsoft Search: files (driveItem), list items (listItem), lists…
sharepoint_list_listsList the lists and libraries of a site: id, name, displayName, description, list.template (genericList, documentLibrary, events...)…
sharepoint_list_columnsList the columns of a list with their internal name (the key used in fields), displayName, type (text, number, dateTime, choice with its…
sharepoint_list_itemsList the items of a list with their column values (fields), id, dates, creator and last modifier, webUrl
sharepoint_get_list_itemGet one list item with all its column values (fields), id, dates, creator, last modifier and webUrl
sharepoint_create_list_itemCreate an item in a list, with values keyed by the internal column names from sharepoint_list_columns
sharepoint_update_list_itemChange column values of a list item; columns not named keep their values
sharepoint_delete_list_itemDelete a list item
sharepoint_create_listCreate a new list in a site, optionally with columns (every list has a Title column)
sharepoint_create_folderCreate a folder in a document library, inside a parent folder (default: the library's top level)
sharepoint_upload_text_fileCreate a new text file (.txt, .md, .csv, .json, .html, .xml...) with the given content in a folder of a document library, up to about 4 MB
sharepoint_rename_drive_itemRename a file or folder in a document library in place
sharepoint_move_drive_itemMove a file or folder to another folder of the same document library, optionally renaming it on the way
sharepoint_delete_drive_itemDelete a file or folder (with its contents) from a document library
sharepoint_list_permissionsList who has access to a file or folder in a document library: roles, people and groups (grantedToV2), sharing links (link.type…
sharepoint_create_sharing_linkCreate a sharing link for a file or folder in a document library: type "view" or "edit", scope "anonymous", "organization" or "users"
sharepoint_inviteGive people access to a file or folder in a document library by email address, with role "read" or "write", optionally emailing them
sharepoint_list_pagesList the modern pages of a site: id, name, title, webUrl, pageLayout, publishing state, dates and author
sharepoint_get_pageRead one modern page with its content: title, description and canvasLayout (sections, columns and web parts; text web parts carry innerHtml)

Example prompts

  • "Find the Marketing site and list the files in its Documents library that changed this month."
  • "In the Projects list, show me every item with the status Open that is due before Friday."
  • "Add an item to the Purchase Requests list: 'New laptops for sales', amount 4,800, status Pending."
  • "Search SharePoint for the latest travel policy and tell me where it is stored."

FAQ

Does it work with Claude Code as well as Claude Desktop? Yes, point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.

Next steps

Was this guide helpful?

Your SharePoint agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Microsoft SharePoint to ChatGPT via MCP

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Connectors

How to Connect Microsoft SharePoint to Cursor via MCP

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Connectors

How to Connect Microsoft SharePoint to Gemini via MCP

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Connectors

How to Connect Microsoft SharePoint to Meta Muse via MCP

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Connectors

Microsoft SharePoint to MCP: Drive Microsoft SharePoint from any AI Agent

Let your AI work in SharePoint: find sites, browse and search document libraries, see file details and who has access, read, create and update list items, create lists, folders and text files, read site pages, and search everything with Microsoft Search. Microsoft 365 through Microsoft Graph, signed in with your work account.

Connectors

How to Connect Canva to Claude via MCP

Let your AI work in Canva: find and read designs, create new ones, export them to PDF, PNG, PowerPoint or video with download links, organise folders, upload images from a link, read brand templates and comment on designs.