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

Microsoft Teams API

作者:Maxim-Mazurok版本 1.10.1i★ –i在你的电脑上运行
注册名称io.github.Maxim-Mazurok/teams-api

安装

概览

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

AI-native Microsoft Teams integration — read chats, send messages, search people

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: TEAMS_EMAIL, TEAMS_AUTO, TEAMS_HEADLESS, TEAMS_LOGIN, TEAMS_TOKEN, TEAMS_REGION, TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN, TEAMS_DEBUG, TEAMS_TELEMETRY, TEAMS_TELEMETRY_PATH, TEAMS_IMAGE_DESCRIPTION_API_KEY, TEAMS_IMAGE_DESCRIPTION_MODEL, TEAMS_IMAGE_DESCRIPTION_BASE_URL

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

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "teams-api": {
      "command": "npx",
      "args": [
        "-y",
        "teams-api",
        "teams-api-mcp"
      ],
      "env": {
        "TEAMS_EMAIL": "your-value",
        "TEAMS_AUTO": "your-value",
        "TEAMS_HEADLESS": "your-value",
        "TEAMS_LOGIN": "your-value",
        "TEAMS_TOKEN": "your-value",
        "TEAMS_REGION": "your-value",
        "TEAMS_BEARER_TOKEN": "your-value",
        "TEAMS_SUBSTRATE_TOKEN": "your-value",
        "TEAMS_DEBUG": "your-value",
        "TEAMS_TELEMETRY": "your-value",
        "TEAMS_TELEMETRY_PATH": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_API_KEY": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_MODEL": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_BASE_URL": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add teams-api --env TEAMS_EMAIL=your-value --env TEAMS_AUTO=your-value --env TEAMS_HEADLESS=your-value --env TEAMS_LOGIN=your-value --env TEAMS_TOKEN=your-value --env TEAMS_REGION=your-value --env TEAMS_BEARER_TOKEN=your-value --env TEAMS_SUBSTRATE_TOKEN=your-value --env TEAMS_DEBUG=your-value --env TEAMS_TELEMETRY=your-value --env TEAMS_TELEMETRY_PATH=your-value --env TEAMS_IMAGE_DESCRIPTION_API_KEY=your-value --env TEAMS_IMAGE_DESCRIPTION_MODEL=your-value --env TEAMS_IMAGE_DESCRIPTION_BASE_URL=your-value -- npx -y teams-api teams-api-mcp

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "teams-api": {
      "command": "npx",
      "args": [
        "-y",
        "teams-api",
        "teams-api-mcp"
      ],
      "env": {
        "TEAMS_EMAIL": "your-value",
        "TEAMS_AUTO": "your-value",
        "TEAMS_HEADLESS": "your-value",
        "TEAMS_LOGIN": "your-value",
        "TEAMS_TOKEN": "your-value",
        "TEAMS_REGION": "your-value",
        "TEAMS_BEARER_TOKEN": "your-value",
        "TEAMS_SUBSTRATE_TOKEN": "your-value",
        "TEAMS_DEBUG": "your-value",
        "TEAMS_TELEMETRY": "your-value",
        "TEAMS_TELEMETRY_PATH": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_API_KEY": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_MODEL": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_BASE_URL": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "teams-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "teams-api",
        "teams-api-mcp"
      ],
      "env": {
        "TEAMS_EMAIL": "your-value",
        "TEAMS_AUTO": "your-value",
        "TEAMS_HEADLESS": "your-value",
        "TEAMS_LOGIN": "your-value",
        "TEAMS_TOKEN": "your-value",
        "TEAMS_REGION": "your-value",
        "TEAMS_BEARER_TOKEN": "your-value",
        "TEAMS_SUBSTRATE_TOKEN": "your-value",
        "TEAMS_DEBUG": "your-value",
        "TEAMS_TELEMETRY": "your-value",
        "TEAMS_TELEMETRY_PATH": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_API_KEY": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_MODEL": "your-value",
        "TEAMS_IMAGE_DESCRIPTION_BASE_URL": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • TEAMS_EMAIL env
    Corporate email address for Teams authentication
  • TEAMS_AUTO env
    Set to "true" to use auto-login (macOS + FIDO2)
  • TEAMS_HEADLESS env
    Set to "true" to run FIDO2 auto-login without a visible browser
  • TEAMS_LOGIN env
    Set to "true" to use interactive browser login (all platforms)
  • TEAMS_TOKEN 机密 env
    Pre-existing Skype token for direct authentication
  • TEAMS_REGION env
    API region (required with TEAMS_TOKEN, auto-detected otherwise)
  • TEAMS_BEARER_TOKEN 机密 env
    Middle-tier bearer token for profile resolution
  • TEAMS_SUBSTRATE_TOKEN 机密 env
    Substrate bearer token for people/chat search
  • TEAMS_DEBUG env
    Set to "true" to use Chrome debug session for token capture
  • TEAMS_TELEMETRY env
    Set to "true" to enable full debug telemetry logging (contributor use; logs all inputs and outputs locally)
  • TEAMS_TELEMETRY_PATH env
    Override the telemetry output file path (default: platform-appropriate ~/Library/... or ~/.local/share/...)
  • TEAMS_IMAGE_DESCRIPTION_API_KEY 机密 env
    API key for the OpenAI-compatible vision endpoint used by teams_describe_image
  • TEAMS_IMAGE_DESCRIPTION_MODEL env
    Model name for teams_describe_image (defaults to gpt-4o-mini)
  • TEAMS_IMAGE_DESCRIPTION_BASE_URL env
    OpenAI-compatible base URL for teams_describe_image

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Microsoft Teams API 安全吗?

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

它需要哪些密钥或代码?

你需要填写:TEAMS_TOKEN, TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN, TEAMS_IMAGE_DESCRIPTION_API_KEY

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

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

替代选择

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

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

Vexa

作者:Vexa-ai

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

在云端运行★ 2,949Apache-2.02个月前更新
安装

emailmd

作者:anypost

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

电脑或云端★ 1,385MIT32天前更新
安装

MCP WhatsApp Cloud

作者:codespar

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

在你的电脑上运行★ 277MIT5个月前更新
安装

作者的 README

打开 README

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

teams-api

AI-native Microsoft Teams integration — read conversations, send messages, and manage members via the Teams Chat Service REST API.

Designed for autonomous AI agents that need to interact with Teams: read messages, reply to people, monitor conversations, and participate in team workflows.

[!NOTE]

This project was AI-generated using Claude Opus 4.6 with human guidance and review.

Getting Started

teams-api can be used in three ways:

  1. MCP server for editors and AI tools — the recommended path for most users.
  2. CLI for direct terminal use.
  3. Programmatic Node.js library — advanced, documented near the end.
Prerequisites
  • [Node.js](https://nodejs.org/) (v18 or later) — required for npx, which all MCP and CLI commands use.
Install in your editor

The quickest way to get started is to click one of the install badges above, or follow the instructions for your editor below.

Editor-specific instructions

VS Code / VS Code Insiders

Option 1 — One-click install:

Option 2 — CLI:

macOS / Linux:

# VS Code

code --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'

VS Code Insiders

code-insiders --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'

Windows (PowerShell):

# VS Code

code --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'

VS Code Insiders

code-insiders --add-mcp '{"name":"teams","command":"npx","args":["-y","-p","teams-api@latest","teams-api-mcp"],"env":{"TEAMS_LOGIN":"true"}}'

Windows (CMD):

rem VS Code

code --add-mcp "{\"name\":\"teams\",\"command\":\"npx\",\"args\":[\"-y\",\"-p\",\"teams-api@latest\",\"teams-api-mcp\"],\"env\":{\"TEAMS_LOGIN\":\"true\"}}"

rem VS Code Insiders code-insiders --add-mcp "{\"name\":\"teams\",\"command\":\"npx\",\"args\":[\"-y\",\"-p\",\"teams-api@latest\",\"teams-api-mcp\"],\"env\":{\"TEAMS_LOGIN\":\"true\"}}"

Option 3 — Manual config:

Add to your VS Code MCP config (.vscode/mcp.json or User Settings):

{

"mcpServers": { "teams": { "command": "npx", "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"], "env": { "TEAMS_LOGIN": "true" } } } }

Cursor

Or add to ~/.cursor/mcp.json:

{

"mcpServers": { "teams": { "command": "npx", "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"], "env": { "TEAMS_LOGIN": "true" } } } }

Claude Desktop

Add to claude_desktop_config.json (how to find it):

{

"mcpServers": { "teams": { "command": "npx", "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"], "env": { "TEAMS_LOGIN": "true" } } } }

Claude Code

claude mcp add teams -- npx -y -p teams-api@latest teams-api-mcp

Then set the environment variable TEAMS_LOGIN=true in your shell before starting Claude Code. The server will ask for your email interactively on first use.

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{

"mcpServers": { "teams": { "command": "npx", "args": ["-y", "-p", "teams-api@latest", "teams-api-mcp"], "env": { "TEAMS_LOGIN": "true" } } } }

[!TIP]

On macOS with a FIDO2 passkey, replace TEAMS_LOGIN with TEAMS_AUTO for fully unattended auth. See Authentication for details.

CLI

You can also use the CLI directly without installing anything:

npx -y -p teams-api@latest teams-api auth --login

npx -y -p teams-api@latest teams-api list-conversations --login --limit 20

If you use the CLI often, a global install is optional:

npm install -g teams-api

teams-api auth --login

Agent skill

Compatible coding agents can install the optional teams-api skill to learn when and how to use the CLI or SDK:

npx -y skills add Maxim-Mazurok/teams-api --skill teams-api

The installer detects supported agents and asks whether to install the skill for the current project or globally. Once installed, the agent loads it automatically for relevant Teams tasks.

Advanced Topics

Manual token usage, debug-session auth, and programmatic Node.js usage are covered later in this README.

Platform support

FeaturemacOSWindows / Linux
Interactive loginFull supportFull support
Auto-login (FIDO2)Full supportNot supported
Debug sessionFull supportFull support
Direct tokenFull supportFull support
Token cachingmacOS KeychainWindows DPAPI / Linux secret-tool
CLI & MCP serverFull supportFull support
Programmatic APIFull supportFull support

[!NOTE]

Windows Defender false positive: Older versions of this package used inline PowerShell to call the Windows DPAPI — a pattern that Windows Defender flags as ransomware-like behavior. This has been replaced with native Windows Credential Manager storage via keytar. If you hit issues on an older version, upgrade and re-run teams-api auth --login. See SECURITY.md for details.

Authentication

Most users do not need to manage tokens manually.

If you use interactive login, auto-login, or a Chrome debug session, teams-api captures the full token bundle automatically from Teams web traffic. That includes the base skypeToken plus the extra bearer tokens used for profile resolution and reliable people/chat/channel search.

Those flows also detect the Teams chat region automatically from the intercepted request URLs, so most users do not need to set --region or TEAMS_REGION.

On macOS, prefer auto-login when you have a platform authenticator / FIDO2 passkey set up. On other platforms, use interactive login.

Direct token usage is the advanced/manual path.

MethodDescriptionAutomationPlatform
Auto-loginPlaywright launches system Chrome and captures the full token bundleFully unattendedmacOS
Interactive loginOpens a browser window and captures skype, middle-tier, and Substrate tokensOne-time manualAll
Debug sessionConnects to a running Chrome instance and captures the full token bundleSemi-manualAll
Direct tokenProvide a previously captured token or token bundle explicitlyManualAll
Auto-login (macOS only)

Requires macOS with a platform authenticator (e.g. Intune Company Portal) and a FIDO2 passkey enrolled. Fully unattended — no browser window appears.

Interactive login (recommended for Windows / Linux)

The easiest cross-platform option. A browser window opens, you log in with any method your organization supports (password, MFA, passkey, etc.), and the token is captured automatically:

teams-api auth --login

Optionally pre-fill your email:

teams-api auth --login --email you@example.com

[!NOTE]

Interactive login prefers an installed browser (Edge or Chrome) when available, and falls back to Playwright's bundled Chromium.

Advanced / manual methods

Debug session — start Chrome with --remote-debugging-port=9222, navigate to Teams and log in, then run:

teams-api auth --debug-port 9222

Direct token — advanced/manual only. Extract x-skypetoken from browser DevTools (Network tab) and pass it directly:

teams-api list-conversations --token "<paste-token-here>" --region emea

If you want reliable people/chat/channel lookup and profile resolution on the direct-token path, also pass the extra bearer tokens captured from Teams requests:

teams-api find-people \

--token " " \ --bearer-token " " \ --substrate-token " " \ --region emea \ --query "Jane Doe"

[!TIP]

Skip this section if you are using --login, --auto, TEAMS_LOGIN, or TEAMS_AUTO. Those modes captur

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

问 PopNx