Is the Microsoft 365 MCP server safe? What it can reach
What the Microsoft 365 MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Microsoft’s Work IQ MCP server is a hosted preview that gives agents access to Microsoft 365 mail, calendar, files, Teams and connected sources through one endpoint. It signs in with Microsoft Entra ID and acts with the signed-in user’s rights. Tenant policy blocks changes by default, and that policy is the control that matters most.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Work IQ MCP server (Microsoft, preview) | Official | active |
| Softeria/ms-365-mcp-server (community, Microsoft Graph, local) | Community | active |
It runs as a hosted remote server.
How it signs in
Microsoft Entra ID OAuth 2.0 with delegated permissions that an organization admin must consent to. The server acts with the signed-in user’s Microsoft 365 access.
| Scope or permission | Access |
|---|---|
WorkIQ.Read | read |
WorkIQ.Act | write |
WorkIQAgent.Ask | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | fetch, fetch_blob, call_function, retrieve, list_agents, get_schema, search_paths |
| Write | create_entity, update_entity, ask |
| Can’t be undone | delete_entity, do_action |
The tools work on resource paths, so one tool covers many resources. do_action sends mail and moves or copies items, and writes to connectors. call_function is described as a read, including connector reads. ask hands a question to Microsoft 365 Copilot or another agent, and the WorkIQAgent.Ask permission covers read and write access, so it is listed under write. The docs describe preview features that may change.
Built-in limits
| Option | What it does |
|---|---|
Tenant policy | A policy layer blocks create, update, delete and action requests by default. Admins can enable supported mutations in the Microsoft 365 admin center. |
Admin consent | All three permissions need admin consent, and an admin must enable Work IQ for the organization first. |
WorkIQ.Read only | Granting only WorkIQ.Read limits the app to reading data the user can already see. |
Path allow and block lists | /me/, /users/ and /sites/ are allowed by default. /authentication/ and /servicePrincipals/ are blocked. The full lists vary by tenant policy. |
query on fetch | Passing a query asks the server to sanitize email and calendar fields for injected instructions. Sanitization reduces risk and does not remove it. |
The risks
- An email or calendar invite is untrusted input, and an injected instruction in one could steer do_action to send mail from the user’s mailbox if tenant policy allows actions.
- delete_entity can delete messages and other items the user owns, so allowing deletes in tenant policy puts the whole mailbox and drive at risk.
- ask routes questions to Microsoft 365 Copilot, whose answers can pull content from mail, chats and files the user can open, so one question can surface data far outside the task.
- The permissions are delegated and broad, so the agent can reach anything the signed-in user can, not only one folder or site.
Limit it in Claude Code
Claude Code names MCP tools mcp__microsoft365__<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__microsoft365__delete_entity"
],
"ask": [
"mcp__microsoft365__do_action",
"mcp__microsoft365__create_entity",
"mcp__microsoft365__update_entity",
"mcp__microsoft365__ask"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml under [mcp_servers.<name>]. Use enabled_tools to keep only the tools you need, or disabled_tools to remove the risky ones.
Checklist
- Ask your admin to grant WorkIQ.Read first, not WorkIQ.Act.
- Leave mutations blocked in tenant policy until you need them.
- Pass a query on fetch for mail and calendar reads.
- Treat every email, invite and document as untrusted text.
Checked against the vendor documentation on November 25, 2026. Work IQ MCP overview · Work IQ MCP tool reference · Work IQ API permissions reference · Softeria/ms-365-mcp-server
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