Microsoft Graph MCP server β 85 tools for mail, calendar, Teams, files, SharePoint, and Entra ID
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol server for Microsoft Graph β 85 tools across mail, calendar, meetings (including transcripts), Teams chat, files, SharePoint, search, people, contacts, directory, tasks and OneNote, over stdio or Streamable HTTP.
Signs you in with your own Microsoft account β browser SSO, no token to paste, no client secret.

msgraph-sdk, no azure-identity β the Graph client is raw httpx, so the dependency tree
stays small and the wire behaviour is inspectable.Status: early. Extracted from a production agent platform where it has been running against a real tenant. The code is battle-tested; the packaging and public API surface are newer. Expect the config surface to move before 1.0.
Requires Python 3.12+. Two paths β pick the one that matches what you want to do.
Nothing to clone. uv runs it straight from PyPI:
or install it into an environment:
Release candidates are published too. pip skips them unless you ask:
A container image is on GHCR for the HTTP transport β see docs/hosting.md.
Also listed on the official MCP registry as
io.github.nitin27may/ms-graph-mcp.
TestPyPI is not a distribution channel. Every release is published there first, but that is a rehearsal of the publishing process: it can be wiped without notice and does not mirror PyPI, so installing from it needs
--extra-index-url https://pypi.org/simple/just to resolve ordinary dependencies. Use PyPI, or--pre.
For hacking on it, forking it, or running an unreleased change:
uv sync is the only setup step. See
CONTRIBUTING.md before
opening a pull request β the tool allowlists and the tier separation have invariants that are
enforced rather than advisory.
To point an MCP client at your clone, you need its absolute path β clients do not inherit your
working directory and most do not expand ~:
Then use the source form of the config in Configure your MCP client below.
You need an Entra ID app registration β about two minutes. Do not create a client secret: this registers as a public client, which signs you in through your browser using PKCE. A secret on a program running on your own machine would be readable by anyone with the config file, which is why the flow is designed not to need one. Nothing goes into a config file except two ids, neither of which is sensitive.
In the Entra portal β App registrations β New registration:
ms-graph-mcphttp://localhostLeave Certificates & secrets alone β you do not need anything from it.
Then, on the new app:
Authentication β enable Allow public client flows
API permissions β Add a permission β Microsoft Graph β Delegated permissions, and add what you want the agent to reach. A sensible read-only starting set:
The complete copy-paste consent sets β and which permission each individual tool needs β are in docs/permissions.md.
Copy the Application (client) ID and Directory (tenant) ID from the Overview page. That is everything you need.
Every MCP client that speaks stdio takes the same three things β a command, its arguments, and an environment block:
Where that block goes, and what the surrounding key is called, differs:
| Client | Config file | Key |
|---|---|---|
| VS Code | .vscode/mcp.json (workspace), or MCP: Open User Configuration | servers |
| Claude Code | claude mcp add β¦ β no file to edit | β |
| Claude Desktop | macOS ~/Library/Application Support/Claude/claude_desktop_config.json Β· Windows %APPDATA%\Claude\claude_desktop_config.json | mcpServers |
| Cursor | .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) | mcpServers |
| Windsurf | ~/.codeium/windsurf/mcp_config.json | mcpServers |
| MCP Inspector | command line, -e flags | β |
The first sign-in opens your browser for normal Microsoft 365 SSO β including MFA and conditional
access. The result is cached in ~/.ms-graph-mcp/token_cache.json, owner-readable only, so it does
not prompt again.
Reload the window. VS Code prompts once for the two ids and remembers them, so this file is safe to
commit. Open the Chat view, switch to Agent mode, and the tools appear under the tools picker β
that is the panel in the screenshot above. Confirm with MCP: List Servers, which shows status
and output if it does not connect.
Confirm with /mcp inside Claude Code β it lists the server and its tools.
Confirm by quitting Claude Desktop fully β not just closing the window β reopening it, and looking for the tools icon in the composer.
Both use the same mcpServers shape as Claude Desktop, in the file named in the table above.
The quickest way to check the server independently of any client:
Needs Node 22.19+. It opens a browser UI where you can list tools and call them by hand β worth
doing before blaming your client. There is a scriptable --cli mode too; see
docs/testing.md.
Pass variables with
-e, not from your shell. Inspector does not give the server it spawns your environment, soGRAPH_MCP_CLIENT_ID=β¦ npx @modelcontextprotocol/inspector β¦starts the server with no client id. The-eflags go after the server command.
Same blocks as above β swap the command and args for your clone's absolute path:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ms-graph-mcp)<a href="https://allmcps.com/mcp/ms-graph-mcp"><img src="https://allmcps.com/api/badge/ms-graph-mcp?style=directory" alt="Ms Graph MCP on AllMCPs" /></a>