Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Microsoft Teams API

by Maxim-Mazurokversion 1.10.1i★ –iRuns on your computer
Registry nameio.github.Maxim-Mazurok/teams-api

Install

Overview

Description from the maker (original English)

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

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Chat & email
  • You need to fill in: TEAMS_TOKEN, TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN, TEAMS_IMAGE_DESCRIPTION_API_KEY

Install

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

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: 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

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into 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"
      }
    }
  }
}

Run this in your terminal

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

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.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"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "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"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • 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 secret env
    Pre-existing Skype token for direct authentication
  • TEAMS_REGION env
    API region (required with TEAMS_TOKEN, auto-detected otherwise)
  • TEAMS_BEARER_TOKEN secret env
    Middle-tier bearer token for profile resolution
  • TEAMS_SUBSTRATE_TOKEN secret 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 secret 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

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

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 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Maxim-Mazurok, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – 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

Compared with others in Chat & emaili

  • More stars than 0% of the other 1831 servers in this category
  • Published to the registry more recently than 70% of the other 1831 servers in this category
  • Basic checks equal to or better than 100% of the other 1831 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 Microsoft Teams API safe?

It passed 1 of 1 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?

You need to fill in: TEAMS_TOKEN, TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN, TEAMS_IMAGE_DESCRIPTION_API_KEY

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 –, and the latest version (1.10.1) reached the registry 12 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Vexa, emailmd, MCP WhatsApp Cloud

Alternatives

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

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

Vexa

by Vexa-ai

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

Runs in the cloud★ 2,949Apache-2.0Updated 2 months ago
Install

emailmd

by anypost

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

Computer or cloud★ 1,385MITUpdated 32 days ago
Install

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

Runs on your computer★ 277MITUpdated 5 months ago
Install

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.

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

Only the beginning is shown; read the rest in the repo

Ask PopNx