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:
Local install
STDIO
No auth required
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.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Corporate email address for Teams authentication
Set to "true" to use auto-login (macOS + FIDO2)
Set to "true" to use interactive browser login (all platforms)
Pre-existing Skype token for direct authentication
API region (required with TEAMS_TOKEN, auto-detected otherwise)
Middle-tier bearer token for profile resolution
Substrate bearer token for people/chat search
Set to "true" to use Chrome debug session for token capture
Set to "true" to enable full debug telemetry logging (contributor use; logs all inputs and outputs locally)
Override the telemetry output file path (default: platform-appropriate ~/Library/... or ~/.local/share/...)
Where to find authoritative docs and source for Microsoft Teams API.
Paste any of these into Agent Studio after connecting Microsoft Teams API.
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.
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 StudioIn 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
Judges Panel
45 judges that evaluate AI-generated code for security, cost, and quality with built-in AST.
Addozhang Nexus
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Cyanheads MCP Ts Template
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Chernistry Bernstein
Declarative agent orchestration for engineering teams