Skip to content

Microsoft 365 MCP and API

Microsoft 365 exposes mail, calendars, files and other account data through Microsoft Graph. An agent can read mailbox messages, update read status and create calendar events. Connect your Microsoft 365 account once with OAuth in Longwave; agents act only on that account.

Add to Longwave

Add Microsoft 365 to your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

functions
8
access
Connect account

Use Microsoft 365 on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Connect your Microsoft 365 account once. Agents then act on that account, and only that account.
  3. Ask for the result in any thread, for example: “Summarize messages in a work mailbox”. The agent picks the Microsoft 365 function and calls it.

Use Microsoft 365 in Claude Code, Codex, Cursor or ChatGPT

Add the Longwave MCP server once. It carries 2,593 functions across 103 tools, including Microsoft 365, and asks you to sign in on first use.

Why call Microsoft 365 through Longwave

  • One sign-in to Microsoft 365, shared by every harness and device you use.
  • One MCP server for 103 tools, so your agent setup does not grow a key and a server per vendor.
  • Spending limits per key and per account, checked before a paid call is made.
  • Each call is recorded with the provider, the cost and the result, and can be read again from another device.

Microsoft 365 functions

Functions 5

Function Price
microsoft-graph.mail-folders.list microsoft-graph.mail-folders.list
See vendor pricing
microsoft-graph.folder-messages.list microsoft-graph.folder-messages.list
See vendor pricing
microsoft-graph.messages.get microsoft-graph.messages.get
See vendor pricing
microsoft-graph.messages.reply microsoft-graph.messages.reply
See vendor pricing
microsoft-graph.mail.send microsoft-graph.mail.send
See vendor pricing

Microsoft 3

Every function here: Included within the connected account's API quota or product plan; no separate per-call fee published. Included within the connected account's API quota or product plan; no separate per-call fee published.

Function
List Microsoft mailbox messages Read one bounded page of messages from the connected Microsoft mailbox. microsoft-graph.messages.list
Set Microsoft message read status Mark one message as read or unread in the connected Microsoft mailbox. microsoft-graph.messages.set-read
Create a Microsoft calendar event Create one timed event without attendees in the connected account’s default calendar. microsoft-graph.events.create

Prices are Microsoft 365's published rates. Source: Microsoft 365 pricing.

Use cases

Questions people ask

What is the Microsoft Graph API endpoint?

The Microsoft Graph REST endpoint starts with https://graph.microsoft.com. The v1.0 path provides generally available APIs; beta contains preview APIs. Microsoft 365 documentation

How does Microsoft Graph return more message results?

A response can include an @odata.nextLink URL for the next page. Use that URL to continue the collection. Microsoft 365 documentation

How does Longwave access my Microsoft 365 account?

You sign in to Microsoft 365 once and approve the permissions the functions need. Longwave stores the token encrypted and uses it only for calls you or your agents make. Disconnect it at any time in settings.

How do I use Microsoft 365 in Claude Code?

Add the Longwave MCP server once with claude mcp add --transport http longwave https://api.longwave.run/v1/mcp/tasks, sign in, and ask for what you need. Claude finds the right Microsoft 365 function and calls it.

Use Microsoft 365 in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave