MCP Teams logo

MCP Teams

Connects AI agents to Microsoft Teams for reading and guarded message posting through Microsoft Graph.

Install MCP Teams

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-teams": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-teams"
      ],
      "env": {
        "TEAMS_CLIENT_ID": "YOUR_VALUE_HERE",
        "TEAMS_TENANT_ID": "YOUR_VALUE_HERE",
        "TEAMS_MODE": "YOUR_VALUE_HERE",
        "TEAMS_AUTH": "YOUR_VALUE_HERE",
        "TEAMS_CLIENT_SECRET": "YOUR_VALUE_HERE",
        "TEAMS_TOKEN": "YOUR_VALUE_HERE",
        "TEAMS_ALLOW_SEND": "YOUR_VALUE_HERE",
        "TEAMS_ALLOW_DELETE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

mcp-teams connects Microsoft Teams to MCP clients through Microsoft Graph, exposing tools for teams, channels, members, chats, messages, replies, and guarded writes. It uses browser-based Entra sign-in with cached token refresh by default, while also supporting app-only and supplied-token authentication. Read-only mode is the default; posting and deletion require progressively higher modes, explicit flags, and optional human approval. Use it when an agent needs controlled access to Teams conversations without giving every session write access.

Use cases

  • List joined Teams and inspect their channels
  • Read channel threads and group chat messages
  • Post approved updates to a channel
  • Send controlled messages to Teams chats
  • Audit or soft-delete your own channel messages

Key features

  • Microsoft Graph access to Teams data
  • Read-only mode enabled by default
  • Browser-based Entra sign-in with token caching
  • Guarded channel and chat messaging
  • Team allowlists and protected teams
  • Human approval, dry-run, and audit controls

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @dockndevai/mcp-teams (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads448Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.

How MCP Teams works

What mcp-teams does

mcp-teams gives MCP-compatible agents access to Microsoft Teams through Microsoft Graph. Its read tools can identify the signed-in account, enumerate joined teams and their channels, inspect team members, retrieve channel messages and threaded replies, and browse one-to-one or group chats. The server also supports writing operations: posting to a channel, replying to a channel thread, sending a chat message, and soft-deleting one of the signed-in user's own channel messages.

The available tool set depends on the configured security mode. Read-only operation exposes nine read tools. Write and delete tools are withheld unless the corresponding mode and safety settings allow them.

How it works

On the default interactive path, the first run opens a Microsoft sign-in page. Authentication uses an Entra public-client app with authorization code and PKCE through a loopback redirect at http://localhost; the server does not receive the user's password. Access and refresh tokens are stored in ~/.mcp-teams/token.json with restrictive permissions, and later runs refresh the session silently.

The server can instead use client credentials when a client secret is configured, or accept a Microsoft Graph bearer token supplied by the operator. Some Teams messaging APIs require delegated permissions and may not work with app-only tokens without Microsoft's protected-API approval.

Write operations receive additional safeguards. The server can restrict posting to an allowlist, protect selected teams from posting, require client-side human approval, validate writes in dry-run mode, and emit JSON audit records to stderr. Delete requests are soft-deletes limited to the user's own messages.

Setup and configuration

Install and run the package with:

Terminal
npx -y @dockndevai/mcp-teams

Create an Entra app registration as a public client, add the http://localhost redirect URI under mobile and desktop applications, and set its application ID as TEAMS_CLIENT_ID. The example configuration uses TEAMS_TENANT_ID=common and TEAMS_MODE=read-only.

Delegated Graph permissions for the read features include Team.ReadBasic.All, Channel.ReadBasic.All, and ChannelMessage.Read.All. Posting additionally requires ChannelMessage.Send and Chat.ReadWrite. Use TEAMS_AUTH to select interactive, client-credentials, or token authentication when automatic selection is not suitable.

Tools and capabilities

  • Confirm the active account with whoami.
  • List joined teams, team channels, and team members.
  • Read channel messages, individual message bodies, threaded replies, chats, and chat messages.
  • Post channel messages, reply to channel threads, and send chat messages in read-write mode when TEAMS_ALLOW_SEND is enabled.
  • Soft-delete the user's own channel message in admin mode when TEAMS_ALLOW_DELETE is enabled.
  • Limit write targets with TEAMS_TEAM_ALLOWLIST and TEAMS_PROTECTED_TEAMS.
  • Require approval with MCP elicitation or enforce refusal when elicitation is unavailable through TEAMS_REQUIRE_HUMAN_APPROVAL.

Limitations and notes

Most Teams messaging APIs are delegated-only, making interactive sign-in the primary authentication route. Client-credentials authentication may need protected-API approval from Microsoft. Write tools are intentionally absent from lower security modes rather than merely blocked at execution time.

When a client supports MCP elicitation, guarded writes pause for human approval and show the operation plus redacted arguments. Delete approval also checks message version details and refuses the operation if the message changed. Clients without elicitation use the configured allow flags unless human approval is required. TEAMS_DRY_RUN validates and logs writes without executing them, while TEAMS_AUDIT_LOG controls JSON audit output and is enabled by default.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Teams

mcp-teams is an MCP server that connects AI agents to Microsoft Teams through Microsoft Graph. Its main tools list teams, channels, members, messages, replies, and chats, while higher security modes add channel posting, thread replies, chat sending, and soft-deletion of the user's own channel messages.

Install it with `npx -y @dockndevai/mcp-teams` and add it to your MCP client's server configuration. Create an Entra public-client app, add the `http://localhost` redirect URI, and set its application ID as `TEAMS_CLIENT_ID`.

Use interactive browser sign-in by setting `TEAMS_CLIENT_ID`; the server opens Microsoft sign-in and caches tokens for later refresh. It also supports client credentials with a secret or a pre-obtained Graph token through the corresponding authentication settings.

Set `TEAMS_MODE` to `read-write` and enable `TEAMS_ALLOW_SEND`. Microsoft Graph must also grant the required delegated permissions, including `ChannelMessage.Send` for channel posts and `Chat.ReadWrite` for chat messages.

Yes, but only in `admin` mode with `TEAMS_ALLOW_DELETE` enabled, and only for the signed-in user's own channel messages. Deletion is soft, and approval checks can refuse the operation if the message changed.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Teams AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-teams?style=directory)](https://allmcps.com/mcp/mcp-teams)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-teams"><img src="https://allmcps.com/api/badge/mcp-teams?style=directory" alt="MCP Teams on AllMCPs" /></a>