原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Ms Graph MCP

作者:nitin27may版本 0.3.0i★ –i在你的电脑上运行
注册名称io.github.nitin27may/ms-graph-mcp

安装

概览

作者提供的说明(英文原文)

Microsoft Graph MCP server — 85 tools for mail, calendar, Teams, files, SharePoint, and Entra ID

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ms-graph": {
      "command": "uvx",
      "args": [
        "ms-graph-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add ms-graph -- uvx ms-graph-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "ms-graph": {
      "command": "uvx",
      "args": [
        "ms-graph-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "ms-graph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ms-graph-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 nitin27may 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2197 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2197 个服务器的 28% 更新
  • 基础检查结果等于或优于此分类中其他 2197 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Ms Graph MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.0)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

ms-graph-mcp

Releases · Changelog

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.

  • No `msgraph-sdk`, no `azure-identity` — the Graph client is raw httpx2, so the dependency tree stays small and the wire behaviour is inspectable.
  • Read/write separation is enforced, not advisory — write tools are hidden *and* refused unless the caller explicitly opts in.
  • Auth-agnostic by default — tools receive an already-acquired Graph token via the request context. The server can also perform its own on-behalf-of exchange when you want it to act as a proper OAuth resource server.

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.

Install

Requires Python 3.12+. Two paths — pick the one that matches what you want to do.

A. Use the package

Nothing to clone. uv runs it straight from PyPI:

uvx --from ms-graph-mcp ms-graph-mcp          # stdio, for an MCP client

uvx --from ms-graph-mcp ms-graph-mcp-http # Streamable HTTP

or install it into an environment:

pip install ms-graph-mcp

Release candidates are published too. pip skips them unless you ask:

pip install --pre ms-graph-mcp          # newest, including candidates

pip install ms-graph-mcp==0.3.0rc1 # a specific one; no --pre needed for an exact pin

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.

B. Run from source

For hacking on it, forking it, or running an unreleased change:

git clone https://github.com/nitin27may/ms-graph-mcp

cd ms-graph-mcp uv sync # creates .venv and installs everything uv run ms-graph-mcp # check it starts

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 ~:

cd ms-graph-mcp && pwd

/Users/you/workspace/ms-graph-mcp

Then use the source form of the config in Configure your MCP client below.

Set up the Entra app

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:

  • Name: anything, e.g. ms-graph-mcp
  • Supported account types: *Accounts in this organizational directory only*
  • Redirect URI: select Public client/native, value http://localhost

Leave 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:
  User.Read  Mail.Read  Calendars.Read  Files.Read.All

People.Read Chat.Read Tasks.Read Notes.Read Contacts.Read

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.

Configure your MCP client

Every MCP client that speaks stdio takes the same three things — a command, its arguments, and an environment block:

{

"command": "uvx", "args": ["--from", "ms-graph-mcp", "ms-graph-mcp"], "env": { "GRAPH_MCP_CLIENT_ID": " ", "GRAPH_MCP_TENANT_ID": " " } }

Where that block goes, and what the surrounding key is called, differs:

ClientConfig fileKey
VS Code.vscode/mcp.json (workspace), or MCP: Open User Configurationservers
Claude Codeclaude mcp add … — no file to edit—
Claude DesktopmacOS ~/Library/Application Support/Claude/claude_desktop_config.json · Windows %APPDATA%\Claude\claude_desktop_config.jsonmcpServers
Cursor.cursor/mcp.json (project) or ~/.cursor/mcp.json (global)mcpServers
Windsurf~/.codeium/windsurf/mcp_config.jsonmcpServers
MCP Inspectorcommand 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.

VS Code
{

"inputs": [ { "id": "clientId", "type": "promptString", "description": "Entra application (client) ID" }, { "id": "tenantId", "type": "promptString", "description": "Entra directory (tenant) ID" } ], "servers": { "ms-graph": { "type": "stdio", "command": "uvx", "args": ["--from", "ms-graph-mcp", "ms-graph-mcp"], "env": { "GRAPH_MCP_CLIENT_ID": "${input:clientId}", "GRAPH_MCP_TENANT_ID": "${input:tenantId}" } } } }

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.

Claude Code
claude mcp add ms-graph \

--env GRAPH_MCP_CLIENT_ID= \ --env GRAPH_MCP_TENANT_ID= \ -- uvx --from ms-graph-mcp ms-graph-mcp

Confirm with /mcp inside Claude Code — it lists the server and its tools.

Claude Desktop
{

"mcpServers": { "ms-graph": { "command": "uvx", "args": ["--from", "ms-graph-mcp", "ms-graph-mcp"], "env": { "GRAPH_MCP_CLIENT_ID": " ", "GRAPH_MCP_TENANT_ID": " " } } } }

Confirm by quitting Claude Desktop fully — not just closing the window — reopening it, and looking for the tools icon in the composer.

Cursor and Windsurf

Both use the same mcpServers shape as Claude Desktop, in the file named in the table above.

MCP Inspector

The quickest way to check the server independently of any client:

npx @modelcontextprotocol/inspector \

uvx --from ms-graph-mcp ms-graph-mcp \ -e GRAPH_MCP_CLIENT_ID= \ -e GRAPH_MCP_TENANT_ID=

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, so GRAPH_MCP_CLIENT_ID=… npx @modelcontextprotocol/inspector … starts the

server with *no* client id. The -e flags go after the server command.

Running from source instead

Same blocks as above — swap the command and args for your clone's absolute path:

"command": "uv",

"args": ["run", "--directory", "/Users/you/workspace/ms-graph-mcp", "ms-graph-mcp"]

Two things catch people out here:

`uv` must be on the client's PATH. GUI apps launched from Finder or the Dock do not inherit your shell's PATH, so a client can fail to start the server with an unhelpful error. If that happens, put the output of which uv in "command" instead of the bare name.

`--directory` is not optional. Without it, uv run resolves against whatever directory the client happened to launch from, which will not be the project.

Something not working?

docs/troubleshooting.md covers the Entra errors, Conditional Access, corporate TLS proxies, and the "server disconnected" that is almost always a startup error your client is hiding.

Configuration

Two settings get you running; everything else has a working default.

Env varPurpose
GRAPH_MCP_CLIENT_IDEntra application (client) id. Enables interactive sign-in.
GRAPH_MCP_TENANT_IDEntra directory (tenant) id. Defaults to common.
GRAPH_MCP_SCOPESComma-separated delegated scopes to request. Defaults to a read-only set.
GRAPH_MCP_TOOLSETSWhich tool profiles to expose. Defaults to core. See below.
GRAPH_MCP_WRITE_SCOPEtrue to expose the 23 write tools. Default off.
GRAPH_MCP_READ_ONLYtrue to remove the write tier from the deployment entirely.
GRAPH_MCP_LOG_LEVELINFO logs every Graph call to stderr. Defaults to WARNING.

Every setting, both deployment shapes, and the hosted/OBO options are in docs/configuration.md. For running it as a service, see docs/hosting.md.

Toolset profiles

85 tools is a lot to put in front of a model. GRAPH_MCP_TOOLSETS selects named profiles, each a group of

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx