MCP ServerSTDIOOfficialv1.5.0

Microsoft Teams API MCP Server

Read Microsoft Teams chats, send messages, and search people directly from your AI workflows. Built for developers integrating Teams into AI agents and automation tools via multiple authentication methods.

io.github.Maxim-Mazurok/teams-api

Microsoft Teams API runs locally over stdio. Test it on your machine with MCP Playground Desktop:

Hosted URL

Local install

Transport

STDIO

Auth

No auth required

What the Microsoft Teams API MCP server does

How models use it and what it is built for.

Read Microsoft Teams chats, send messages, and search people directly from your AI workflows. Built for developers integrating Teams into AI agents and automation tools via multiple authentication methods.

Connect to Microsoft Teams API

Local install — runs as a subprocess.

npx teams-api@1.5.0

Environment variables

Configuration this server reads at startup.

  • TEAMS_EMAIL

    Corporate email address for Teams authentication

  • TEAMS_AUTO

    Set to "true" to use auto-login (macOS + FIDO2)

  • TEAMS_LOGIN

    Set to "true" to use interactive browser login (all platforms)

  • TEAMS_TOKENSecret

    Pre-existing Skype token for direct authentication

  • TEAMS_REGION

    API region (required with TEAMS_TOKEN, auto-detected otherwise)

  • TEAMS_BEARER_TOKENSecret

    Middle-tier bearer token for profile resolution

  • TEAMS_SUBSTRATE_TOKENSecret

    Substrate bearer token for people/chat search

  • TEAMS_DEBUG

    Set to "true" to use Chrome debug session for token capture

  • TEAMS_TELEMETRY

    Set to "true" to enable full debug telemetry logging (contributor use; logs all inputs and outputs locally)

  • TEAMS_TELEMETRY_PATH

    Override the telemetry output file path (default: platform-appropriate ~/Library/... or ~/.local/share/...)

Resources

Where to find authoritative docs and source for Microsoft Teams API.

Example prompts for Microsoft Teams API

Paste any of these into Agent Studio after connecting Microsoft Teams API.

  • Search for all messages from john.doe@company.com in the last week
  • Send a message to the engineering channel with this update
  • Find people in the organization matching the name pattern
  • What authentication methods does this server support and how do I configure them

Microsoft Teams API MCP server — FAQ

Common questions about connecting and running Microsoft Teams API.

  • What authentication methods does the Teams API MCP server support?

    It supports four methods: auto-login with FIDO2 (macOS), interactive browser login (all platforms), pre-existing Skype token, and bearer tokens for profile/people search. Set TEAMS_AUTO=true, TEAMS_LOGIN=true, TEAMS_TOKEN, or use TEAMS_BEARER_TOKEN/TEAMS_SUBSTRATE_TOKEN respectively.

  • How do I set up the Teams API MCP server?

    Install via `npx teams-api@1.5.0`, then set your authentication environment variables (TEAMS_EMAIL for browser login, or TEAMS_TOKEN + TEAMS_REGION for token-based auth). For auto-login on macOS, set TEAMS_AUTO=true.

  • Can I use this server without interactive login?

    Yes. If you have a Skype token, set TEAMS_TOKEN and TEAMS_REGION to authenticate non-interactively. Alternatively, use TEAMS_AUTO=true on macOS with FIDO2, or provide pre-generated bearer tokens (TEAMS_BEARER_TOKEN, TEAMS_SUBSTRATE_TOKEN).

  • What should I do if authentication isn't working?

    Enable debug logging by setting TEAMS_DEBUG=true to capture token information via Chrome debug session, or set TEAMS_TELEMETRY=true for full input/output logging. Check that your TEAMS_REGION matches your token's region if using TEAMS_TOKEN.

  • Does this server support reading and writing Teams messages?

    Yes, the server supports reading chats, sending messages, and searching people. Capabilities depend on your authentication method and the tokens/permissions associated with your account.

Skip the local setup — run MCP in your browser

MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 60+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.

Open Agent Studio

In your browser

MCP Agent Studio

Server has a public URL? Chat with 90+ models on it, watch every tool call, and compare models side by side.

Open MCP Agent Studio →

On your computer

MCP Playground Desktop

Server runs on localhost or over stdio? The browser can’t reach it. The desktop app can, with 90+ models in Agent Studio. Download free

Related servers

More on MCP Playground