Ms Graph MCP logo

Ms Graph MCP

Connects AI agents to Microsoft Graph for email, calendars, files, people, search, Teams, SharePoint, and directory tasks.

Install Ms Graph MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ms-graph-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "ms-graph-mcp",
        "ms-graph-mcp"
      ],
      "env": {
        "GRAPH_MCP_CLIENT_ID": "YOUR_VALUE_HERE",
        "GRAPH_MCP_TENANT_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

ms-graph-mcp exposes 85 Microsoft Graph tools over stdio or Streamable HTTP, covering Microsoft 365 mail, calendars, meetings, files, SharePoint, people, contacts, search, and more. It signs users in through a browser with Microsoft Entra ID and caches the resulting token locally, without requiring a client secret. Use it when an agent needs to inspect or manage a user's Microsoft 365 work data, with individual tools gated by Graph permissions. Read and write operations are separated, and write access requires explicit opt-in.

Use cases

  • Review upcoming meetings and attendee responses
  • Search and summarize Outlook conversations
  • Find and read Microsoft 365 documents
  • Identify colleagues, contacts, and directory profiles
  • Search across mail, calendars, files, SharePoint, and people

Key features

  • 85 Microsoft Graph tools
  • Mail, calendar, meeting, file, and SharePoint access
  • Cross-workload Microsoft 365 search
  • Browser-based Entra ID sign-in
  • stdio and Streamable HTTP transports
  • Explicit separation of read and write operations

Tools23

What Ms Graph MCP lets your agent do. Expand a tool for its parameters.

Verified live~3.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 77d

What it can do

From the 23 tools this server returned when we ran it; 23 declare their own safety hints.

Makes network requests · 23Read-only tools · 23
Network at startup2 connections
Files written at startupNone

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · ms-graph-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Tools exposed23Callable tools this server registers over MCP.

How Ms Graph MCP works

What ms-graph-mcp does

ms-graph-mcp gives MCP-compatible agents access to Microsoft Graph through a collection of 85 tools. Its coverage spans Outlook mail and calendars, meeting details and transcripts, Teams chat, OneDrive and SharePoint files, Microsoft 365 search, people and contacts, directory objects, tasks, and OneNote.

The tool set supports both focused requests and cross-workload discovery. For example, an agent can search messages by sender or keyword, retrieve a complete email thread, inspect upcoming meetings, find free time for attendees, locate files by content, and read text from Office documents or PDFs. The server also includes broader search across mail, events, files, SharePoint sites and lists, and people.

How it works

The server communicates with MCP clients through standard input/output or Streamable HTTP. In the local sign-in flow, it uses an Entra ID public-client app and opens a browser for Microsoft 365 authentication, including MFA and conditional access. Tokens are cached in ~/.ms-graph-mcp/token_cache.json with owner-only permissions.

Graph access is delegated to the signed-in user. Each tool requires the Microsoft Graph permission appropriate to its workload, such as Mail.Read, Calendars.Read, Files.Read.All, or People.Read. The server can receive an already-acquired Graph token through request context, and it can also perform an on-behalf-of exchange when configured as an OAuth resource server.

Read and write tools are separated. Write tools remain hidden and are rejected unless the caller explicitly enables write access.

Setup and configuration

Python 3.12 or newer is required. The package can be run directly with uvx:

bash
uvx --from ms-graph-mcp ms-graph-mcp

For HTTP transport, use:

bash
uvx --from ms-graph-mcp ms-graph-mcp-http

An Entra app registration must use a public-client flow with http://localhost as the native redirect URI. Enable public client flows, add the delegated Microsoft Graph permissions needed by the tools, and provide the application client ID and directory tenant ID to the MCP client.

The required environment variables are:

text
GRAPH_MCP_CLIENT_ID
GRAPH_MCP_TENANT_ID

The same stdio command and environment block can be configured in VS Code, Claude Desktop, Claude Code, Cursor, or Windsurf. Source installations use uv sync after cloning the repository.

Tools and capabilities

  • List upcoming events or events in a date range.
  • Retrieve event details, Teams join links, attendees, and response states.
  • Find meeting slots or inspect free, busy, tentative, and out-of-office periods.
  • Search, browse, flag, and read Outlook messages and complete conversations.
  • Find recent, trending, shared, or keyword-matched OneDrive and SharePoint files.
  • Read text from supported Office files, PDFs, and other text content with a caller-set limit.
  • Search colleagues, contacts, profiles, and Microsoft 365 content across workloads.
  • Resolve a Microsoft 365 group or Teams team's backing document library.

Limitations and notes

Graph permissions must be granted for the tools an agent uses, and some operations require broader permissions such as Files.Read.All, Sites.Read.All, or User.Read.All. File content output is truncated to a requested character limit, while binary files produce a placeholder rather than raw bytes. Attachment listing returns metadata only and excludes inline images.

The public packaging and API surface are described as early-stage, so configuration details may change before the first major release. A client secret is not needed for the local public-client sign-in flow.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ms Graph MCP

ms-graph-mcp is an MCP server that connects AI agents to Microsoft Graph and Microsoft 365 data. Its main tools search and read Outlook mail, calendars, OneDrive and SharePoint files, people, contacts, meetings, and directory resources, with delegated permissions applied per tool.

Install it with `uvx --from ms-graph-mcp ms-graph-mcp` or `pip install ms-graph-mcp`. Python 3.12 or newer is required. Configure the MCP client with `GRAPH_MCP_CLIENT_ID` and `GRAPH_MCP_TENANT_ID`, then authenticate through the browser.

Yes, ms-graph-mcp works with Cursor through its standard `mcpServers` configuration. Add the stdio command, pass the two Graph environment variables, and place the configuration in the project or global Cursor MCP file.

The required permission depends on the tool. Examples include `Mail.Read` for email, `Calendars.Read` for events, `Files.Read` or `Files.Read.All` for files, `People.Read` for colleague search, and `Contacts.Read` for saved contacts.

No, the local browser sign-in flow uses an Entra ID public client with PKCE and does not require a client secret. Register a public client, enable public client flows, set `http://localhost` as the native redirect URI, and provide the client and tenant IDs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMs Graph MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ms-graph-mcp?style=directory)](https://allmcps.com/mcp/ms-graph-mcp)
HTML Embed
<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>