Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

MSGraph MCP

by timfurlongversion 0.5.2i★ 1iRuns on your computer
Registry nameio.github.timfurlong/msgraph-mcp

How to install

What it does

MCP server for Microsoft Graph: Outlook mail and calendar, plus read-only Microsoft Teams

  • Connects Runs on your computer
  • Account or key No key needed · 2 settings to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID)
  • Category Chat & email

Install

Pick the AI app you use, then copy the settings.

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Fill in 2 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registration
    • MSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')

    Descriptions are as written by the maker.

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "msgraph": {
          "command": "uvx",
          "args": [
            "msgraph-mcp-server"
          ],
          "env": {
            "MSGRAPH_MCP_CLIENT_ID": "your-value",
            "MSGRAPH_MCP_TENANT_ID": "your-value"
          }
        }
      }
    }
  5. Quit Claude and open it again

  6. Try it

    Use MSGraph MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using MSGraph MCP or shows a MSGraph MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect MSGraph MCP yet

MSGraph MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect MSGraph MCP

  • 2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • 2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)
  • 2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)
  • 2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)

B · Others in Chat & email that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Fill in 2 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registration
    • MSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')

    Descriptions are as written by the maker.

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user msgraph --env MSGRAPH_MCP_CLIENT_ID=your-value --env MSGRAPH_MCP_TENANT_ID=your-value -- uvx msgraph-mcp-server
  5. Type /mcp in Claude Code

    You should see MSGraph MCP listed as connected

  6. Try it

    Use MSGraph MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using MSGraph MCP or shows a MSGraph MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Fill in 2 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registration
    • MSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')

    Descriptions are as written by the maker.

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the MSGraph MCP settings, MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID is empty; add your key and save

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use MSGraph MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using MSGraph MCP or shows a MSGraph MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

