MCP server for Microsoft Graph: Outlook mail and calendar, plus read-only Microsoft Teams
MCPpedia last refreshed this data
io.github.timfurlong/msgraph-mcp is an MCP server that MCP server for Microsoft Graph: Outlook mail and calendar, plus read-only Microsoft Teams. Its tool list has not been published yet over stdio and sse, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"msgraph": {
"env": {
"MSGRAPH_MCP_CLIENT_ID": "<your app's client ID>",
"MSGRAPH_MCP_TENANT_ID": "<your tenant ID>"
},
"args": [],
"command": "msgraph-mcp"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for Microsoft Graph: Outlook mail and calendar, plus read-only Microsoft Teams
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'msgraph-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked msgraph-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in productivity / communication
Official TypeScript library for the Telnyx API
MCP server for monday.com integration.
Official Todoist MCP server. Manage tasks and projects. Hosted, no API key needed.
Local-first AI memory with knowledge graphs and hybrid search. 17+ AI tools via MCP. Free.
MCP Security Weekly
Get CVE alerts and security updates for io.github.timfurlong/msgraph-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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).
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@latest
On 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-mcp
The release also carries msgraph-mcp.mcpb, an MCP bundle that Claude Desktop installs directly (it asks for the client and tenant IDs).
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.
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/.env
The 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 login
A 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-mcp
Any other host, over stdio:
{
"mcpServers": {
"msgraph": {
"command": "/path/to/msgraph-mcp",
"args": []
}
}
}
The app registration requires:
MSGRAPH_MCP_TENANT_ID to common, organizations, or consumers)https://login.microsoftonline.com/common/oauth2/nativeclientMail.ReadWrite, Mail.ReadWrite.Shared, Mail.SendMailboxSettings.ReadWrite (Graph requires this for the messageRules endpoints)Calendars.ReadWrite, Calendars.ReadWrite.Shared