Skip to main content
MCP server CX Codex

Microsoft 365 SharePoint — Claude Code MCP server: sites, files

An MCP server that gives your agent SharePoint through Microsoft Graph: find sites, read libraries and lists, search content, and create sharing links.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MS_CLIENT_ID=<MS_CLIENT_ID> --env MS_CONFIG_DIR=<MS_CONFIG_DIR> --env MS_ACCOUNT_EMAIL=<MS_ACCOUNT_EMAIL> --env MS_MCP_PACKAGE_ID=<MS_MCP_PACKAGE_ID> --env MICROSOFT_REQUEST_TIMEOUT_MS=<MICROSOFT_REQUEST_TIMEOUT_MS> --transport stdio microsoft-sharepoint -- npx -y @mindstone/mcp-server-microsoft-sharepoint
Open on GitHub

What Microsoft 365 SharePoint does

The server sits on top of the Microsoft Graph API and exposes 46 tools to the agent: authentication, sites, document libraries, pages, lists, metadata, search, and file and list mutations. A typical run finds a document on a given site and hands back a link to it.

OAuth is owned by the host application, not by this server. The host writes token files to ${MS_CONFIG_DIR}/credentials/${sanitised-email}.token.json plus an ${MS_CONFIG_DIR}/accounts.json index; the server only reads them. Incremental consent for Sites.Read.All goes through a dedicated authenticate_sharepoint tool, so the existing mail, calendar, files and teams session stays untouched.

You need Node.js 20+ and npm. Two environment variables are required: MS_CLIENT_ID (the Microsoft Entra application client ID) and MS_CONFIG_DIR. Without a host that runs the OAuth flow and writes the token files, the server will not start — it never initiates sign-in on its own.

What it helps with

  • find a document on a SharePoint site by name
  • list what a document library contains
  • read items from a SharePoint list
  • create a read-only sharing link for a team
  • search SharePoint content from the agent

Example prompts for the agent

  • Find the Q3 OKR doc on the Strategy team's site
  • Create a read-only link to that file for the whole organization
  • Show me what's in this site's document library

How to install Microsoft 365 SharePoint

Platform CLI

claude mcp add --env MS_CLIENT_ID=<MS_CLIENT_ID> --env MS_CONFIG_DIR=<MS_CONFIG_DIR> --env MS_ACCOUNT_EMAIL=<MS_ACCOUNT_EMAIL> --env MS_MCP_PACKAGE_ID=<MS_MCP_PACKAGE_ID> --env MICROSOFT_REQUEST_TIMEOUT_MS=<MICROSOFT_REQUEST_TIMEOUT_MS> --transport stdio microsoft-sharepoint -- npx -y @mindstone/mcp-server-microsoft-sharepoint

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Microsoft 365 SharePoint

How do I install Microsoft 365 SharePoint in Claude Code?

Run `claude mcp add mcp-server-microsoft-sharepoint -e MS_CLIENT_ID=<MS_CLIENT_ID> -e MS_CONFIG_DIR=<MS_CONFIG_DIR> -- npx -y @mindstone/mcp-server-microsoft-sharepoint`. Fill in your client ID and config directory path.

What does Microsoft 365 SharePoint do?

It connects the agent to SharePoint via Microsoft Graph: searching sites and documents, reading libraries, pages and lists, and creating links or making file and list changes.

What does the server need to run?

Node.js 20+, npm, and a host application that handles the Microsoft OAuth flow and writes token files into MS_CONFIG_DIR. The server itself does not sign you in.

Similar MCP servers

Everything for Office documents →

From the same set13

Retell AI Wires Retell AI voice agents into your assistant: place a call, read call history, edit an agent prompt. CX Codex +1 ★ 13repo stars PandaDoc Wires PandaDoc into your coding agent: build documents from templates, send them for signing, pull PDFs back. Useful when contracts live in PandaDoc. CX Codex +1 ★ 13repo stars OpenAI Image An MCP server that hands your agent two tools: turn a text prompt into an image, or edit one you already have, through Anthropic. CX Codex +1 ★ 13repo stars Nano Banana An MCP server that hands your agent image generation and editing through Google Gemini. Useful when a picture has to come out of the coding session itself. CX Codex +1 ★ 13repo stars Microsoft 365 Calendar Brings the Outlook calendar from Microsoft 365 into your coding agent: read events, create and edit meetings, find free slots. Handy when you plan the day from the chat window. CX Codex +1 ★ 13repo stars HubSpot A local MCP server that exposes HubSpot CRM to your coding agent: contacts, deals, tickets, tasks and files. Handy when you juggle more than one HubSpot account. CX Codex +1 ★ 13repo stars Gamma Turns a prompt into a Gamma deck, document or webpage and hands back a link or a PPTX/PDF file inside your host. CX Codex +1 ★ 13repo stars Email (IMAP/SMTP) Wires a mailbox into your coding agent so it can read, search, draft and send mail over IMAP and SMTP. Handy when triaging an inbox or writing a reply without leaving the chat. CX Codex +1 ★ 13repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor