Microsoft 365 MCP Server: Secure Setup for Claude & AI Agents (2026)
The Microsoft 365 MCP server lets Claude, Cursor, ChatGPT, and AI agents read and act inside Microsoft 365. Here's the official setup, the real security risks, and how to deploy it with DLP-grade redaction at the MCP layer.
The Microsoft 365 MCP server is the path for AI agents (Claude, Cursor, ChatGPT, Perplexity, custom agents) to read and act inside Microsoft 365 via the Model Context Protocol — covering Outlook mail, OneDrive files, SharePoint sites and documents, and Teams channels.
Setup is documented in the official Microsoft 365 MCP server guide; connecting from Claude Desktop requires the Enterprise/Pro/Max/Team plan plus an OAuth client ID/secret added as a custom connector.
The risk: every Microsoft 365 MCP tool call returns the data the authorizing user can see. That data routinely contains PII, PHI, financial records, contracts, source code, secrets, and credentials. None of it is inspected before reaching the AI model's context window.
Strac Microsoft 365 MCP DLP is the governance layer for AI-agent access to your tenant. It governs every tool call between the agent and Microsoft 365 — controlling what each agent can reach and do across Outlook, Teams, SharePoint, and OneDrive (allow/block plus approval on high-risk actions), protecting sensitive data with redaction, masking, and vaulting, and logging every call as audit evidence mapped to SOC 2 / HIPAA / PCI / GDPR / EU AI Act / ISO 42001.
Setup is agentless and under 10 minutes per workspace. No application code changes, no agent SDK changes, no Microsoft 365 re-permissioning.
What Is the Microsoft 365 MCP Server?
The Microsoft 365 MCP server is a Model Context Protocol implementation that exposes Microsoft 365's API as a standardized set of tools to AI agents. Once connected, an agent like Claude can perform Outlook search, OneDrive get, SharePoint get, Teams list on the authenticated user's behalf — turning Microsoft 365's API surface into AI-actionable capabilities.
Refer to the official Microsoft 365 MCP server documentation for the current tool list, OAuth scopes, and rate-limit behavior. The setup pattern is consistent with other MCP integrations: an OAuth client ID/secret, a custom connector in Claude (or another MCP-aware AI client), and the server starts serving tool calls.
From the user's perspective, the AI agent suddenly knows their Microsoft 365. From the security perspective, the AI agent now has read access — and often write access — to every record the user can touch in Microsoft 365.
That's the value. It's also where security teams need a control layer.
What AI Agents Can Actually Do With Microsoft 365 MCP
Start with the payoff — the day-to-day work an agent like Claude or Cowork takes off your plate once Microsoft 365 is wired in.
Work your Outlook mailbox and calendar. The agent searches threads, pulls the message you're looking for, checks who's free, and reasons over your inbox the way an assistant who's read it would.
Catch up on Teams. It reads channel posts and chat threads, so you can ask "what did the deal desk decide on the Acme renewal?" and get an answer grounded in the actual conversation rather than your memory of it.
Open and summarize Office documents. Word memos, Excel models, PowerPoint decks — the agent reads the content inside the file and hands you a synopsis, a delta, or a pulled-out figure instead of making you open it yourself.
Track down attachments. It locates the contract, spreadsheet, or scanned PDF buried in an email or a SharePoint library and reads what's inside it.
Draft and create on your behalf (write). Beyond reading, the agent composes a reply, blocks a meeting, or puts an event on your calendar — the same tool surface, now acting outward.
Search across the tenant you can reach. A single question can fan out across the OneDrive folders, SharePoint sites, and mailboxes your account already has rights to.
Every one of those moves is a tool call returning live tenant content into the model's context — which is exactly the path that has to be inspected before anyone trusts it with regulated data.
The Real Security Risks of the Microsoft 365 MCP Server
The risks fall into four categories that every healthcare, fintech, and enterprise security team should price into the deployment.
1. Outlook search is a regulated-data search. Mail bodies contain PII, PHI, financial records, contracts. outlook_search_messages returns the raw content with no Microsoft Purview inspection on the MCP path by default.
2. OneDrive and SharePoint return document content unfiltered.onedrive_get_file and sharepoint_get_item return document content including text inside images. Microsoft Information Protection labels do not automatically flow into MCP responses.
3. Teams history is a goldmine the agent can read. Channel messages, chat threads, shared files — teams_list_messages returns the raw conversation context, including the regulated data shared in threads.
4. SharePoint permissions are notoriously broad. The authorizing user often has access to far more sites than they realize. One MCP tool call can return content from sites the user forgot they were a member of.
The traditional DLP a company already runs — at the network edge, on the file share, inside the SaaS-native rule engine — does not sit in the MCP path. The tool response goes straight from Microsoft 365 into the AI agent's context window. That reach is exactly why each agent's access and actions need to be controlled, the tenant data it pulls back protected, and every call audited — which is where Strac Microsoft 365 MCP DLP lives.
✨ Strac Microsoft 365 MCP DLP — Production-Ready Agent Governance
Strac's Microsoft 365 MCP DLP is the governance layer between AI agents and the Microsoft 365 MCP server, built on four jobs: See every tool call an agent makes into your tenant, Control what each agent can reach and do across Outlook, Teams, SharePoint, and OneDrive — allow or block by scope, with approval gates on high-risk actions — Protect the sensitive content in tool responses through redaction, masking, and vaulting, and Prove it all by logging every call as audit evidence. Every tool call passes through Strac's MCP-layer inspection before content reaches the AI agent's context window. Non-sensitive content flows through untouched.
The Strac Microsoft 365 MCP DLP gateway intercepts every tool call between any AI agent (Claude, Cursor, Cowork, ChatGPT, custom) and the Microsoft 365 MCP server. PII, PHI, PCI, secrets, source code, and content inside images are redacted before the AI agent ever reads them.The full data flow: a user prompt triggers an AI agent tool call, the MCP server fetches from Microsoft 365, and the Strac DLP redaction engine strips SSNs, credit cards, emails, PHI, secrets, and source code before the redacted response ever reaches the model.Strac's live MCP Access console — every AI agent tool call touching Microsoft 365 and your other connected platforms, captured and inspected for sensitive data in real time. See what your LLMs reached for, who prompted, and what was flagged.Every MCP invocation in order — user, tool, platform, and the sensitive data found — with redacted vs. original content and a full audit trail. This is what Strac shows on Microsoft 365 that access-only gateways can't: the data in each call, not just the call.
Why not just an access gateway?
Access-only tools answer "who called what." They do not see the sensitive content in a SharePoint file or Outlook thread. Strac sits inline on every Microsoft 365 tool call: it detects and remediates the sensitive data inside — redact, mask, block, or revoke access — and approves or blocks risky actions per agent, and keeps the audit trail — the call and its contents.
What Strac does on every Microsoft 365 tool call
One inline pass over each MCP response — five actions, enforced by your policy:
Detect — finds sensitive content in a SharePoint file and any PII, PHI, PCI, secrets, or source code in the payload, including text inside images via OCR.
Redact or mask — replaces the sensitive elements inline, so the agent still gets its answer and the model never sees the raw data.
Block or require approval — stops a high-risk action like a file move or external share, or routes it for sign-off before it runs.
Alert — notifies your team and streams the event to your SIEM (Microsoft Sentinel, Datadog, Splunk) in real time.
Audit — logs who, which agent, which tool, what data, and the action taken — evidence mapped to PCI DSS, SOC 2, HIPAA, and GDPR.
What this looks like in practice:
Read tools are filtered. When the agent calls a read tool, Strac inspects the returned payload, redacts SSNs / credit cards / emails / PHI / API keys / secrets / source code inline, and passes the clean payload to the agent. The agent still does its job; the regulated data never enters the model context.
Write tools are guardrailed. When the agent invokes a write/post/create tool with content that contains sensitive data, Strac inspects the outgoing payload and either redacts, vaults, or blocks depending on the channel and the data type.
Files, attachments, images, and documents are inspected at depth. PDFs, DOCX, XLSX, ZIPs, and image attachments are parsed with the same OCR and document-parser pipeline Strac uses across its DLP product line. Sensitive content inside screenshots and scanned PDFs is found and redacted.
Every invocation is logged. AI client, user, tool name, resource accessed, data classes detected, redactions applied, vault references, disposition. The log is the SOC 2 / HIPAA / PCI / GDPR audit evidence — produced automatically.
Policy is contextual. Different resources, different policies. Strac maps to your existing data classification, not an MCP-specific silo.
The same Strac MCP DLP layer covers Claude Cowork, Slack MCP, and other surfaces — one control plane across every place AI agents touch your regulated data.
✨ Strac Native Microsoft 365 DLP — The Companion to MCP DLP
MCP DLP protects the AI-agent surface. Strac's native Microsoft 365 DLP protects the direct-user surface — the same Microsoft 365 workspace, but inspected at the point where humans share, upload, send, and grant access. Most enterprises run both: native DLP for the user-driven actions, MCP DLP for the agent-driven actions. Together they cover every path regulated data can take in and out of Microsoft 365.
Strac Microsoft 365 DLP — data classification, labeling, and remediation across SharePoint and OneDrive
What Strac's native Microsoft 365 DLP includes:
Continuous discovery and classification of PII, PHI, PCI, credentials, and source code across Outlook, OneDrive, SharePoint, and Teams
Real-time inspection of outbound email in Outlook — subject, body, and attachments — with block/warn/redact policies
OneDrive and SharePoint file inspection at depth: PDFs, DOCX, XLSX, ZIPs, and OCR for text inside images and scanned documents
Automatic revocation of over-permissive sharing — public SharePoint sites, externally-shared OneDrive folders, broad permission grants
Vault-redaction flow: replace sensitive M365 files with permission-controlled retrieval links
Audit logs per finding mapped to SOC 2 CC6, HIPAA Security Rule, PCI DSS, GDPR — alongside Microsoft Purview where you already use it
For the broader integration catalog — every SaaS, cloud, browser, and endpoint surface Strac covers — see strac.io/integrations.
✨ See Strac MCP DLP in Action
The screenshot below shows Strac's MCP DLP redacting sensitive data from a real Claude session — patient identifiers, customer emails, and credit card numbers tokenized inline before the model received the prompt. The same inspection pattern runs on every Microsoft 365 MCP tool call routed through Strac.
Strac DLP at work inside a Claude conversation: sensitive elements tokenized inline before the model sees them. The same pattern runs at the MCP layer for every Microsoft 365 tool call.
How to Set Up Strac Microsoft 365 MCP DLP
Setup is agentless and takes under 10 minutes.
Authorize Strac with your Microsoft 365 tenant via OAuth. Strac requests the read/write scopes for the products you want covered. Honors Microsoft 365's permission model — Strac only sees what the authorizing user/bot can see.
Configure the MCP proxy endpoint. Strac issues an MCP server endpoint that drops into your AI client's MCP configuration. For Claude Desktop:
json
"mcpServers": {
"m365": {
"url": "https://mcp.strac.io/m365",
"auth": { "type": "bearer", "token": "<your-strac-token>" }
}
}
For Cursor, OpenAI Agents, custom agents — same endpoint, same auth.
Pick your policy. Out-of-the-box templates for SOC 2, HIPAA, PCI, GDPR. Custom policies (resource-level, data-class-level, action-level) take minutes to configure.
Done. Every MCP tool call between your agent and Microsoft 365 now flows through Strac. No application code changes. No agent code changes. The audit log starts populating immediately.
Compliance Coverage Out of the Box
The same Strac Microsoft 365 MCP DLP control produces evidence mapped to every major compliance framework.
Framework
What Strac Microsoft 365 MCP DLP Satisfies
SOC 2
CC6.6 (unauthorized data exposure), CC6.7 (restricted transmission of data to external systems), CC7.2 (monitoring for anomalies including AI usage)
The Microsoft 365 MCP server is a Model Context Protocol implementation that lets AI agents (Claude, Cursor, ChatGPT, Perplexity, custom agents) read and act inside Microsoft 365 via standardized tool calls. It's how an AI assistant gets contextual access to Outlook mail, OneDrive files, SharePoint sites and documents, and Teams channels.
Is the Microsoft 365 MCP connector the same as the Microsoft 365 MCP server?
Yes. "Server" and "connector" describe the same component here. The Model Context Protocol uses server; Claude's Connectors directory calls it the Microsoft 365 connector. It spans the same Outlook, Teams, and Office surfaces under either name, and Strac's Microsoft 365 MCP connector protects regulated data across the tenant on every call.
Microsoft 365 MCP vs Microsoft 365 Copilot — what's the difference?
They sit on opposite sides of the tenant boundary. The Microsoft 365 MCP server is the doorway external agents — Claude, Cursor, Cowork, ChatGPT — use to reach into Microsoft 365 over the Model Context Protocol and act on your behalf. Microsoft 365 Copilot is Microsoft's own AI, baked into Outlook, Teams, and Word, running inside the Microsoft cloud where the data already lives. The practical distinction is where the content ends up: Copilot keeps it within Microsoft's boundary, while MCP hands tool-call results back out to an external client and its model. That hand-off — the moment Microsoft 365 returns content to the outside agent — is precisely where Strac Microsoft 365 MCP DLP inspects the payload and redacts sensitive data before it leaves the tenant.
Is the Microsoft 365 MCP server safe to use with sensitive data?
By itself, no — not without an additional DLP layer. The Microsoft 365 MCP server honors the authorizing user's permissions but returns whatever that user can see, including PII, PHI, credentials, source code, and other regulated content. For enterprise use with regulated data, you need an MCP-layer DLP control like Strac Microsoft 365 MCP DLP that inspects and redacts every tool response before content reaches the AI model.
How is Strac Microsoft 365 MCP DLP different from Microsoft 365's built-in protections?
Microsoft 365's built-in protections operate at the storage and policy layer — sensitivity labels, retention policies, native DLP rules at posting/sharing time. None of those sit in the MCP tool-call path by default. Strac is purpose-built for the MCP layer: it inspects every tool response before content reaches the AI agent's context window, with detection breadth (PII / PHI / PCI / secrets / source code / OCR-in-images) that goes well beyond most native rule engines.
Does Strac Microsoft 365 MCP DLP work with Claude, Cursor, ChatGPT, Cowork, and custom agents?
Yes. Strac exposes a standard MCP endpoint, so any MCP-aware AI client routes tool calls through it with one configuration change. No SDK changes, no application code changes.
What sensitive data types does Strac detect in Microsoft 365 MCP tool responses?
PII (SSN, driver's license, passport, address, phone, email), PHI (clinical notes, MRN co-occurrence, ICD-10 codes adjacent to identifiers, lab values), PCI (full and partial card numbers via Luhn check), credentials (API keys, AWS / GCP / Azure access keys, OAuth tokens, JWTs, SSH keys, private keys — 48+ patterns), proprietary content (M&A keywords, source code fingerprints), and custom detectors trained on your internal data classifications. Detection runs across text, files, images (OCR), and structured fields.
How long does Strac Microsoft 365 MCP DLP take to deploy?
Under 10 minutes for the first workspace. OAuth Strac into Microsoft 365, paste the Strac MCP endpoint into your AI client's config, pick a policy template, done. No agents to install, no Microsoft 365 re-permissioning, no application code changes.
Where does redacted data go — is it stored?
Redacted content is replaced inline in the tool response. Optionally, sensitive content can be vaulted — replaced with a short-lived retrieval link that only authorized users can resolve, so the original data is retrievable for legitimate use without ever entering the AI context. Vaulted data is stored encrypted at rest in your Strac tenant; you control retention.
Can I see what an AI agent did in my Microsoft 365 workspace?
Yes. Strac produces a per-call audit log: timestamp, AI client identity, user, tool invoked, resource accessed, data classes detected, redactions applied, vault references, disposition. The log is queryable in the Strac console and exportable to your SIEM. This is the evidence trail SOC 2, HIPAA, PCI, and GDPR auditors will ask about for AI-agent activity in Microsoft 365.
The Bottom Line
The Microsoft 365 MCP server is rapidly becoming the way AI agents read into Microsoft 365. That surface contains every category of regulated and proprietary data your organization has. Running Microsoft 365 MCP in 2026 without an MCP-layer DLP control is not a question of if the first incident reaches your security team; it's when.
Strac Microsoft 365 MCP DLP gives you the protection layer, the audit evidence, and the framework-agnostic compliance coverage so you can let your team use Microsoft 365 with Claude, Cursor, Cowork, ChatGPT, and any future AI client without making each one a separate security exception.
If you are running — or about to run — Microsoft 365 MCP in production, book a 30-minute demo. We'll walk through the architecture, the policy templates, and a deployment plan for your specific Microsoft 365 workspace and AI clients.
The Microsoft 365 MCP server is a Model Context Protocol implementation that lets AI agents (Claude, Cursor, ChatGPT, Perplexity, custom agents) read and act inside Microsoft 365 via standardized tool calls. It's how an AI assistant gets contextual access to Outlook mail, OneDrive files, SharePoint sites and documents, and Teams channels.
Is the Microsoft 365 MCP connector the same as the Microsoft 365 MCP server?
Yes. "Server" and "connector" describe the same component here. The Model Context Protocol uses server; Claude's Connectors directory calls it the Microsoft 365 connector. It spans the same Outlook, Teams, and Office surfaces under either name, and Strac's Microsoft 365 MCP connector protects regulated data across the tenant on every call.
Microsoft 365 MCP vs Microsoft 365 Copilot — what's the difference?
They sit on opposite sides of the tenant boundary. The Microsoft 365 MCP server is the doorway external agents — Claude, Cursor, Cowork, ChatGPT — use to reach into Microsoft 365 over the Model Context Protocol and act on your behalf. Microsoft 365 Copilot is Microsoft's own AI, baked into Outlook, Teams, and Word, running inside the Microsoft cloud where the data already lives. The practical distinction is where the content ends up: Copilot keeps it within Microsoft's boundary, while MCP hands tool-call results back out to an external client and its model. That hand-off — the moment Microsoft 365 returns content to the outside agent — is precisely where Strac Microsoft 365 MCP DLP inspects the payload and redacts sensitive data before it leaves the tenant.
Is the Microsoft 365 MCP server safe to use with sensitive data?
By itself, no — not without an additional DLP layer. The Microsoft 365 MCP server honors the authorizing user's permissions but returns whatever that user can see, including PII, PHI, credentials, source code, and other regulated content. For enterprise use with regulated data, you need an MCP-layer DLP control like Strac Microsoft 365 MCP DLP that inspects and redacts every tool response before content reaches the AI model.
How is Strac Microsoft 365 MCP DLP different from Microsoft 365's built-in protections?
Microsoft 365's built-in protections operate at the storage and policy layer — sensitivity labels, retention policies, native DLP rules at posting/sharing time. None of those sit in the MCP tool-call path by default. Strac is purpose-built for the MCP layer: it inspects every tool response before content reaches the AI agent's context window, with detection breadth (PII / PHI / PCI / secrets / source code / OCR-in-images) that goes well beyond most native rule engines.
Discover & Protect Data on SaaS, Cloud, Generative AI
Strac provides end-to-end data loss prevention for all SaaS and Cloud apps. Integrate in under 10 minutes and experience the benefits of live DLP scanning, live redaction, and a fortified SaaS environment.