Microsoft Teams API MCP Server

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

Local serverstdio

What is the Microsoft Teams API MCP server?

Microsoft Teams API MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. AI-native Microsoft Teams integration — read chats, send messages, search people.

What you get

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

What the assistant can call

Once Microsoft Teams API is connected, these are the calls the assistant has available:

  • Flag — Description
  • Prerequisites — The Prerequisites tool exposed by this server
  • Examples — The Examples tool exposed by this server

Setting it up

teams-api on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration and credentials

You will need 8 environment variables: TEAMS_LOGIN, TEAMS_TOKEN, TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN, TEAMS_REGION, TEAMS_AGENT_MARKER, TEAMS_DELETE_MODE, TEAMS_DELETE_TOMBSTONE. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js (v18 or later) — required for npx, which all MCP and CLI commands use.

Choosing this one

Among the team communication options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Microsoft Teams API's toolset — Flag, Prerequisites, Examples — is a fair guide to whether it matches your workflow. It is maintained by Maxim-Mazurok; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the microsoft teams api mcp server does with a few real requests.

Available tools

ToolWhat it does
FlagDescription
PrerequisitesThe Prerequisites tool exposed by this server.
ExamplesThe Examples tool exposed by this server.

How to install the Microsoft Teams API MCP server

{
  "mcpServers": {
    "teams-api": {
      "command": "npx",
      "args": ["-y", "teams-api"],
      "env": {
        "TEAMS_LOGIN": "your-value",
        "TEAMS_TOKEN": "your-value",
        "TEAMS_BEARER_TOKEN": "your-value",
        "TEAMS_SUBSTRATE_TOKEN": "your-value",
        "TEAMS_REGION": "your-value",
        "TEAMS_AGENT_MARKER": "your-value",
        "TEAMS_DELETE_MODE": "your-value",
        "TEAMS_DELETE_TOMBSTONE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (v18 or later) — required for npx, which all MCP and CLI commands use.
VariableDescriptionRequired
TEAMS_LOGINConfiguration value read at startup.Optional
TEAMS_TOKENCredential the server authenticates with.Yes
TEAMS_BEARER_TOKENCredential the server authenticates with.Yes
TEAMS_SUBSTRATE_TOKENCredential the server authenticates with.Yes
TEAMS_REGIONConfiguration value read at startup.Optional
TEAMS_AGENT_MARKERConfiguration value read at startup.Optional
TEAMS_DELETE_MODEConfiguration value read at startup.Optional
TEAMS_DELETE_TOMBSTONEConfiguration value read at startup.Optional

Example prompts to try

  • Use Microsoft Teams API to Flag.
  • Use Microsoft Teams API to Prerequisites.
  • Use Microsoft Teams API to Examples.

Frequently asked questions

It connects Microsoft Teams API to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Flag, Prerequisites, Examples) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Microsoft Teams API directly.