Skip to content
Microsoft Office 365 logoMicrosoft Office 365 logo

Microsoft Office 365 Integrations

Email

Build Microsoft Office 365 automations with your AI agent. Run them on Zapier.

Add Zapier to Claude, ChatGPT, Cursor, or another AI agent, and your agent can build automations across Microsoft Office 365 and 10,000+ other apps.
apps to connect
10,000+
ways to start a workflow
9
available app actions
32
  • Dependable AI workflows
  • Full audit trails and controls
  • Easy visual workflow manager
  • Free tier available
  • SOC 2 Type II, SOC 3, GDPR, and CCPA compliant

Top teams trust Zapier to automate work

  • Samsung
  • Okta
  • Mastercard
  • Nvidia
  • Airbnb

Microsoft Office 365 MCP server: connect Microsoft Office 365 to your AI agent with Zapier

Install Zapier once, then tell your agent what you want done. Behind the scenes, Zapier MCP finds the right triggers and actions to use with Microsoft Office 365 and runs them—all with your credentials managed by Zapier and kept out of the model.

Paste into any AI tool
Connect to Zapier MCP at https://mcp.zapier.com/api/v1/connect and help me sign in to Zapier or sign up. Then connect my Microsoft Office 365 account and help me build a Zap with Microsoft Office 365: ask me what I want to automate. Read the setup steps at https://zapier.com/AGENTS.md if you can't connect.

Paste this prompt into Claude, ChatGPT, Cursor, or your preferred AI agent to build Microsoft Office 365 automations.

MCP server · Streamable HTTP
https://mcp.zapier.com/api/v1/connect

Install this server in Claude, ChatGPT, Cursor, VS Code, or any MCP client. You sign in once with OAuth.

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection office-365

Call any app action from TypeScript. Zapier handles OAuth, token refresh, retries, and rate limits.

Terminal · no project
npx @zapier/install-zapier

Run this command to print setup instructions for your client, then follow the prompts to sign in.

Ask your AI agent to do it

Tell Claude, ChatGPT, or your go-to AI agent to install Zapier MCP, and it’ll get you started with Zapier.

Wire it into your own code

Connect your agent to Microsoft Office 365 and 10,000+ more apps with the TypeScript SDK. Zapier handles OAuth and token refresh.

Set it up from your terminal

Tell your coding agent to run one command. It installs Zapier MCP so your agent can use Microsoft Office 365 and other apps.

Use a premade Microsoft Office 365 automation template to start building from anywhere: in your go-to agent interface, in code, or in Zapier.

With Zapier MCP installed, your AI agent can build automations across 10,000+ apps and 90,000+ triggers and actions. Automations run reliably on Zapier from an app event, on a schedule (cron), or from a webhook. Here are the Microsoft Office 365 triggers and actions your agent can build with right away.

  • Calendar Event Start

    Triggers at a specified time before an event in your calendar starts.

  • New Attachment

    Triggers when there is a new attachment.

  • New Calendar Event

    Triggers when a new event is created in your calendar.

  • New Contact

    Triggers when a new contact is added to your account

  • New Email

    Triggers when a new e-mail is received in your inbox.

  • New Email Matching Search

    Triggers when a new e-mail is received in your inbox that matches a search.

  • New Flagged Email

    Triggers when a new email is flagged.

  • New Message in Folder

    Triggers when a new new message in folder is created.

Your agent picks the right Microsoft Office 365 action from what you ask. Connect Zapier once and it can use 40 Microsoft Office 365 tools, each with typed inputs. Zapier handles Microsoft Office 365’s login, so you never paste an API key. The same actions run from TypeScript through the Zapier SDK.

Set up Microsoft Office 365 MCP in Claude, Claude Code, ChatGPT, Cursor, and Codex

Zapier MCP works with any MCP client that supports Streamable HTTP. Connect or add Zapier in your AI tool, sign in when prompted, then ask for Microsoft Office 365.

MCP server · Streamable HTTP · OAuth
https://mcp.zapier.com/api/v1/connect
  • Claude

    Connect Zapier in Claude and sign in when prompted. Claude setup guide

  • Claude Code

    Install Zapier MCP in Claude Code, then sign in from the terminal. Claude Code setup guide

  • ChatGPT

    Connect Zapier in ChatGPT and approve the sign-in. ChatGPT setup guide

  • Cursormcp.json

    Add Zapier to Cursor and sign in. Cursor setup guide

  • Codex

    Add Zapier to Codex and sign in. Codex setup guide

  • VS Code and other clientsmcp.json

    Add Zapier to any MCP client that supports Streamable HTTP.

  • OpenCodeopencode.json

    Add Zapier to OpenCode.

  • Terminal auto-installer

    Install Zapier MCP in whichever client you have.

How your agent gets these tools

  1. Connect Zapier to your AI tool (pick yours above) and sign in once in the browser. Zapier sets up your MCP server, with no token to paste.
  2. Ask your agent to connect Microsoft Office 365. It calls discover_zapier_actions to find the Microsoft Office 365 actions, then enable_zapier_action to add them.
  3. Approve the Microsoft Office 365 sign-in when prompted. If Microsoft Office 365 isn’t connected yet, the first call returns a sign-in link.
  4. Ask for what you want done in plain language. Each enabled action becomes its own tool, named as below. Until then, execute_zapier_read_action and execute_zapier_write_action run it.

Use Microsoft Office 365 in 36 AI tools with Zapier MCP

40 Microsoft Office 365 MCP tools

ToolMCP nameWhat it does
Calendar Event Startmicrosoft_office_365_calendar_event_start

Trigger · Read-only. Triggers at a specified time before an event in your calendar starts.

Required: time_length (Time Before), time_unit (Time Before (Unit))

Optional: calendarId (Calendar)

New Attachmentmicrosoft_office_365_new_attachment

Trigger · Read-only. Triggers when there is a new attachment.

Required: parentFolder (Parent Folder)

Optional: inbox (Shared Inbox), childFolder (Child Folder)

New Calendar Eventmicrosoft_office_365_new_calendar_event

Trigger · Read-only. Triggers when a new event is created in your calendar.

Optional: calendarId (Calendar)

New Contactmicrosoft_office_365_new_contact

Trigger · Read-only. Triggers when a new contact is added to your account

Optional: contactFolderId (Contact Folder)

New Emailmicrosoft_office_365_new_email

Trigger · Read-only. Triggers when a new e-mail is received in your inbox.

Optional: inbox (Shared Inbox)

New Email Matching Searchmicrosoft_office_365_new_email_matching_search

Trigger · Read-only. Triggers when a new e-mail is received in your inbox that matches a search.

Required: search (Search terms)

Optional: parentFolder (Parent Folder), childFolder (Child Folder)

New Flagged Emailmicrosoft_office_365_new_flagged_email

Trigger · Read-only. Triggers when a new email is flagged.

New Message in Foldermicrosoft_office_365_new_message_in_folder

Trigger · Read-only. Triggers when a new new message in folder is created.

Optional: parentFolder (Parent Folder), childFolder (Child Folder)

Updated Calendar Eventmicrosoft_office_365_updated_calendar_event

Trigger · Read-only. Triggers when an event is updated.

Optional: calendarId (Calendar)

Bulk Find Emailsmicrosoft_office_365_bulk_find_emails

Search · Read-only. Finds up to 1,000 email summaries in one request.

Optional: folderId (Folder), searchTerms (Search terms), fromAddress (From address), startDate (Start date), endDate (End date)

Find Calendar Eventmicrosoft_office_365_find_calendar_event

Search · Read-only. Finds a Calendar Event in your calendar.

Required: searchTerm (Search Term)

Optional: calendarId (Calendar), startTime (Start Date & Time), endTime (End Date & Time)

Find a Contactmicrosoft_office_365_find_a_contact

Search · Read-only. Search for a contact.

Optional: contactFolderId (Contact Folder), givenName (First Name), surname (Last Name), emailAddresses (Email)

Find Emailsmicrosoft_office_365_find_emails

Search · Read-only. Finds emails based on search criteria.

Required: searchValue (Search value)

Find Emails in Specific Foldermicrosoft_office_365_find_emails_in_specific_folde

Search · Read-only. Searches for emails within a specific folder rather than across all mailboxes.

Required: folderId (Folder)

Optional: searchTerms (Search terms), fromAddress (From address), startDate (Start date), endDate (End date)

Get Attachment by IDmicrosoft_office_365_get_attachment_by_id

Search · Read-only. Retrieves a specific email attachment using its ID.

Required: messageId (Email ID), attachmentId (Attachment ID)

Optional: mailbox (Shared Mailbox)

Get Calendar Events in Date Rangemicrosoft_office_365_get_calendar_events_in_date_r

Search · Read-only. Retrieves calendar events within a specific date range for reporting and automation.

Required: startDateTime (Start date and time), endDateTime (End date and time)

Optional: calendarId (Calendar)

Get Email by IDmicrosoft_office_365_get_email_by_id

Search · Read-only. Retrieves one complete email using its ID.

Required: messageId (Email ID)

Add Attendees to Calendar Eventmicrosoft_office_365_add_attendees_to_calendar_eve

Action · Writes data. Adds attendees to a calendar event.

Required: eventId (Event), attendees

Optional: shouldMergeAttendees (Merge with existing attendees?)

Set Categories on an Emailmicrosoft_office_365_set_categories_on_an_email

Action · Writes data. Sets the categories applied to an email.

Required: messageId (Email ID), categories

Optional: isRead (Mark as Read)

Add User to Distribution Listmicrosoft_office_365_add_user_to_distribution_list

Action · Writes data. Adds a user to a distribution list or group. Only available in Microsoft 365 Business accounts that have organizational directories.

Required: groupId (Distribution List), userEmail (User Email)

Copy Emailmicrosoft_office_365_copy_email

Action · Writes data. Create a copy of an email in another folder.

Required: destinationFolderId (Destination Folder), messageId (Email ID)

Optional: sender (Shared Mailbox)

Create Eventmicrosoft_office_365_create_event

Action · Writes data. Create an event in the calendar of your choice.

Required: subject, startTime (Start Date & Time), endTime (End Date & Time)

Optional: calendarId (Calendar), isAllDay (All Day Event?), body (Description), showAs (Show me as Free or Busy), attendees, categories, location

Create Contactmicrosoft_office_365_create_contact

Action · Writes data. Creates a new contact.

Required: givenName (First Name)

Optional: contactFolderId (Contact Folder), surname (Last Name), emailAddresses, businessPhones, homePhones, mobilePhone, jobTitle, companyName, department, businessHomePage (Business Website URL), fileAs, personalNotes, businessAddress_street (Street), businessAddress_city (City), businessAddress_state (State), businessAddress_postalCode (Postal Code), businessAddress_countryOrRegion (Country or Region), homeAddress_street (Street), homeAddress_city (City), homeAddress_state (State), homeAddress_postalCode (Postal Code), homeAddress_countryOrRegion (Country or Region), otherAddress_street (Street), otherAddress_city (City), otherAddress_state (State), otherAddress_postalCode (Postal Code), otherAddress_countryOrRegion (Country or Region)

Create Draft Emailmicrosoft_office_365_create_draft_email

Action · Writes data. Creates a draft of an email that can then be reviewed and sent out.

Required: recipients (To Email(s)), subject, bodyFormat (Body Format), body

Optional: sender (Shared Mailbox), ccRecipients (CC Email(s)), bccRecipients (BCC Email(s)), file (Attachment), skipLargeFiles (Action for Files Larger Than 150MB)

Create Draft Replymicrosoft_office_365_create_draft_reply

Action · Writes data. Creates a draft reply for an email.

Required: emailId (Email ID)

Optional: sender (Shared Mailbox), recipients (To Email(s)), ccRecipients (CC Email(s)), bccRecipients (BCC Email(s)), replyTo (Reply-To Email), subject, bodyFormat (Body Format), body, file (Attachment), skipLargeFiles (Action for Files Larger Than 150MB), replyToAll (Reply to All)

Create Foldermicrosoft_office_365_create_folder

Action · Writes data. Create a new mail folder.

Required: displayName (Folder Name)

Optional: sender (Shared Mailbox), parentFolderId (Parent Folder)

Delete Contactmicrosoft_office_365_delete_contact

Action · Writes data. Deletes an existing contact.

Required: contact_id (Contact to Delete)

Delete Emailmicrosoft_office_365_delete_email

Action · Writes data. Delete an email from a shared or own mailbox.

Required: messageId (Email ID)

Optional: mailbox (Shared Mailbox)

Delete Eventmicrosoft_office_365_delete_event

Action · Writes data. Deletes an existing event.

Required: event_id (Event)

Flag / Unflag Emailmicrosoft_office_365_flag_unflag_email

Action · Writes data. Update the follow-up flag on an email.

Required: messageId (Email ID), action (Flag Action)

Optional: mailbox (Shared Mailbox)

Forward Emailmicrosoft_office_365_forward_email

Action · Writes data. Forwards an existing email to new recipients.

Required: messageId (Email ID), toRecipients (To Email(s))

Optional: sender (Send From (Shared Mailbox)), comment

Mark Email as Read/Unreadmicrosoft_office_365_mark_email_as_read_unread

Action · Writes data. Update the read status of an email.

Required: messageId (Email ID), status (Mark as)

Optional: mailbox (Shared Mailbox)

Move Email to Foldermicrosoft_office_365_move_email_to_folder

Action · Writes data. Move an email to a specific folder.

Required: messageId (Email ID), destinationFolderId (Destination Folder)

Remove Categories From Emailmicrosoft_office_365_remove_categories_from_email

Action · Writes data. Remove one or more categories from an email.

Required: categoriesToRemove (Categories to Remove), messageId (Email ID)

Optional: mailbox (Shared Mailbox)

Reply to Emailmicrosoft_office_365_reply_to_email

Action · Writes data. Creates a new reply to a provided email ID.

Required: email_id (Email ID)

Optional: comment

Send Draft Emailmicrosoft_office_365_send_draft_email

Action · Writes data. Send a draft email that was previously created.

Required: draftEmailId (Draft Email ID)

Optional: sender (Send From (Shared Mailbox))

Send Emailmicrosoft_office_365_send_email

Action · Writes data. Send an email from your Office 365 account.

Required: recipients (To Email(s)), subject, bodyFormat (Body Format), body

Optional: sender (Send From (Shared Mailbox)), ccRecipients (CC Email(s)), bccRecipients (BCC Email(s)), file (Attachments), skipLargeFiles (Action for Files Larger Than 150MB)

Set Email Importancemicrosoft_office_365_set_email_importance

Action · Writes data. Update an email's importance level.

Required: messageId (Email ID), importance

Optional: mailbox (Shared Mailbox)

Update Calendar Eventmicrosoft_office_365_update_calendar_event

Action · Writes data. Updates a calendar event information.

Required: eventId (Event)

Optional: subject, startTime (Start Date & Time), endTime (End Date & Time), isAllDay (All Day Event?), isOnlineMeeting (Is Online Meeting?), hideAttendees (Hide attendees list?), body (Description), showAs (Show me as Free or Busy), importance (The importance of the event), shouldMergeAttendees (Merge with existing attendees?), attendees, categories, location

Update Contactmicrosoft_office_365_update_contact

Action · Writes data. Updates a contact.

Required: contact

Optional: contactFolderId (Contact Folder), givenName (First Name), surname (Last Name), emailAddresses, businessPhones, homePhones, mobilePhone, jobTitle, companyName, department, businessHomePage (Business Website URL), personalNotes, businessAddress_street (Street), businessAddress_city (City), businessAddress_state (State), businessAddress_postalCode (Postal Code), businessAddress_countryOrRegion (Country or Region), homeAddress_street (Street), homeAddress_city (City), homeAddress_state (State), homeAddress_postalCode (Postal Code), homeAddress_countryOrRegion (Country or Region), otherAddress_street (Street), otherAddress_city (City), otherAddress_state (State), otherAddress_postalCode (Postal Code), otherAddress_countryOrRegion (Country or Region)

Microsoft Office 365 API with the Zapier SDK, without pasting an API key

The Zapier SDK gives your code one way to call Microsoft Office 365. You connect your account once, and your code references that connection instead of a raw token.

add_attendees (Add Attendees to Calendar Event) requires eventId and attendees. Every Microsoft Office 365 action and its inputs are listed under Microsoft Office 365 triggers and actions above. Zapier handles OAuth, token refresh, retries and rate limits. Read the SDK docs

Terminal · in your project
npm install @zapier/zapier-sdk
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection office-365
TypeScript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "office-365", owner: "me" });

const { data } = await zapier.runAction({
  app: "office-365",
  actionType: "write",
  action: "add_attendees",
  connection: connection.id,
  inputs: {
    eventId: "", // Event
    attendees: "",
  },
});
Zapier SDK CLI
npx zapier-sdk run-action office-365 write add_attendees \
  --inputs '{"eventId":"","attendees":""}'

Frequently asked questions about automating with Microsoft Office 365

How do I connect Microsoft Office 365 to Claude?

Connect Zapier in Claude, sign in to Zapier, then ask Claude to connect Microsoft Office 365. Claude finds the Microsoft Office 365 actions and adds them. If Microsoft Office 365 needs a sign-in, you approve it once.

Can I use the Microsoft Office 365 API without managing API keys?

With the Zapier SDK you connect your Microsoft Office 365 account to Zapier once, and your code runs actions through that connection. Zapier handles Microsoft Office 365’s login, so you never paste an API key into your code.

What can an AI agent do with Microsoft Office 365?

Through Zapier MCP, your agent can use 40 Microsoft Office 365 tools, such as Calendar Event Start, New Attachment, and New Calendar Event. 17 tools only read data, so you can start with those before you let your agent make changes.

My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

Point your AI agent to this page’s markdown file to build Microsoft Office 365 automations. It covers how Microsoft Office 365 connects, every trigger and action with its inputs, and how to run them with Zapier MCP, the SDK, or the CLI. To start from a ready-made Zap instead, have it search zapier.sh.

About Microsoft Office 365

Microsoft Office 365 Business is a complete office suite in the cloud. It provides all the standard office products like Excel, Outlook, Word, SharePoint and more, but available from any internet enabled computer! Zapier does not currently support Outlook.com addresses or Home 365 accounts, only business or Enterprise.

Related categories: Email, Microsoft