2 setting(s) to fill in (MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Fill in 2 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • MSGRAPH_MCP_CLIENT_ID Client ID of your Entra (Azure AD) app registration
    • MSGRAPH_MCP_TENANT_ID Entra tenant ID (or 'common' / 'organizations' / 'consumers')

    Descriptions are as written by the maker.

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the MSGraph MCP settings, MSGRAPH_MCP_CLIENT_ID, MSGRAPH_MCP_TENANT_ID is empty; add your key and save

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use MSGraph MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using MSGraph MCP or shows a MSGraph MCP tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MSGRAPH_MCP_TOKEN_CACHE_PATH Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use MSGraph MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user msgraph --env MSGRAPH_MCP_CLIENT_ID=your-value --env MSGRAPH_MCP_TENANT_ID=your-value -- uvx msgraph-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "msgraph": {
      "command": "uvx",
      "args": [
        "msgraph-mcp-server"
      ],
      "env": {
        "MSGRAPH_MCP_CLIENT_ID": "your-value",
        "MSGRAPH_MCP_TENANT_ID": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "msgraph": {
      "command": "uvx",
      "args": [
        "msgraph-mcp-server"
      ],
      "env": {
        "MSGRAPH_MCP_CLIENT_ID": "your-value",
        "MSGRAPH_MCP_TENANT_ID": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "msgraph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "msgraph-mcp-server"
      ],
      "env": {
        "MSGRAPH_MCP_CLIENT_ID": "your-value",
        "MSGRAPH_MCP_TENANT_ID": "your-value"
      }
    }
  }
}

Values you fill in

  • MSGRAPH_MCP_CLIENT_ID required env
    Client ID of your Entra (Azure AD) app registration
  • MSGRAPH_MCP_TENANT_ID required env
    Entra tenant ID (or 'common' / 'organizations' / 'consumers')
  • MSGRAPH_MCP_TOKEN_CACHE_PATH env
    Override the token cache location (default ~/.msgraph-mcp/token_cache.bin)

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
53/wk
Connection
Runs on your computer
Latest versioni
0.5.2
Published to registryi
Nov 12, 2026
Code last changedi
Nov 13, 2026
Maker
timfurlong
Packages
pypi: msgraph-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account timfurlong, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Chat & emaili

  • More stars than 83% of the other 2031 servers in this category
  • Published to the registry more recently than 89% of the other 2031 servers in this category
  • Basic checks equal to or better than 100% of the other 2031 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is MSGraph MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (0.5.2) reached the registry 2 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: HyperFrames by HeyGen, Inbox Zero, draw.io

Others in the same category

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

HyperFrames by HeyGen

Official HyperFrames by HeyGen: the best AI video editor in chat. Captions, motion graphics, MP4.

by heygen-comWidely used★ 83.9KUpdated today

Runs in the cloud

Inbox Zero

Search Gmail and Outlook, save drafts, manage email rules, and view email stats.

by elie222Widely used★ 13KUpdated 44 days ago

Runs in the cloud

draw.io

Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.

by jgraphWidely used★ 5.8KUpdated 4 days ago

Runs in the cloud✓ service owner · draw.io

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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 via the Microsoft Graph SDK. 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.

Install

You need Python ≥ 3.11 and an Entra (Azure AD) app registration. The app registration takes about ten minutes and may need an administrator, so do that first: see the Entra setup section below.

uv tool install msgraph-mcp-server   # or: pip install msgraph-mcp-server

The package is msgraph-mcp-server. It installs three commands: msgraph-mcp and its alias msgraph-mcp-server, which both start the stdio server, plus msgraph-mcp-login for the one-time sign-in.

Setup

1. Set your Entra app credentials.

export MSGRAPH_MCP_CLIENT_ID=<your app's client ID>

export MSGRAPH_MCP_TENANT_ID= # or: common / organizations / consumers

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

running via uvx instead of installing: uvx --from msgraph-mcp-server msgraph-mcp-login

A token cache is written to ~/.msgraph-mcp/token_cache.bin.

3. Wire the server into your MCP host.

Claude Code:

claude mcp add msgraph \

--env MSGRAPH_MCP_CLIENT_ID=$MSGRAPH_MCP_CLIENT_ID \ --env MSGRAPH_MCP_TENANT_ID=$MSGRAPH_MCP_TENANT_ID \ -- msgraph-mcp

Any other host, over stdio:

{

"mcpServers": { "msgraph": { "command": "msgraph-mcp", "args": [], "env": { "MSGRAPH_MCP_CLIENT_ID": " ", "MSGRAPH_MCP_TENANT_ID": " " } } } }

To run without installing, use "command": "uvx" with "args": ["msgraph-mcp-server"]. Note that uvx does not put msgraph-mcp-login on your PATH, so sign in with the uvx --from form shown in step 2.

MSGRAPH_MCP_TOKEN_CACHE_PATH optionally overrides the cache location. All three variables can also come from a .env file in the working directory; the process environment wins over it.

Entra setup

The app registration requires:

  • Account type: single tenant (multi-tenant works too; set MSGRAPH_MCP_TENANT_ID to common, organizations, or consumers)
  • Redirect URI (public client): https://login.microsoftonline.com/common/oauth2/nativeclient
  • Allow 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.Send
  • Rules: MailboxSettings.ReadWrite (Graph requires this for the messageRules endpoints)
  • Calendar: Calendars.ReadWrite, Calendars.ReadWrite.Shared
  • Identity: User.Read
  • Teams: 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.All the login fails outright and mail and calendar are unavailable too. For the same reason, adding scopes later means re-running msgraph-mcp-login; until you do, *every* tool fails with NotAuthenticatedError, not just the ones needing the new scope.

Tools

GroupTools
Utilwhoami
Mail — readlist_messages, search_messages, get_message, list_attachments, download_attachment
Mail — writesend_message, create_draft, reply_message, reply_all_message, forward_message, update_message, delete_message
Mail — folderslist_folders, create_folder, update_folder, delete_folder, move_message
Mail — actionsarchive_message, mark_read, mark_unread, flag_message, unflag_message
Mail — batchbatch_archive_messages, batch_move_messages, batch_mark_read, batch_mark_unread, batch_flag_messages, batch_unflag_messages
Mail — ruleslist_rules, get_rule, create_rule, update_rule, delete_rule
Calendarlist_calendars, list_events, get_event, create_event, update_event, delete_event, cancel_event, respond_to_event, find_meeting_times
Teams (read)list_chats, list_chat_messages, list_joined_teams, list_channels, list_channel_messages, list_message_replies, download_hosted_content

Behavior shared across tools:

  • Trimmed responses. Results are reshaped for agents, and message and event bodies are replaced by a short snippet. Pass include_body=true to get_message, list_chat_messages, list_channel_messages, or list_message_replies for the full body, which for Teams is also what surfaces Adaptive Card content. Pass include_raw=true to any tool returning a Graph object to get the full payload alongside the trimmed one; the batch_* 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 no mailbox.
  • Pagination. List and search tools take limit (1-100, default 25) and page_token, except list_channel_messages and list_message_replies, which Graph caps at 50. list_folders, list_rules, list_attachments, and list_calendars return the whole collection and take neither. On list_joined_teams and list_channels, limit is applied after fetching because Graph rejects $top there, so it saves tokens rather than round-trips.
  • Batch actions. The batch_* tools apply one action to up to 1000 messages via Graph's $batch endpoint, returning a per-message result plus a {total, succeeded, failed} summary.
  • Downloads. download_attachment and download_hosted_content return images as native MCP image blocks the agent can view. Pass save_path (a file, or an existing directory) to write bytes to disk and get back a path instead.
  • Finding mail. list_messages defaults to the inbox; pass folder_id for another folder, unread_only=true, or a raw OData filter for predicates KQL cannot express. search_messages passes your query to Graph's $search as KQL.

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.

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.bin

The 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

  • `NotAuthenticatedError: Not authenticated` — run msgraph-mcp-login. If it recurs immediately, a requested scope has not been consented yet; see the note under Entra setup.
  • `ConfigError: Missing required env var` — set it in your shell, in a .env in the working directory, or in 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 error` from search_messages — the query goes to Graph's $search as KQL. Quote literal phrases ("weekly report") or use fielded forms (from:alice). For predicates KQL cannot express, use list_messages with filter=.
  • The host starts the server but lists no tools — confirm it launches msgraph-mcp (or uvx) over stdio and can find that binary on its PATH.

Development

See CONTRIBUTING.md.