Skip to content
MCP server

MSGraph MCP

Outlook mail, calendar and read-only Teams history for AI agents via Microsoft Graph

Runs locally

MSGraph MCP is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
Self-hosted
Runs
Locally
What it can do
Can change data (6 tools)
Version
0.6.1

Similar MCP servers

Install

In Claude Desktop → Settings → Extensions

https://github.com/timfurlong/msgraph-mcp/releases/download/v0.6.1/msgraph-mcp.mcpb

Download the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.

Claude Desktop setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MSGRAPH_MCP_CLIENT_IDClient ID of your Entra (Azure AD) app registration (or set it in ~/.msgraph-mcp/.env)Required
  • MSGRAPH_MCP_TENANT_IDEntra tenant ID, or common / organizations / consumers (or set it in ~/.msgraph-mcp/.env)Required
  • MSGRAPH_MCP_TOKEN_CACHE_PATHOverride the token cache location (default ~/.msgraph-mcp/token_cache.bin)

About MSGraph MCP

Everything runs as the signed-in person: the server uses delegated Microsoft Graph permissions and an MSAL device code sign-in, so an agent can only reach what that user can already reach. No client secret is stored. The refresh token sits in a local cache file that the README tells you to treat as a credential.

Setup needs an Entra app registration with public client flows enabled and a list of Graph scopes covering mail, mailbox rules, calendars, identity and Teams. The scopes are requested all at once, so a missing admin consent for channel messages blocks sign-in entirely, and adding scopes later means signing in again.

Responses are reshaped for agents: message and event bodies shrink to a short snippet unless you ask for the full body, and batch tools can act on up to 1000 messages in one Graph call. Outgoing attachments are capped at 3 MB per message, and SharePoint-backed Teams files cannot be downloaded.

Tools this server provides (19)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 6 of 19 tools change data; 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

whoami
Show the signed-in user.
list_messagesName suggests: reads
List messages, by default from the inbox.
search_messagesName suggests: reads
Search mail with KQL through Graph.
get_messageName suggests: reads
Read one message.
send_messageName suggests: changes
Send a message.
create_draftName suggests: changes
Create a draft message.
reply_messageName suggests: changes
Reply to a message.
forward_message
Forward a message.
list_foldersName suggests: reads
List mail folders.
batch_archive_messagesName suggests: changes
Archive many messages in one call.
list_rulesName suggests: reads
List inbox rules.
create_ruleName suggests: changes
Create an inbox rule.
list_eventsName suggests: reads
List calendar events.
create_eventName suggests: changes
Create a calendar event.
respond_to_event
Respond to an event invitation.
find_meeting_timesName suggests: reads
Suggest meeting times.
list_chatsName suggests: reads
List Teams chats.
list_joined_teamsName suggests: reads
List teams the user has joined.
list_channel_messagesName suggests: reads
Read messages in a Teams channel.

What it does

Mail read and write
Search, read, draft, send, reply, forward, move and delete messages, and manage folders and attachments.
Mailbox rules
List, create, update and delete Outlook inbox rules.
Calendar management
Create, update, cancel and respond to events, and find meeting times.
Read-only Teams
List chats, joined teams, channels and messages, and download inline hosted content.
Batch actions
Archive, move, flag or mark up to 1000 messages per call with per-message results.
Shared mailboxes
Every mail and calendar tool accepts an optional mailbox to target a shared or delegated one.

Good for

  • Triage an inbox and archive or flag messages in bulk
  • Draft replies for review from an agent
  • Find a meeting time and create the event
  • Summarise recent Teams chat history
  • Set up Outlook rules from a plain-language request

Pricing

Open source

MSGraph MCP FAQ

Does MSGraph MCP need a client secret?

No. Sign-in uses the MSAL device code flow with your Entra app's client ID and tenant ID, and no secret is stored.

Can MSGraph MCP post to Teams?

No. The Teams tools only read chats, channels, replies and hosted content.

Why did sign-in fail after I added a scope?

All scopes are requested together, so new ones require running msgraph-mcp-login again; until then every tool fails with an authentication error.

What is the attachment size limit?

Outgoing attachments are capped at 3 MB total per message because chunked upload is not supported.

Is MSGraph MCP free?

Yes. MSGraph MCP is open source, so you can use and self-host it for free.

What are the best alternatives to MSGraph MCP?

The closest alternatives to MSGraph MCP are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers