SharePoint MCP server: sites, files and lists in Claude, Codex or Cursor
SharePoint reaches Claude, Codex or Cursor through the Agent Planners MCP endpoint over Microsoft Graph. Your own SharePoint permissions and the app's permissions both apply. Use search_tools for the current tool list.
How to configure it
- 1Connect SharePoint (a work or school Microsoft account) on its card on Integrations.
- 2Create a key in API & MCP:
tools:readfor reading, addtools:writefor changes — or sign in from the client with OAuth. - 3Add the server to your client with one of the snippets below, run
describe_permissions, thensearch_tools with "sharepoint".
# Claude Code
claude mcp add --transport http agent-planners https://www.agentplanners.com/api/mcp \
--header "Authorization: Bearer $AGENTPLANNERS_API_KEY"
# Codex (signs in with OAuth in the browser)
codex mcp add agent-planners --url https://www.agentplanners.com/api/mcp
# Cursor (~/.cursor/mcp.json)
{ "mcpServers": { "agent-planners": { "url": "https://www.agentplanners.com/api/mcp", "headers": { "Authorization": "Bearer ${env:AGENTPLANNERS_API_KEY}" } } } }What waits for a person, whatever the key allows
Ordinary changes follow how the key was minted: they run inside the workspace's guardrails, or queue for an admin. These are held for a person on every key mode and never ride a bulk approval:
- Deleting a file, a folder, a list or a list item always waits for a person, on every lane — even with auto-approve on.
Connection levels and administrator approval
- The SharePoint card offers four levels: only your OneDrive files, only sites an administrator selects, read every site you can open, or read and change them. Each asks only for its own Microsoft permission.
- Microsoft lists none of these delegated permissions as needing an administrator. The prompt comes from your tenant's user-consent policy: Microsoft's managed default (the default for new tenants since mid-2025) keeps Sites.Read.All, Sites.ReadWrite.All, Files.Read.All and Files.ReadWrite.All for administrators. A tenant set to "Do not allow user consent" needs an administrator for every level.
- A read-only or OneDrive-only connection answers a change, or a site it cannot reach, in words before anything is sent; with "Only sites an administrator selects", an administrator grants each site and you add it by address.
Frequently asked questions
- Can an MCP client delete SharePoint files?
- It can ask; a person approves it every time. Deleting a file, folder, list or list item is held on every key mode.