MCP servers · Microsoft 365 · MCP server
Connect Codex CLI to Microsoft 365
One line gives Codex CLI your Microsoft 365 account as tools: 20 endpoints, mail, events, teams, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.
Three steps
- Create a free 0n3 account and connect Microsoft 365. Paste a key or sign in; it lands in your vault, encrypted.
- Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
- Ask Codex CLI: whoami. Then: "Send a mail in Microsoft 365".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"
Add it to your shell profile so Codex finds it next time.
The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.
What Codex CLI can then do in Microsoft 365
Mail · Send and manage Outlook email1
Send a mail
POST /me/sendMailEvents · Manage Outlook calendar events4
List events
GET /me/eventsCreate an event
POST /me/eventsUpdate an event
PATCH /me/events/{eventId}Delete an event
DELETE /me/events/{eventId}Teams · Send Teams messages and list channels3
List teams
GET /me/joinedTeamsList channels
GET /teams/{teamId}/channelsSend a channel message
POST /teams/{teamId}/channels/{channelId}/messagesUsers · View organization users1
Get an user
GET /meFiles · OneDrive and SharePoint files, including items shared by link from another user's drive0
OneDrive and SharePoint files, including items shared by link from another user's drive
More · Everything else this app exposes.11
List messages
GET /me/messagesGet a message
GET /me/messages/{messageId}Delete a message
DELETE /me/messages/{messageId}List drive items
GET /me/drive/root/childrenGet a drive item
GET /me/drive/items/{itemId}Search drive
GET /me/drive/root/search(q='{query}')Resolve share
GET /shares/{encodedUrl}/driveItemList shared with me
GET /me/drive/sharedWithMeGet an item content
GET /drives/{driveId}/items/{itemId}/contentGet a site
GET /sites/{hostname}:/sites/{sitePath}List site items
GET /sites/{siteId}/drive/root/childrenMicrosoft 365 in other AI clients
Claude Code + Microsoft 365MCP server + skillClaude (desktop & claude.ai) + Microsoft 365connectorChatGPT + Microsoft 365connector · GPT actionGemini CLI + Microsoft 365MCP serverCursor + Microsoft 365MCP serverVS Code (Copilot) + Microsoft 365MCP serverWindsurf + Microsoft 365MCP server
