msgraph-mcp
A Microsoft Graph MCP server that acts as the signed-in user to manage Outlook mail/calendar and read Teams history.
Check identity with
whoami.Read, search, paginate, and download attachments from mail, including shared/delegated mailboxes.
Send, draft, reply, forward, update, delete, move, archive, flag, and batch-process messages.
Manage mail folders and inbox rules.
List calendars and events, create/update/delete/cancel events, respond to invites, and suggest meeting times.
Read-only access to Teams chats, joined teams, channels, channel messages, replies, and hosted content downloads.
Use trimmed responses, optional raw Graph payloads, full bodies, snippets, and pagination controls.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@msgraph-mcp What's my schedule for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MSGraph MCP
A Model Context Protocol (MCP) server for Microsoft Graph. It exposes Microsoft Outlook mail and calendar, plus read-only Microsoft Teams message history, to AI agents. It acts as the signed-in user, using delegated permissions and MSAL device code flow, so it can only reach what that user can reach.
It's a single Go binary with no runtime to install, small enough that running one copy per agent session is cheap (see Memory below).
Install
You need an Entra (Azure AD) app registration. It takes about ten minutes and may need an administrator, so do that first: see the Entra setup section below.
Download the archive for your platform from the latest release, unpack it, and put msgraph-mcp somewhere on your PATH. Or build it with Go 1.26 or later:
go install github.com/timfurlong/msgraph-mcp@latestOn macOS, a downloaded binary isn't signed, so Gatekeeper may refuse to run it. Clear the quarantine flag once, or use go install, which builds locally and isn't affected:
xattr -d com.apple.quarantine /path/to/msgraph-mcpThe release also carries msgraph-mcp.mcpb, an MCP bundle that Claude Desktop installs directly (it asks for the client and tenant IDs).
The Python version
Versions up to 0.5.4 were Python, published on PyPI as msgraph-mcp-server. 0.5.4 is the last Python release and stays installable there; new versions ship only as this Go binary. The tools, their arguments and their output are the same, so switching is a change of command plus the one-line login difference below.
Related MCP server: graphdo-ts
Setup
1. Set your Entra app credentials. Put them in ~/.msgraph-mcp/.env, which every launch reads, so MCP host configs don't need to carry them:
mkdir -p ~/.msgraph-mcp && chmod 700 ~/.msgraph-mcp
cat > ~/.msgraph-mcp/.env <<'ENV'
MSGRAPH_MCP_CLIENT_ID=<your app's client ID>
MSGRAPH_MCP_TENANT_ID=<your tenant ID>
ENV
chmod 600 ~/.msgraph-mcp/.envThe process environment and a .env in the working directory also work, and win over ~/.msgraph-mcp/.env in that order. MSGRAPH_MCP_TOKEN_CACHE_PATH optionally overrides the token cache location.
2. Sign in once. This prints a URL and a code; visit the URL and enter the code. No client secret is involved or stored.
msgraph-mcp loginA token cache is written to ~/.msgraph-mcp/token_cache.bin. A cache written by the Python version works as-is, so upgrading doesn't need a new sign-in.
3. Wire the server into your MCP host.
Claude Code:
claude mcp add msgraph -s user -- msgraph-mcpAny other host, over stdio:
{
"mcpServers": {
"msgraph": {
"command": "/path/to/msgraph-mcp",
"args": []
}
}
}Entra setup
The app registration requires:
Account type: single tenant (multi-tenant works too; set
MSGRAPH_MCP_TENANT_IDtocommon,organizations, orconsumers)Redirect URI (public client):
https://login.microsoftonline.com/common/oauth2/nativeclientAllow public client flows: Yes, under Authentication → Advanced settings. Device code flow fails without it.
Delegated permissions (Microsoft Graph):
Mail:
Mail.ReadWrite,Mail.ReadWrite.Shared,Mail.SendRules:
MailboxSettings.ReadWrite(Graph requires this for themessageRulesendpoints)Calendar:
Calendars.ReadWrite,Calendars.ReadWrite.SharedIdentity:
User.ReadTeams:
Chat.Read,Team.ReadBasic.All,Channel.ReadBasic.All,ChannelMessage.Read.All
ChannelMessage.Read.All always needs tenant admin consent, and the *.Shared permissions may need it depending on your tenant.
The scope list is all-or-nothing. Sign-in requests every scope at once, so without admin consent for
ChannelMessage.Read.Allthe login fails outright and mail and calendar are unavailable too. For the same reason, adding scopes later means re-runningmsgraph-mcp login; until you do, every tool fails with the not-authenticated error, not just the ones needing the new scope.
Tools
Group | Tools |
Util |
|
Mail — read |
|
Mail — write |
|
Mail — folders |
|
Mail — actions |
|
Mail — batch |
|
Mail — rules |
|
Calendar |
|
Teams (read) |
|
Behavior shared across tools:
Trimmed responses. Results are reshaped for agents, and message and event bodies are replaced by a short
snippet. Passinclude_body=truetoget_message,list_chat_messages,list_channel_messages, orlist_message_repliesfor the full body, which for Teams is also what surfaces Adaptive Card content. Passinclude_raw=trueto any tool returning a Graph object to get Graph's JSON for that object alongside the trimmed one; thebatch_*tools return per-message status only and do not accept it.Other mailboxes. Every mail and calendar tool takes an optional
mailbox(email or user ID) to target a shared or delegated mailbox. Omit it for your own. Teams tools are read-only, cover only your own chats, and take nomailbox.Pagination. List and search tools take
limit(1-100, default 25) andpage_token, exceptlist_channel_messagesandlist_message_replies, which Graph caps at 50.list_folders,list_rules,list_attachments, andlist_calendarsreturn the whole collection and take neither. Onlist_joined_teamsandlist_channels,limitis applied after fetching because Graph rejects$topthere, so it saves tokens rather than round-trips.Batch actions. The
batch_*tools apply one action to up to 1000 messages via Graph's$batchendpoint, returning a per-message result plus a{total, succeeded, failed}summary.Downloads.
download_attachmentanddownload_hosted_contentreturn images as native MCP image blocks the agent can view. Passsave_path(a file, or an existing directory) to write bytes to disk and get back a path instead.Finding mail.
list_messagesdefaults to the inbox; passfolder_idfor another folder,unread_only=true, or a raw ODatafilterfor predicates KQL cannot express.search_messagestakes plain text or KQL and quotes it for Graph's$search, sobudget review,"weekly report"andfrom:alice subject:"report"all work as written.
Outgoing attachments are capped at 3 MB total per message; chunked upload is not supported. SharePoint-backed Teams file attachments cannot be downloaded, only inline hosted content.
Memory
MCP hosts such as Claude Code start their own copy of each stdio server per session, so the size of one copy is what adds up. Measured on 2026-11-20 on an Apple Silicon MacBook Pro with macOS footprint <pid> (cross-checked with top's MEM column), against a real mailbox:
Version | Idle, after connecting | After |
Go (this version) | 11 MB | 15 MB |
Python 0.5.4, launched with | 85 MB (74 MB Python + 11 MB | 122 MB (111 MB Python + 11 MB |
Security
The token cache holds your refresh token, which can mint access tokens for your mail, calendar, and Teams data. Treat the file as a credential. It lives at ~/.msgraph-mcp/token_cache.bin with mode 0600 inside a 0700 directory.
To revoke access, or to switch accounts, delete the cache and sign in again:
rm -f ~/.msgraph-mcp/token_cache.bin ~/.outlook-mcp/token_cache.binThe second path matters if you ever ran this server under its former name outlook-mcp: that cache is still used as a fallback when the current one is absent, so deleting only the first file leaves a working refresh token on disk. To revoke fully, also remove the app at https://account.microsoft.com or in your organization's identity portal.
Troubleshooting
Not authenticated. Run msgraph-mcp login: runmsgraph-mcp login. If it recurs immediately, a requested scope has not been consented yet; see the note under Entra setup.Missing required env var: set it in~/.msgraph-mcp/.env, a.envin the working directory, or your MCP host's env config.Graph API 403: ErrorAccessDenied: the Entra app is missing a delegated permission, or it needs admin consent. Check the list above, then re-consent and sign in again.Graph API 400: BadRequest — Syntax errorfromsearch_messages— the query is KQL, which the tool quotes and escapes for Graph. Double quotes inside it mark exact phrases ("weekly report"), a fielded form needs a value after the colon (from:alice), and operators (AND,OR,NOT) go in uppercase between terms. For predicates KQL cannot express, uselist_messageswithfilter=.The host starts the server but lists no tools: confirm it launches
msgraph-mcpover stdio and can find that binary (an absolute path avoidsPATHsurprises).
Development
See CONTRIBUTING.md.
Available Tools
50 toolsarchive_messageC
Archive a message (move it to the Archive folder).
Inputs: message_id (required), mailbox, include_raw.
batch_archive_messagesA
Archive a list of messages (bulk move to the Archive well-known folder).
Inputs: message_ids (required), mailbox.
batch_flag_messagesA
Flag a list of messages (set followup flag to 'flagged').
Inputs: message_ids (required), mailbox.
batch_mark_readB
Mark a list of messages as read.
Inputs: message_ids (required), mailbox.
batch_mark_unreadC
Mark a list of messages as unread.
Inputs: message_ids (required), mailbox.
batch_move_messagesA
Move a list of messages to the given folder.
destination accepts a folder id OR one of the well-known names that
move_message already supports ('archive', 'inbox', 'junkemail',
'deleteditems', 'sentitems', 'drafts'). Graph resolves well-known names
server-side, so we pass through without local resolution.
Spec deviation: Spec §6.3 calls for pre-resolving well-known names to folder ids. In practice Graph's /move endpoint accepts well-known names directly (this is how the existing single-message move_message already works — see src/msgraph_mcp/tools/mail_folders.py). We pass through unchanged. If a real-world test surfaces a case where Graph rejects a well-known name in $batch but accepts it in single calls, add resolution then.
Inputs: destination (required), message_ids (required), mailbox.
batch_unflag_messagesA
Unflag a list of messages (set followup flag to 'notFlagged').
Inputs: message_ids (required), mailbox.
cancel_eventC
Cancel an event and send a cancellation notice to attendees.
Inputs: event_id (required), comment, mailbox.
create_draftB
Create a draft message (not sent). Returns the trimmed draft.
Inputs: to (required), body (required), subject (required), cc, +5 more.
create_eventA
Create a calendar event.
Args: subject: Event subject. start_datetime: ISO 8601 datetime (no offset; pair with time_zone). end_datetime: ISO 8601 datetime. time_zone: IANA tz id (e.g. "America/Los_Angeles") or "UTC". Default "UTC". body, body_type: Optional body and "text"|"html". location: Optional location string. attendees: Optional list of attendee email addresses (treated as required). is_online_meeting: When True, Outlook adds a Teams meeting link. is_all_day: All-day event flag. calendar_id: Optional calendar id; default is the user's primary calendar. mailbox: Optional mailbox.
Returns: Trimmed created event.
Inputs: subject (required), end_datetime (required), start_datetime (required), body, +9 more.
create_folderA
Create a new mail folder (top-level or child).
Args: display_name: Folder name. Required, non-empty. parent_folder_id: If set, create as a child of this folder; else create at the top level. Accepts a folder id or a well-known name ('inbox', 'archive', etc.). mailbox: Optional mailbox (email or user id) for shared mailboxes. include_raw: Include the raw Graph payload.
Returns: The trimmed new folder.
Inputs: display_name (required), mailbox, include_raw, parent_folder_id.
create_ruleA
Create an inbox mail rule.
At least one condition AND one action are required. Conditions
within a rule are AND-ed by Outlook. Pass multiple values in a list
(e.g. sender_contains=["example.com", "monitor.io"]) for OR
within that condition.
Common condition args: sender_contains: Substrings to match against the sender display name or address (e.g. ["example.com"]). subject_contains: Substrings to match against the subject. body_contains: Substrings to match against the message body. body_or_subject_contains: Match either subject or body. from_addresses: Exact email addresses to match (e.g. ["noreply@example.com"]). has_attachments: True/False to require/exclude attachments.
Common action args: move_to_folder: Destination folder id (use list_folders or create_folder to get one). mark_as_read: Mark matching messages as read. delete: Move matching messages to Deleted Items. stop_processing_rules: If True, no further rules run after this one matches. Recommended for routing-to-folder rules.
Other args: sequence: Optional rule order (lower runs first). is_enabled: Whether the rule is active. Default True. mailbox: Optional mailbox for shared mailboxes. include_raw: Include the raw Graph payload.
Returns: The trimmed new rule.
Inputs: display_name (required), delete, mailbox, sequence, +11 more.
delete_eventA
Delete an event without sending a cancellation to attendees.
Inputs: event_id (required), mailbox.
delete_folderA
Delete a mail folder. Refuses to delete folders that aren't empty.
Reads the folder first and aborts if totalItemCount > 0 or
childFolderCount > 0. This is a small safety net against accidentally
nuking a folder with real messages; there is a small race window between
the read and the delete, so don't rely on this for adversarial safety.
Args: folder_id: Graph folder id. Required. mailbox: Optional mailbox (email or user id) for shared mailboxes.
Returns: {"deleted": True, "id": <folder_id>}
Inputs: folder_id (required), mailbox.
delete_messageA
Soft-delete a message (moves it to Deleted Items).
Inputs: message_id (required), mailbox.
delete_ruleA
Delete an inbox mail rule by id.
Args: rule_id: Graph rule id. Required. mailbox: Optional mailbox (email or user id) for shared mailboxes.
Returns: {"deleted": True, "id": <rule_id>}
Inputs: rule_id (required), mailbox.
download_attachmentB
Download a single attachment.
Args: save_path: Write the bytes to this file path (or into this existing directory, using the attachment's name) instead of returning content. Returns {"path", "name", "content_type", "size_bytes"}.
Returns: - Image attachments (PNG/JPEG/GIF/WebP, no save_path): metadata plus the image itself as a native MCP image block, viewable directly. - With save_path: {"path", "name", "content_type", "size_bytes"}. - Otherwise: {name, content_type, size_bytes, content_base64}.
Inputs: message_id (required), attachment_id (required), mailbox, save_path, +1 more.
download_hosted_contentA
Download one inline hosted-content item (usually an image).
Specify the message location with exactly one of:
chat_id (for a chat message), or
team_id AND channel_id (for a channel message).
Get message_id and hosted_content_id from a message's hosted_content_refs (returned by list_chat_messages / list_channel_messages / list_message_replies).
Args: message_id: Graph id of the message the content is attached to. hosted_content_id: Graph hosted-content id (from hosted_content_refs). chat_id: Chat id, if the message is in a chat. team_id: Team id, if the message is in a channel. channel_id: Channel id, if the message is in a channel. save_path: Write the bytes to this file path (or into this existing directory) instead of returning content. Returns {"path", "content_type", "size_bytes"} with no content payload. include_raw: Include the raw payload under "raw" (ignored when the result is an image block or a saved file).
Returns: - Image content (PNG/JPEG/GIF/WebP, no save_path): metadata plus the image itself as a native MCP image block, viewable directly. - With save_path: {"path": str, "content_type": str | None, "size_bytes": int}. - Otherwise: {"content_type": str | None, "size_bytes": int, "content_base64": str | None}. content_type is sniffed from the bytes (Graph does not return it on the $value endpoint); it may be None for unrecognized formats.
Inputs: message_id (required), hosted_content_id (required), chat_id, team_id, +3 more.
find_meeting_timesA
Suggest meeting times that work for the given attendees.
Args: attendees: List of attendee email addresses. duration_minutes: Meeting duration in whole minutes (e.g. 30). start_window: ISO 8601 start of the candidate window. end_window: ISO 8601 end of the candidate window. max_candidates: Cap on returned suggestions (default 20).
Returns: { "suggestions": [ {"start": {date_time, time_zone}, "end": {...}, "confidence": float, "order_hint": int}, ... ], "empty_reason": str | None, }
Inputs: attendees (required), end_window (required), start_window (required), duration_minutes (required), +3 more.
flag_messageC
Set the follow-up flag on a message.
Inputs: message_id (required), mailbox, include_raw.
forward_messageC
Forward a message to new recipients.
Inputs: to (required), message_id (required), comment, mailbox.
get_eventB
Fetch a single event by id.
Inputs: event_id (required), mailbox, include_raw, include_body.
get_messageA
Fetch a single message by id.
Args: message_id: Graph message id. mailbox: Optional mailbox. include_body: When True, the full body is returned. Default False (snippet only). include_raw: Include the raw Graph payload under "raw".
Returns: Trimmed message object.
Inputs: message_id (required), mailbox, include_raw, include_body.
get_ruleA
Get a single inbox mail rule by id.
Args: rule_id: Graph rule id. Required. mailbox: Optional mailbox (email or user id) for shared mailboxes. include_raw: Include the raw Graph payload.
Returns: Trimmed rule dict.
Inputs: rule_id (required), mailbox, include_raw.
list_attachmentsA
List attachments on a message (metadata only — no content).
Inputs: message_id (required), mailbox, include_raw.
list_calendarsB
List the user's calendars.
Inputs: mailbox, include_raw.
list_channel_messagesA
List root messages in a channel, newest first.
Replies are not included here; fetch them with list_message_replies.
Args: team_id: Graph team id. channel_id: Graph channel id (from list_channels). limit: 1-50 (Graph caps channel message pages at 50). Default 25. page_token: Continuation token from a previous result. include_body: When True, include each message's full body and any attachment card payloads (e.g. Adaptive Card JSON for bot posts). Default False (snippet only; card text still feeds the snippet). include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_chat_message, ...], "next_page_token": str | None}
Inputs: team_id (required), channel_id (required), limit, page_token, +2 more.
list_channelsA
List channels in a team.
Args: team_id: Graph team id (from list_joined_teams). limit: 1-100. Default 25. Applied client-side (see below); channels beyond the limit are dropped. page_token: Continuation token from a previous result. include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_channel, ...], "next_page_token": str | None}
Inputs: team_id (required), limit, page_token, include_raw.
list_chat_messagesA
List messages in a chat, newest first.
Args: chat_id: Graph chat id (from list_chats). limit: 1-100. Default 25. page_token: Continuation token from a previous result. include_body: When True, include each message's full body and any attachment card payloads (e.g. Adaptive Card JSON for bot posts). Default False (snippet only; card text still feeds the snippet). include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_chat_message, ...], "next_page_token": str | None}
Inputs: chat_id (required), limit, page_token, include_raw, +1 more.
list_chatsA
List the signed-in user's Teams chats (1:1, group, meeting).
Members are expanded so 1:1 chats (which have no topic) are identifiable by participant name. Results come back in Graph's default order (most recent message activity first).
Each item carries two timestamps; use the right one:
last_message_time: created time of the most recent message (from the expanded lastMessagePreview). This is the true "last activity" time.
metadata_updated: Graph's lastUpdatedDateTime, which only changes on rename/membership events (e.g. someone joining a meeting call), NOT on new messages. Do not use it to judge recency -- a busy 1:1 can show a months-old metadata_updated.
Args: limit: 1-100. Default 25. page_token: Pass next_page_token from a previous result to continue. include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_chat, ...], "next_page_token": str | None}
Inputs: limit, page_token, include_raw.
list_eventsA
List events in a calendar within a date range.
Uses Graph's calendarView, which expands recurring events into instances.
Args: calendar_id: Calendar ID. (Use list_calendars to discover.) start_datetime: ISO 8601 datetime, e.g. "2026-05-19T00:00:00Z". Required. end_datetime: ISO 8601 datetime. Required. mailbox: Optional mailbox. limit: 1-100. Default 25. page_token: Continuation token. include_raw: Include raw payloads.
Returns: {"items": [trimmed_event, ...], "next_page_token": str | None}
Inputs: calendar_id (required), end_datetime (required), start_datetime (required), limit, +3 more.
list_foldersB
List the user's mail folders (top level).
Returns: {"items": [trimmed_folder, ...], "next_page_token": None}
Inputs: mailbox, include_raw.
list_joined_teamsA
List the teams the signed-in user is a member of.
Args: limit: 1-100. Default 25. Applied client-side (see below); teams beyond the limit are dropped. page_token: Continuation token from a previous result. include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_team, ...], "next_page_token": str | None}
Inputs: limit, page_token, include_raw.
list_message_repliesA
List replies to a channel message (the thread under a root post), newest first.
Args: team_id: Graph team id. channel_id: Graph channel id. message_id: Graph id of the root channel message (from list_channel_messages). limit: 1-50 (Graph caps reply pages at 50). Default 25. page_token: Continuation token from a previous result. include_body: When True, include each reply's full body and any attachment card payloads. Default False (snippet only). include_raw: Include the raw Graph payload under "raw" on each item.
Returns: {"items": [trimmed_chat_message, ...], "next_page_token": str | None}
Inputs: team_id (required), channel_id (required), message_id (required), limit, +3 more.
list_messagesA
List messages from a mail folder, newest first.
Args:
folder_id: Folder id, or a well-known name (inbox, sentitems, drafts,
deleteditems, archive, junkemail). Default: inbox.
mailbox: Optional mailbox (email or user ID). Default: signed-in user.
limit: 1-100. Default 25.
page_token: Pass next_page_token from a previous result to continue.
include_raw: Include the raw Graph payload under "raw" on each item.
unread_only: When True, only return messages where isRead is false.
Adds isRead eq false to the server-side $filter.
filter: Raw OData $filter expression applied server-side. Combined
with unread_only using and. Examples:
from/emailAddress/address eq 'a@x.com',
hasAttachments eq true,
contains(subject,'report'),
receivedDateTime ge 2026-05-01T00:00:00Z.
Cannot be combined with $search — use search_messages for that.
Returns: {"items": [trimmed_message, ...], "next_page_token": str | None}
Inputs: limit, filter, mailbox, folder_id, +3 more.
list_rulesB
List inbox mail rules.
Returns: {"items": [trimmed_rule, ...], "next_page_token": None}
Inputs: mailbox, include_raw.
mark_readC
Mark a message as read.
Inputs: message_id (required), mailbox, include_raw.
mark_unreadC
Mark a message as unread.
Inputs: message_id (required), mailbox, include_raw.
move_messageA
Move a message to another folder.
Args: message_id: Graph message id. destination: Target folder id, OR one of the well-known names: 'archive', 'inbox', 'junkemail', 'deleteditems', 'sentitems', 'drafts'. mailbox: Optional mailbox. include_raw: Include the raw Graph payload.
Returns: The trimmed moved message (which lives in the destination folder).
Inputs: message_id (required), destination (required), mailbox, include_raw.
reply_all_messageB
Reply-all to a message (sender + everyone on the to/cc lines).
Inputs: message_id (required), comment, mailbox.
reply_messageB
Reply to the sender of a message.
Inputs: message_id (required), comment, mailbox, extra_to.
respond_to_eventA
Respond to a meeting invite.
Args: response: One of "accept", "tentativelyAccept", "decline". comment: Optional comment included with the response. send_response: When False, your response status is recorded without emailing the organizer.
Inputs: event_id (required), response (required), comment, mailbox, +1 more.
search_messagesA
Search messages across all folders using Graph $search.
The query is passed to Graph as-is — supply quoting yourself if you need a literal phrase (e.g. '"weekly report"') or KQL fielded predicates (e.g. 'from:alice subject:"report"').
Graph does not allow combining $search with $filter or $orderby, and KQL
has no isread/unread/flag/in predicates. To filter by isRead /
sender / date / attachments while keyword-matching, use list_messages
with filter="contains(subject,'…')" (or contains(body/content,'…'))
instead — that path supports the full $filter grammar.
Args:
query: Graph $search expression. Plain tokens match across common
mail fields; quoted phrases match literally; KQL field:value
forms target specific fields.
mailbox: Optional mailbox.
limit: 1-100.
page_token: Continuation token.
include_raw: Include raw payloads.
Inputs: query (required), limit, mailbox, page_token, +1 more.
send_messageA
Send a new message immediately.
Args: to: List of recipient email addresses (required, non-empty). subject: Subject line. body: Message body. body_type: "text" or "html". Default "text". cc: Optional CC list. bcc: Optional BCC list. attachments: Optional list of {name, content_b64, content_type}. Total raw size must be <= 3 MB. save_to_sent_items: Default True. mailbox: Optional mailbox (defaults to signed-in user).
Returns: {"status": "sent"}
Inputs: to (required), body (required), subject (required), cc, +5 more.
unflag_messageC
Clear the follow-up flag on a message.
Inputs: message_id (required), mailbox, include_raw.
update_eventB
Patch fields of an existing event. Pass None to leave a field unchanged.
If you change start_datetime or end_datetime, you must also pass time_zone.
Inputs: event_id (required), body, mailbox, subject, +8 more.
update_folderA
Rename and/or reparent a mail folder.
At least one of display_name or parent_folder_id is required.
Well-known folders (inbox, drafts, sent items, etc.) cannot be
renamed or moved — Graph will reject the request.
Args: folder_id: Graph folder id. Required. display_name: New folder name. None = unchanged. parent_folder_id: Move under this folder. Accepts a folder id or a well-known name ('inbox', 'archive', etc.). None = unchanged. mailbox: Optional mailbox (email or user id) for shared mailboxes. include_raw: Include the raw Graph payload.
Returns: The trimmed updated folder.
Inputs: folder_id (required), mailbox, include_raw, display_name, +1 more.
update_messageA
Patch a message's read state / flag / importance / categories.
For moving a message between folders, prefer move_message (clearer
intent). This tool patches in-place; setting parent_folder_id here
works but is not the primary path.
Returns the trimmed updated message.
Inputs: message_id (required), flag, is_read, mailbox, +4 more.
update_ruleA
Patch fields of an existing inbox mail rule. Pass None to leave a field unchanged.
Replacement semantics for nested blocks:
Graph PATCH on messageRules replaces the entire conditions or
actions block when you send it. If you pass ANY condition arg
(sender_contains, subject_contains, body_contains,
body_or_subject_contains, from_addresses, has_attachments) the
rule's conditions are rebuilt from ONLY the args you pass — any
existing conditions you don't re-specify are dropped. Same for
actions (move_to_folder, mark_as_read, delete,
stop_processing_rules). If you don't pass any condition or
action args, the existing blocks are preserved.
If you want to add to a block without losing the rest, call
``get_rule`` first and re-supply the existing values.Args: rule_id: Graph rule id. Required. display_name: New display name. None = unchanged. is_enabled: Enable/disable the rule. None = unchanged. sequence: New order (lower runs first). None = unchanged. sender_contains / subject_contains / body_contains / body_or_subject_contains / from_addresses / has_attachments: Passing any of these REPLACES the conditions block. move_to_folder / mark_as_read / delete / stop_processing_rules: Passing any of these REPLACES the actions block. mailbox: Optional mailbox for shared mailboxes. include_raw: Include the raw Graph payload.
Returns: The trimmed updated rule.
Inputs: rule_id (required), delete, mailbox, sequence, +12 more.
whoamiA
Return the signed-in user's profile.
Also a smoke test that authentication is working.
Args: include_raw: when True, include the raw Graph payload under "raw".
Returns: Trimmed user object: {id, display_name, user_principal_name, mail, job_title}
Inputs: include_raw.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 50 tools
Most tools map cleanly to a resource-action pair (messages, folders, rules, events, chats, channels), and shortcuts like archive_message and the batch_* tools are clearly specialized versions of move_message. The main overlap is update_message duplicating the read-state/flag conveniences (mark_read, flag_message, etc.), but the descriptions resolve it.
Tool names follow a consistent snake_case verb_noun pattern with list_/get_/create_/update_/delete_ prefixes reused across resources. Exceptions like whoami and reply_all_message are still predictable and fit the overall style.
50 tools is well above the typical well-scoped range, and even for a multi-domain Microsoft Graph server it feels heavy. The broad mail/calendar/Teams coverage gives the count some rationale, so it is 'too many' rather than an extreme mismatch.
Mail coverage is very complete with CRUD for messages, folders, rules, attachments, and bulk operations, and calendar events have full lifecycle support. However, Teams is effectively read-only with no send/create/update/delete for chats or channels, and calendar resources themselves cannot be created or deleted, leaving notable dead ends.
Maintenance
Related MCP Connectors
Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
Read email/chat conversations, messages, contacts and teams; draft, send and update threads.
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Every email and calendar account you connect, for AI agents, with permissions and approvals.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Microsoft Outlook email and calendar through the Microsoft Graph API, including reading, sending, searching emails, and handling calendar events.4331MIT

graphdo-tsofficial
AlicenseAqualityDmaintenanceEnables AI agents to send emails and manage tasks in Microsoft To Do with scoped, low-risk access to Microsoft Graph.33 npm1MIT- AlicenseAqualityCmaintenanceEnables AI agents to read and manage Microsoft 365/Outlook email and calendar, with destructive actions (send email, create event) requiring human approval.8MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read, search, and manage Outlook/Office 365 work mailboxes and calendars, and create reply drafts without sending by default.7MIT