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

Microsoft Teams MCP

作者:chrischall版本 0.8.5i★ –i在你的电脑上运行
注册名称io.github.chrischall/microsoft-teams-mcp

安装

概览

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

Microsoft Teams for Claude — read any chat or channel and its unread messages; send and react

PopNx MCP 的三大支柱

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

它能帮你做什么

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

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 聊天与邮件
  • 你需要填写:TEAMS_ACCESS_TOKEN, MCP_CONFIRM_SECRET

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: TEAMS_WS_PORT, FETCHPROXY_WS_HOST, FETCHPROXY_IDENTITY_DIR, TEAMS_ACCESS_TOKEN, TEAMS_DISABLE_FETCHPROXY, TEAMS_CHATSVC_REGION, TEAMS_CHATSVC_BASE, TEAMS_CAPTURE_TIMEOUT, TEAMS_TOKEN_CACHE, TEAMS_TOKEN_FILE, TEAMS_SUBSTRATE_TOKEN_FILE, TEAMS_SHAREPOINT_TOKEN_FILE, TEAMS_TIME_ZONE, TEAMS_OUTPUT_DIR, MCP_CONFIRM_MODE, MCP_CONFIRM_ELICITATION, MCP_CONFIRM_TTL_SECONDS, MCP_CONFIRM_SECRET

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "your-value",
        "FETCHPROXY_WS_HOST": "your-value",
        "FETCHPROXY_IDENTITY_DIR": "your-value",
        "TEAMS_ACCESS_TOKEN": "your-value",
        "TEAMS_DISABLE_FETCHPROXY": "your-value",
        "TEAMS_CHATSVC_REGION": "your-value",
        "TEAMS_CHATSVC_BASE": "your-value",
        "TEAMS_CAPTURE_TIMEOUT": "your-value",
        "TEAMS_TOKEN_CACHE": "your-value",
        "TEAMS_TOKEN_FILE": "your-value",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "your-value",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "your-value",
        "TEAMS_TIME_ZONE": "your-value",
        "TEAMS_OUTPUT_DIR": "your-value",
        "MCP_CONFIRM_MODE": "your-value",
        "MCP_CONFIRM_ELICITATION": "your-value",
        "MCP_CONFIRM_TTL_SECONDS": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add microsoft-teams --env TEAMS_WS_PORT=your-value --env FETCHPROXY_WS_HOST=your-value --env FETCHPROXY_IDENTITY_DIR=your-value --env TEAMS_ACCESS_TOKEN=your-value --env TEAMS_DISABLE_FETCHPROXY=your-value --env TEAMS_CHATSVC_REGION=your-value --env TEAMS_CHATSVC_BASE=your-value --env TEAMS_CAPTURE_TIMEOUT=your-value --env TEAMS_TOKEN_CACHE=your-value --env TEAMS_TOKEN_FILE=your-value --env TEAMS_SUBSTRATE_TOKEN_FILE=your-value --env TEAMS_SHAREPOINT_TOKEN_FILE=your-value --env TEAMS_TIME_ZONE=your-value --env TEAMS_OUTPUT_DIR=your-value --env MCP_CONFIRM_MODE=your-value --env MCP_CONFIRM_ELICITATION=your-value --env MCP_CONFIRM_TTL_SECONDS=your-value --env MCP_CONFIRM_SECRET=your-value -- npx -y @chrischall/microsoft-teams-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "your-value",
        "FETCHPROXY_WS_HOST": "your-value",
        "FETCHPROXY_IDENTITY_DIR": "your-value",
        "TEAMS_ACCESS_TOKEN": "your-value",
        "TEAMS_DISABLE_FETCHPROXY": "your-value",
        "TEAMS_CHATSVC_REGION": "your-value",
        "TEAMS_CHATSVC_BASE": "your-value",
        "TEAMS_CAPTURE_TIMEOUT": "your-value",
        "TEAMS_TOKEN_CACHE": "your-value",
        "TEAMS_TOKEN_FILE": "your-value",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "your-value",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "your-value",
        "TEAMS_TIME_ZONE": "your-value",
        "TEAMS_OUTPUT_DIR": "your-value",
        "MCP_CONFIRM_MODE": "your-value",
        "MCP_CONFIRM_ELICITATION": "your-value",
        "MCP_CONFIRM_TTL_SECONDS": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "microsoft-teams": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "your-value",
        "FETCHPROXY_WS_HOST": "your-value",
        "FETCHPROXY_IDENTITY_DIR": "your-value",
        "TEAMS_ACCESS_TOKEN": "your-value",
        "TEAMS_DISABLE_FETCHPROXY": "your-value",
        "TEAMS_CHATSVC_REGION": "your-value",
        "TEAMS_CHATSVC_BASE": "your-value",
        "TEAMS_CAPTURE_TIMEOUT": "your-value",
        "TEAMS_TOKEN_CACHE": "your-value",
        "TEAMS_TOKEN_FILE": "your-value",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "your-value",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "your-value",
        "TEAMS_TIME_ZONE": "your-value",
        "TEAMS_OUTPUT_DIR": "your-value",
        "MCP_CONFIRM_MODE": "your-value",
        "MCP_CONFIRM_ELICITATION": "your-value",
        "MCP_CONFIRM_TTL_SECONDS": "your-value",
        "MCP_CONFIRM_SECRET": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • TEAMS_WS_PORT env
    fetchproxy concentrator port used for the browser bridge. Defaults to 37149, the fleet-wide shared port.
  • FETCHPROXY_WS_HOST env
    Bind interface for the bridge (default 127.0.0.1; a literal IP only, anything else is ignored). Keep on loopback — it exists for ONE topology: a hosted child in its own network namespace.
  • FETCHPROXY_IDENTITY_DIR env
    Where to store the long-term fetchproxy identity keypair (default ~/.fetchproxy/identity/; an absolute path only, anything else is ignored). Exists for a host that runs a separate child per caller, s…
  • TEAMS_ACCESS_TOKEN 机密 env
    A pre-obtained Teams chat-service bearer token (the JWT itself). Leave blank to capture one from your signed-in Teams browser tab via the ContextMint Bridge extension.
  • TEAMS_DISABLE_FETCHPROXY env
    Set to true to never capture a token from the browser; then TEAMS_ACCESS_TOKEN is required. Leave blank.
  • TEAMS_CHATSVC_REGION env
    The Teams chat-service region in the API path. Defaults to amer. Leave blank unless your tenant lives elsewhere.
  • TEAMS_CHATSVC_BASE env
    Full override for the chat-service API base (default https://teams.cloud.microsoft/api/chatsvc/ /v1). Leave blank.
  • TEAMS_CAPTURE_TIMEOUT env
    Seconds to wait for the Teams tab to issue a chat-service request when capturing a token. Defaults to 30.
  • TEAMS_TOKEN_CACHE env
    Set to false to keep the captured token in memory only. Defaults to on: it is cached so a restart within its ~23h lifetime needs no browser.
  • TEAMS_TOKEN_FILE env
    Where the captured token is cached. Defaults to ~/.microsoft-teams-mcp/token.json.
  • TEAMS_SUBSTRATE_TOKEN_FILE env
    Where the captured Substrate search token is cached. Defaults to ~/.microsoft-teams-mcp/substrate-token.json.
  • TEAMS_SHAREPOINT_TOKEN_FILE env
    Where the captured SharePoint tokens are cached. Defaults to ~/.microsoft-teams-mcp/sharepoint-tokens.json.
  • TEAMS_TIME_ZONE env
    Default IANA time zone (e.g. America/New_York) for time_local on read results. Unset means UTC only.
  • TEAMS_OUTPUT_DIR env
    Folder teams_export_messages writes exports into. Unset means ~/Downloads/microsoft-teams-mcp.
  • MCP_CONFIRM_MODE env
    What the writes (teams_send_message, teams_react, teams_mark_read and the read tools' mark_read) do on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop): "ask-user" (default…
  • MCP_CONFIRM_ELICITATION env
    "off" never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE flow. Set it for a client that says it can show prompts but never does. Defaults to on.
  • MCP_CONFIRM_TTL_SECONDS env
    How long a confirmToken stays valid, in seconds. Defaults to 600.
  • MCP_CONFIRM_SECRET 机密 env
    Signing key for confirmTokens. Random per process by default; set it only if tokens must survive a server restart.

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

与“聊天与邮件”中的其他服务器比较i

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

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

常见问题

Microsoft Teams MCP 安全吗?

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

它需要哪些密钥或代码?

你需要填写:TEAMS_ACCESS_TOKEN, MCP_CONFIRM_SECRET

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.8.5)于昨天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

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

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

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

作者:Vexa-ai广泛使用★ 29492个月前更新

在云端运行✓ vexa.ai

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

作者:anypost正在增长↓ 5342/周★ 138533天前更新

电脑或云端✓ emailmd.dev

MCP WhatsApp Cloud

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

作者:codespar起步阶段↓ 63/周★ 2775个月前更新

在你的电脑上运行

作者的 README

打开 README

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

microsoft-teams-mcp

MCP server for Microsoft Teams — list every chat and channel you are in, read any of them by id or name, pull everything you have not read yet, read your Activity feed, fetch inline images, and — each one confirmed by you first — post messages and reactions, using your signed-in browser session.

This project was developed and is maintained by AI (Claude Code). Use at your

own discretion.

How it works

Chats and channels are read through Teams' own chat-service REST API (https://teams.cloud.microsoft/api/chatsvc/ /v1). The server needs a bearer token for it, and the only place one exists is your signed-in teams.cloud.microsoft tab: through the fetchproxy browser bridge it captures the Authorization header off a request the Teams web app makes to its chat service — once. From then on every call is a plain server-side request; the token is cached in ~/.microsoft-teams-mcp/token.json for its ~23h lifetime (so a restart needs no browser), and a 401 re-captures once and replays. teams.microsoft.com (the old host) is not supported.

So chats and channels no longer need to be open in the browser — any of them can be read by id or name, and listing covers every chat, not just the ones the sidebar shows. To capture a token, an idle tab is not enough: click into any chat so Teams calls its chat service.

The Activity feed comes from the same API. It is a chat-service conversation of its own (48:notifications), so teams_list_activity reads it like any chat — no Activity view (or any view) needs to be open, and nothing reads the page. The bridge is used for one thing only: capturing the token.

By default nothing here marks anything read. Reading a chat through this server leaves your Teams unread badges exactly as they were — unless you ask for it: teams_mark_read, or mark_read: true on teams_list_messages / teams_list_unread_messages, moves your read marker forward. The writes — teams_send_message, teams_react and marking read — go through the same chat-service API and change nothing until you confirm (see Writes).

Pairing

The bridge remembers a pairing only for the exact set of domains it approved, and approving a grant replaces the stored list of header captures. So all of this server's captures (chat service, SharePoint, Substrate search) declare the same scope: the three domains teams.cloud.microsoft, sharepoint.com and substrate.office.com, plus the chat-service and search captures and one capture per SharePoint host the server has already captured from. Each capture still reads only the one header it needs. The SharePoint hosts are remembered in ~/.microsoft-teams-mcp/bridge-scope.json (beside the SharePoint token cache; not written with TEAMS_TOKEN_CACHE=false) once a capture from them succeeds.

Up to 0.7, each capture declared only its own domain, so the bridge asked to pair again (or to update its grants) whenever the server moved between chats, search and files. Upgrading from 0.7 asks to pair once more, for the combined scope; after that it stays paired.

If you run the bridge in more than one browser or browser profile, each one is a different extension identity, and the server trusts only the one it paired with. Keep the bridge enabled in the browser you pair with (or re-pair deliberately with FETCHPROXY_TRUST_NEW_EXTENSION=1 after switching browsers).

SharePoint file download

A shared file in a chat or channel is not in Teams' own object store (where inline images live) — it is in SharePoint, which does not accept the chat-service token. So teams_get_attachment captures a separate SharePoint token and fetches the file through SharePoint's v2.1 shares API, then downloads the pre-signed link it returns (with no token attached).

Two things follow from that:

  • One pairing covers it. Every capture this server makes — chat service, SharePoint and search — declares the same ContextMint Bridge scope: the domains teams.cloud.microsoft, sharepoint.com and substrate.office.com, and the same list of header captures. So approving microsoft-teams-mcp once covers all three, and moving between chats, files and search never asks again (see Pairing). The first file from a new SharePoint host asks once to grant that host's capture.
  • Open the file once per SharePoint host. The SharePoint token is captured from the browser's own request to the file's SharePoint host, is short-lived (~53 minutes), and is scoped to one host family. So the first file from a given host in a session may need you to open it once in a signed-in Teams tab (that browser request is what the token is read from); after that the token is cached and refreshed until it expires. A file your account cannot open, or on a SharePoint host your token does not cover, comes back as metadata and its open link rather than failing.

Substrate search

teams_search_messages searches the way the Teams search box does: through Microsoft Substrate (POST https://substrate.office.com/searchservice/api/v2/query). Substrate does not accept the chat-service token either, so search captures a third token — off the request the Teams tab makes to substrate.office.com/searchservice/* when you run a search there — and caches it in ~/.microsoft-teams-mcp/substrate-token.json. As with the other two, it is read only from the request header, never from page storage.

  • No separate pairing. Search is part of the one bridge scope every capture declares (see Pairing), so the pairing that reads chats covers it.
  • Run a search in Teams once. The token is read off the Teams tab's own search request, so the first search may need you to type anything into the Teams search box and press Enter while the capture waits (TEAMS_CAPTURE_TIMEOUT, default 30s).
  • It falls back to scanning. In the default mode: "auto", when no Substrate token can be captured or the search fails, the tool scans recent conversations instead (source: "scan", with a fallback_reason), and does not wait on another capture for 10 minutes. mode: "substrate" fails instead; mode: "scan" never touches Substrate.
  • It does not re-capture in a loop. If a freshly captured token is still refused (401), the same 10-minute cooldown applies, so auto goes straight to the scan instead of waiting on the bridge every call.

Verified live 2026-10-12. A token captured off the Teams tab's own

search request (it lives about 1.4 hours) was replayed from Node against

read-only queries such as deploy. Confirmed: the request body (cvid, logicalId

and a scenario are required; the sort is `{ Field: "Time", SortDirection:

"Desc" }`), that no header beyond the bearer is needed, the response fields

(conversation in ClientThreadId, a channel root in ClientConversationId's

;messageid=, the message id in InternetMessageId, sender name and SMTP

address but no MRI, a plain-text Preview of at most ~255 characters, an

approximate Total), paging by from/size (up to 200), and that

conversation and since can be sent server-side as ClientThreadId:"…"

and an unquoted sent>=…. from stays client-side: Substrate's own from:

matches word prefixes, not "display name contains". A redacted response is

in tests/fixtures/substrate-query-response.json.

Install

npm i -g @chrischall/microsoft-teams-mcp

Requires the ContextMint Bridge browser extension and @fetchproxy/cli, on a matching major version. Install the bridge from its releases page: in Chrome, unzip the chrome zip and load it unpacked (chrome://extensions → Developer mode → Load unpacked). Safari isn't available yet (it will ship inside the ContextMint app, which has no public download), so use Chrome for now.

ContextMint Bridge is the fetchproxy browser extension under its new name, from the same maintainer — fetchproxy's own README (https://github.com/chrischall/fetchproxy#extension) points to it. Its source is public at https://github.com/nullnet-app/contextmint-bridge: build it yourself, or check a release zip against the .sha256 file published beside it (shasum -a 256 -c contextmint-bridge-chrome- .zip.sha256).

npm i -g @fetchproxy/cli

The first call prints a 6-digit pair code to approve in the ContextMint Bridge popup; the grant persists.

Install in opencode

opencode reads MCP servers from opencode.json (project) or ~/.config/opencode/opencode.json (global):

{

"mcp": { "servers": { "teams": { "type": "local", "command": ["npx", "-y", "@chrischall/microsoft-teams-mcp"] } } } }

Configuration

Everything is optional — by default the token is captured from your browser.

variablepurpose
TEAMS_ACCESS_TOKENA chat-service bearer token (the JWT itself) to use instead of capturing one. Never re-captured from the browser: when Teams rejects it, replace it.
TEAMS_DISABLE_FETCHPROXYtrue to never capture from the browser (then TEAMS_ACCESS_TOKEN is required).
TEAMS_CHATSVC_REGIONChat-service region in the API path. Defaults to amer.
TEAMS_CHATSVC_BASEFull override for the API base (default https://teams.cloud.microsoft/api/chatsvc/ /v1).
TEAMS_CAPTURE_TIMEOUTSeconds to wait for the Teams tab to issue a chat-service request. Defaults to 30. The bridge deadline is derived from it (window + 15s).
TEAMS_TOKEN_CACHEfalse to keep the captured token in memory only. Defaults to on.
TEAMS_TOKEN_FILEWhere the captured token is cached. Defaults to ~/.microsoft-teams-mcp/token.json.
TEAMS_SUBSTRATE_TOKEN_FILEWhere the captured Substrate search token is cached. Defaults to ~/.microsoft-teams-mcp/substrate-token.json. TEAMS_TOKEN_CACHE=false keeps it in memory too.
TEAMS_SHAREPOINT_TOKEN_FILEWhere the captured SharePoint tokens (one per host, used to download shared files) are cached. Defaults to ~/.microsoft-teams-mcp/sharepoint-tokens.json. TEAMS_TOKEN_CACHE=false keeps them in memory too.
TEAMS_TIME_ZONEDefault IANA time zone (e.g. America/New_York) for the tz argument of teams_list_messages and teams_list_unread_messages: each message then carries time_local (ISO 8601 with offset) next to its UTC time. Unset means no time_local unless tz is passed; a name Intl does not know is reported as an error.
TEAMS_OUTPUT_DIRFolder teams_export_messages (and teams_get_transcript with save) writes into (each export gets its own timestamped subfolder). Defaults to ~/Downloads/microsoft-teams-mcp. When set, a per-call dest must lie inside it; when unset, dest must be under ~/Downloads, ~/Documents or ~/Desktop.
TEAMS_WS_PORTfetchproxy concentrator port. Defaults to 37149, the fleet-wide shared port.
FETCHPROXY_WS_HOSTBind interface for the bridge (default 127.0.0.1; a literal IP only, anything else is ignored). Keep on loopback — it exists for ONE topology: a hosted child in its own network namespace.
FETCHPROXY_IDENTITY_DIRWhere to store the long-term fetchproxy identity keypair (default ~/.fetchproxy/identity/; an absolute path only, anything else is ignored). Exists for a host that runs a separate child per caller, so they can share one identity.

Tools

  • teams_list_conversations — every chat you are in (1:1, group and meeting chats, not just the visible sidebar, plus your 48:notes self-chat as kind self when Teams lists it), favorites and pinned chats first, then most recent activity first: id, kind, title, unread hint, ISO-8601 last-activity time, last-message preview and sender. unread_only (exact — see belo

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

问 PopNx