<!-- https://widemoat.ai/open-source/microsoft-365 -->

# The Microsoft 365 connector for AI agents.

> Free and open source. Your agent works in Outlook, Teams and OneDrive as you, and spends as few tokens as possible doing it.

- [Get it on GitHub](https://github.com/Wide-Moat/microsoft-365-mcp)
- [Setup guide](https://github.com/Wide-Moat/microsoft-365-mcp/blob/main/docs/setup/README.md)

- Free
- Apache-2.0
- Runs in your network

Works with these Microsoft 365 products.

- Outlook mail
- Calendar
- Teams
- OneDrive
- SharePoint
- Excel
- To Do
- Planner
- OneNote

## Ask in plain words. It does the rest.

- Connect Microsoft 365 once, with your own work account.
- What is in my inbox today?
- Find an hour next week when Nick and I are both free.
- Draft a note to Nick confirming the meeting. Don’t send it.

## We tried the others first.

We tested the Microsoft 365 servers for AI agents. They copy Microsoft’s API: hundreds of tools, raw data, and a context window full before the agent starts. So we built our own, on two rules: the smallest context, and tools that do the work instead of handing it to the model.

## One question, one answer.

“Find an hour with Nick next week and invite him.”

**A copy of the API:** Find Nick’s address, read two calendars, work out the free time, create the meeting, add Nick. Five steps, five piles of raw data.

**This connector:** It finds Nick, reads both calendars and answers with the free hours. One more request books the meeting.

- **Small context** — The whole connector costs the agent about 14,800 tokens.
- **Does the work** — Finds people by name, expands recurring meetings, cleans up email, moves files without passing them through the model.
- **Safe by default** — Sends only after you confirm. At most 20 recipients. Nothing is deleted for good. Other people’s text is treated as data.

## Compared with Microsoft’s own servers

Microsoft’s servers are hosted by Microsoft and priced with Copilot. This one runs in your network and is free.

| | This connector | Work IQ MCP | Microsoft MCP Server for Enterprise |
| --- | --- | --- | --- |
| Runs | In your network | Microsoft-hosted | Microsoft-hosted |
| Cost | Free | Copilot Credits | No extra cost |
| Can send and change | Yes, each with its own safeguard | Blocked until an admin allows it | No, read-only |
| Built for | A person’s mail, calendar, files and Teams | All Microsoft 365 data and Copilot | The company directory |

Sources and the full comparison are in the README on GitHub.

## Start in three steps

1. **[Register the app in Microsoft Entra.](https://github.com/Wide-Moat/microsoft-365-mcp/blob/main/docs/setup/1-entra-app.md)** — Ten minutes for a Microsoft 365 administrator.
2. **[Run the connector.](https://github.com/Wide-Moat/microsoft-365-mcp/blob/main/docs/setup/3-run-the-server.md)** — One container.
3. **[Connect it to your AI gateway.](https://github.com/Wide-Moat/microsoft-365-mcp/blob/main/docs/setup/4-connect-a-gateway.md)** — LiteLLM example included.

[Full setup guide](https://github.com/Wide-Moat/microsoft-365-mcp/blob/main/docs/setup/README.md)

## Questions

- **Is it really free?** — Yes. Apache-2.0: use it, change it, run it commercially.
- **Does our data leave our network?** — The connector runs on your servers and talks only to Microsoft. It stores no tokens and no content.
- **Can the agent send email on its own?** — It writes a draft. It sends only after the person confirms, to at most 20 recipients.
- **What can it reach?** — Only what the signed-in person can see in Microsoft 365. It never opens another person’s mailbox.
- **Which permissions does it need?** — The list is in the setup guide. An administrator grants them once for the organisation.
- **Is it made by Microsoft?** — No. Wide Moat builds it. It is not affiliated with or endorsed by Microsoft.

## One part of a platform.

Wide Moat runs AI inside your company: chat, coding workspaces, a model gateway with a key for each person, and connectors like this one.

Microsoft 365, Outlook, Teams, OneDrive, SharePoint, Excel, OneNote, Planner and To Do are trademarks of the Microsoft group of companies. This connector is not affiliated with or endorsed by Microsoft.
