Skip to content
← All MCP servers

Is the SharePoint MCP server safe? What it can reach

What the SharePoint MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Microsoft documents a SharePoint MCP server in preview that signs in per Entra tenant. It can read sites, libraries, files and lists, and it can delete files and lists, share items by email and change sensitivity labels. Microsoft says it is for backward compatibility and points new projects to Work IQ MCP, which blocks changes by default.

Who maintains it

ImplementationKindStatus
SharePoint MCP server (Microsoft, legacy, preview; mcp_SharePointRemoteServer)Officialactive
Work IQ MCP, which also covers SharePoint (Microsoft, preview)Officialactive

It runs as a hosted remote server. The documented endpoint is https://agent365.svc.cloud.microsoft/agents/tenants/{tenantId}/servers/mcp_SharePointRemoteServer.

How it signs in

The legacy server page does not describe the sign-in flow, and its URL includes your Entra tenant ID. Microsoft documents Entra ID OAuth for Work IQ, where tools act with the signed-in user’s Microsoft 365 permissions. The scopes below belong to Work IQ.

Scope or permissionAccess
WorkIQ.Readread
WorkIQ.Actwrite
WorkIQAgent.Askwrite

What its tools can do

KindTools
ReadfindSite, getSiteByPath, listSubsites, listDocumentLibrariesInSite, getDefaultDocumentLibraryInSite, getFolderChildren, findFileOrFolder, getFileOrFolderMetadata, getFileOrFolderMetadataByUrl, readSmallTextFile, readSmallBinaryFile, checkOperationStatus, listLists, listListItems, getListItem, listColumns
WritecreateSmallTextFile, createSmallBinaryFile, createFolder, renameFileOrFolder, moveFileOrFolder, copyFileOrFolder, uploadFileFromUrl, createList, createListItem, updateListItem, createColumn, updateColumn
Can’t be undonedeleteFileOrFolder, deleteList, deleteListItem, deleteColumn, shareFileOrFolder, sendInviteForList, setSensitivityLabelOnFile

Tool names come from the legacy server’s reference page, which says Microsoft may change preview tool names and parameters. File reads and writes are limited to files of 5 MB or less. Work IQ uses a different, fixed set of generic tools (fetch, fetch_blob, create_entity, update_entity, delete_entity, do_action, call_function, ask, retrieve, list_agents, get_schema, search_paths) that act on resource paths.

Built-in limits

OptionWhat it does
Work IQ tenant policyMicrosoft says a policy layer blocks create, update, delete and action requests by default in Work IQ MCP. Administrators can enable supported mutations.
Admin enablement and consentAn administrator must enable Work IQ, and its three permissions require admin consent.
Your SharePoint permissionsThe server reaches only what the signed-in user can reach. Use an account with limited site access.
ETag parametersRename, delete and update tools accept an etag for concurrency control. This prevents overwriting a newer version, not misuse.

The risks

  • shareFileOrFolder and sendInviteForList email sharing invitations that grant read or write access. An injected instruction could send a sensitive file to an outside address.
  • setSensitivityLabelOnFile can change or remove a sensitivity label. Microsoft’s page says removal needs a justification, but the tool supplies a default one.
  • deleteList removes the whole list and every item, and Microsoft says it can’t be undone. deleteColumn removes all data stored in that column.
  • findFileOrFolder searches every site and library the signed-in user can open, so one prompt can pull in documents the task never needed.
  • Document and list content is written by many people. The agent reads it with the same rights it uses to write.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http sharepoint https://agent365.svc.cloud.microsoft/agents/tenants/{tenantId}/servers/mcp_SharePointRemoteServer

Claude Code names MCP tools mcp__sharepoint__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__sharepoint__deleteList",
      "mcp__sharepoint__deleteColumn",
      "mcp__sharepoint__deleteListItem",
      "mcp__sharepoint__deleteFileOrFolder",
      "mcp__sharepoint__shareFileOrFolder",
      "mcp__sharepoint__sendInviteForList",
      "mcp__sharepoint__setSensitivityLabelOnFile"
    ],
    "ask": [
      "mcp__sharepoint__createSmallTextFile",
      "mcp__sharepoint__createSmallBinaryFile",
      "mcp__sharepoint__createFolder",
      "mcp__sharepoint__renameFileOrFolder",
      "mcp__sharepoint__moveFileOrFolder",
      "mcp__sharepoint__copyFileOrFolder",
      "mcp__sharepoint__uploadFileFromUrl",
      "mcp__sharepoint__createList",
      "mcp__sharepoint__createListItem",
      "mcp__sharepoint__updateListItem",
      "mcp__sharepoint__createColumn",
      "mcp__sharepoint__updateColumn"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.sharepoint]
url = "https://agent365.svc.cloud.microsoft/agents/tenants/{tenantId}/servers/mcp_SharePointRemoteServer"
disabled_tools = ["deleteList", "deleteColumn", "deleteListItem", "deleteFileOrFolder", "shareFileOrFolder", "sendInviteForList", "setSensitivityLabelOnFile"]

Checklist

  • Use an account that can reach only the sites the task needs.
  • Deny the share, label and delete tools in your client.
  • Start with Work IQ’s default of blocked changes if you can use it.
  • Ask before any create, move or update call.
  • Check Microsoft’s page again, since preview tool names can change.

Checked against the vendor documentation on November 25, 2026. SharePoint reference (preview), Microsoft Copilot Studio · Work IQ MCP overview · Work IQ MCP tool reference · Work IQ API permissions reference

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing