Connector guide6-minute read19 MCP tools7 languages

How to Connect Outlook (Microsoft 365 Mail and Calendar) to Claude — via MCP

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Outlook (Microsoft 365 Mail and Calendar)

Outlook (Microsoft 365 Mail and Calendar)

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

tools

19

Region

INTL

Category

Email

Authentication

OAuth 2.0

Required env vars

MICROSOFT_CLIENT_IDMICROSOFT_CLIENT_SECRETMICROSOFT_TENANT_ID
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Outlook (Microsoft 365 Mail and Calendar) in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.

Summary

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Try asking

Example prompts for Outlook (Microsoft 365 Mail and Calendar)

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Outlook (Microsoft 365 Mail and Calendar) · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Outlook (Microsoft 365 Mail and Calendar), paste your credentials, mint an MCP API key — done. No Docker, no git clone, no local server.

Outlook (Microsoft 365 Mail and Calendar) + Claude

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_TENANT_ID

Step 1 — Get credentials

  1. Open the Microsoft Entra admin center (entra.microsoft.com) or the Azure portal and go to Applications → App registrations → New registration.

  2. Name the app (for example "AnythingMCP Outlook") and choose the Supported account types. The choice decides what goes into MICROSOFT_TENANT_ID:

    • Accounts in this organizational directory only (single tenant): only users of your organisation can sign in. Use the Directory (tenant) ID from the app's Overview page (a GUID) or your domain, such as contoso.onmicrosoft.com.
    • Accounts in any organizational directory (multi-tenant): use organizations.
    • Accounts in any organizational directory and personal Microsoft accounts: use common (work, school and Outlook.com accounts) or consumers (Outlook.com only).

    If the value does not match the account type, Microsoft refuses the sign-in (AADSTS50194 or AADSTS50020).

  3. Under Redirect URI, pick the platform Web and enter https://cloud.anythingmcp.com/api/mcp-oauth/callback. If you host AnythingMCP yourself, enter https://your-anythingmcp-host/api/mcp-oauth/callback instead. The URI must match character for character, otherwise Microsoft answers AADSTS50011.

  4. Open API permissions → Add a permission → Microsoft Graph → Delegated permissions and add offline_access, User.Read, Mail.ReadWrite, Mail.Send and Calendars.ReadWrite. Do not add them as Application permissions: application permissions would give the app access to every mailbox in your tenant without anyone signing in. The connector does not need them, it works as the user who signs in. offline_access is what makes Microsoft issue a refresh token; without it the connector stops an hour after you authorize it.

  5. Open Certificates & secrets → New client secret. Copy the secret Value, not the Secret ID; it is shown only once. Note the expiry date: when the secret expires, the connector stops working until you create a new one and paste it in.

  6. Paste the Application (client) ID from the Overview page into MICROSOFT_CLIENT_ID, the secret value into MICROSOFT_CLIENT_SECRET and the tenant value from step 2 into MICROSOFT_TENANT_ID, then install the connector.

  7. On the connector page, click Authorize with Provider and sign in with the mailbox the AI should work with. The refresh token is stored encrypted, and access tokens (valid for about an hour) are renewed automatically.

  8. Start with outlook_get_me: it shows which mailbox the connector is signed in to.

Admin consent: these delegated permissions normally do not need an administrator, but many organisations turn off user consent. If the sign-in shows "Need admin approval" (AADSTS65001 or AADSTS90094), a tenant administrator (for example a Global Administrator or Cloud Application Administrator) opens the app registration once and clicks API permissions → Grant admin consent for the organisation. After that every user can authorize. A connector authorized by an administrator still reads only the administrator's own mailbox: each connector works for the account that signed in.

Read-only setup: replace the scopes in the connector's OAuth settings with offline_access User.Read Mail.Read Calendars.Read, authorize again and disable the tools that send or write.

Common errors: 401 InvalidAuthenticationToken means the authorization was revoked or the client secret expired; paste a new secret if needed and click Authorize with Provider again. 403 ErrorAccessDenied means a permission from step 4 is missing or was not consented. MailboxNotEnabledForRESTAPI means the account has no Exchange Online mailbox (for example an on-premises mailbox or a user without a licence). outlook_get_free_busy does not work with personal Outlook.com accounts.

The connector does not delete mail or events and does not handle attachments, contacts, mailbox rules or other users' and shared mailboxes.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Claude

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Recommended path — works on claude.ai web without editing any config file.

  1. In Claude, open Customize → Connectors.
  2. Click +, then Add custom connector.
  3. Enter a name, e.g. Outlook (Microsoft 365 Mail and Calendar), and the remote MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Add.
  4. Click Connect and sign in to AnythingMCP (OAuth) to allow access.

All tools below appear in your chat — start typing prompts.

Available tools

ToolWhat it does
outlook_get_meReturn the signed-in Microsoft 365 or Outlook.com user: id, display name, email address (mail) and user principal name
outlook_list_mail_foldersList the top-level mail folders of the mailbox (Inbox, Sent Items, Drafts, Archive and the user's own folders) with id, displayName…
outlook_list_child_foldersList the subfolders of one mail folder, with the same fields as outlook_list_mail_folders
outlook_list_messagesList the messages of one mail folder, newest first unless orderby says otherwise
outlook_search_messagesSearch or filter messages across the whole mailbox, all folders included (Deleted Items too)
outlook_get_messageGet one message in full: subject, sender, all recipients, dates, flags, conversationId, internetMessageId, attachments flag and the body as…
outlook_create_draftCreate a draft message in the Drafts folder without sending it
outlook_send_draftSend an existing draft (from outlook_create_draft or one written in Outlook)
outlook_send_mailCompose and send a new email in one step, from the signed-in mailbox
outlook_reply_to_messageReply to the sender of a message (or to its Reply-To addresses) and send the reply at once, quoting the original below the comment
outlook_reply_all_to_messageReply to the sender and every other recipient of a message and send the reply at once, quoting the original below the comment
outlook_move_messageMove a message to another mail folder (for example to archive it or file it in a project folder)
outlook_list_calendarsList the user's calendars with id, name, color, owner, whether it is the default calendar and whether the user can edit it
outlook_list_eventsList the events of the default calendar that fall within a time range, with recurring meetings expanded into their single occurrences
outlook_list_calendar_eventsList the events of one specific calendar (a shared, secondary or team calendar) within a time range, with recurring meetings expanded
outlook_get_eventGet one calendar event in full: subject, body (HTML), start and end, location, organizer, attendees with their responses, recurrence…
outlook_create_eventCreate an event in the user's default calendar
outlook_update_eventChange an existing event: only the fields given are changed, the others stay as they are
outlook_get_free_busyGet free/busy availability of up to several people, rooms or distribution lists in the same organisation for a time window, to find a slot…

FAQ

Does it work with Claude Code as well as Claude Desktop? Yes — point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.

Next steps

Was this guide helpful?

Your Outlook agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Outlook (Microsoft 365 Mail and Calendar) to ChatGPT — via MCP

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Connectors

How to Connect Outlook (Microsoft 365 Mail and Calendar) to Cursor — via MCP

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Connectors

How to Connect Outlook (Microsoft 365 Mail and Calendar) to Gemini — via MCP

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Connectors

How to Connect Outlook (Microsoft 365 Mail and Calendar) to Meta Muse — via MCP

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Connectors

Outlook (Microsoft 365 Mail and Calendar) to MCP — Drive Outlook from any AI Agent

Let your AI work in Outlook: search and read email, file messages in folders, draft, send and reply, check the calendar, create and move meetings, and find free time with colleagues. Microsoft 365 and Outlook.com through Microsoft Graph, signed in with your Microsoft account.

Connectors

How to Connect Apify to Claude — via MCP

Find and run Apify's ready-made scrapers for search engines, maps, social media and online shops, and pull their results into Claude, ChatGPT or Copilot through Apify's official MCP server.