Microsoft Teams logo

Microsoft Teams

Connects Claude to Microsoft Teams for reading, searching, sending, and replying to messages through Microsoft Graph.

Install Microsoft 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": {
    "microsoft-teams": {
      "command": "npx",
      "args": [
        "-y",
        "microsoft-teams-mcp-server"
      ],
      "env": {
        "TEAMS_CLIENT_ID": "YOUR_VALUE_HERE",
        "TEAMS_CLIENT_SECRET": "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

Microsoft Teams MCP server connects Claude to Microsoft Teams through Microsoft Graph and delegated Microsoft 365 sign-in. It exposes tools for browsing teams, channels, chats, and messages, plus searching, posting, replying, and viewing the user's profile. Use it when you want Claude to summarize or manage Teams conversations without switching applications. It supports local STDIO use and hosted HTTP/SSE deployments with isolated OAuth sessions.

Use cases

  • Summarize recent activity in a Teams channel
  • Search Teams messages for a project issue
  • Read replies to a channel thread
  • Send direct or group chat messages
  • List teams and channels available to a user

Key features

  • Microsoft Graph OAuth authentication
  • Team, channel, and chat browsing
  • Cross-Teams message search
  • Channel posts and threaded replies
  • Local token caching with silent refresh
  • STDIO and HTTP/SSE transports

Tools11

What Microsoft Teams lets your agent do. Expand a tool for its parameters.

Self-reported~132 tokens of context

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.

14/15 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · microsoft-teams-mcp-server (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads357Package downloads in the last 30 days.
Last commit28d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.

How Microsoft Teams works

What Microsoft Teams MCP server does

Microsoft Teams MCP server gives MCP-compatible AI clients access to Microsoft Teams conversations through Microsoft Graph. It supports team and channel discovery, recent channel messages, chat and group-chat messages, cross-Teams message search, channel posts, threaded replies, direct messages, and Microsoft 365 profile lookup.

The server uses the signed-in user's delegated permissions. Each person sees the teams, channels, chats, and messages available to their own account. Messages are passed between the client and Microsoft Graph; the local sign-in token is cached for later sessions.

Typical requests include finding a message about a topic, summarizing a channel's recent activity, reading replies to a post, sending a chat message, or replying to a channel thread.

How it works

The client communicates with the server over MCP. Local Claude Code and Claude Desktop setups can use STDIO, while hosted or remote deployments can use HTTP/SSE. The server starts an OAuth sign-in flow when a user connects, opens Microsoft sign-in in a browser for local use, and obtains delegated Microsoft Graph access.

After authentication, tokens are cached locally in .data/tokens and refreshed silently. In a multi-user deployment, each session authenticates separately and keeps its OAuth tokens isolated. The server can use the shared common authority for users from different Microsoft 365 organizations.

Microsoft Graph permissions are required for team, channel, chat, message, and profile operations. Sending and replying are separate write actions, so the MCP client can request approval before those tool calls.

Setup and configuration

A local setup requires a Microsoft 365 work or school account, an Azure app registration, and permission to create or use that registration. Configure a web redirect URI such as http://localhost:3333/callback for local sign-in. Add a client secret and the delegated Microsoft Graph permissions listed for channel messages, chats, teams, channels, and User.Read, then provide the client ID and secret to the process.

For Claude Code, the package can be launched with npx and the TEAMS_CLIENT_ID and TEAMS_CLIENT_SECRET environment variables. Claude Desktop uses the same command and environment values in its MCP configuration. A source deployment can be built with npm install and npm run build, then started with Node.js; hosted deployments also configure BASE_URL, REDIRECT_URI, and an HTTP transport mode.

If an organization already hosts the server, an end user follows the authorization link and signs in without configuring Azure. Deleting .data/tokens signs out the local installation.

Tools and capabilities

The server exposes 11 tools:

  • teams_list_teams lists the user's Teams.
  • teams_list_channels lists channels within a team.
  • teams_read_channel_messages reads recent messages from a channel.
  • teams_send_channel_message posts to a channel.
  • teams_reply_to_message replies in a channel thread.
  • teams_read_message_replies retrieves thread replies.
  • teams_list_chats lists direct and group chats.
  • teams_read_chat_messages reads messages from a chat.
  • teams_send_chat_message sends a direct or group chat message.
  • teams_search_messages searches messages across the user's Teams.
  • teams_get_profile retrieves the Microsoft 365 profile.

The implementation includes automatic retries for throttled Graph API calls and selects a transport based on how it is launched.

Limitations and notes

Access is limited to what the authenticated Microsoft 365 account can already see. Message search across Teams requires a work account and does not work with personal Microsoft accounts. Azure permissions or administrator consent may be needed before the first successful connection.

The server does not provide a shared account automatically: each connected user signs in with their own Microsoft account. For safer operation, allow read and search tools without repeated approval while retaining confirmation for channel posts, replies, and chat messages. Microsoft Graph error messages are returned when permissions or consent are missing.

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 Microsoft Teams

Microsoft Teams is an MCP server that connects AI clients to Microsoft Teams through Microsoft Graph. Its main tools list teams, channels, and chats; read and search messages; send channel or chat messages; reply to threads; read replies; and retrieve the user's Microsoft 365 profile using delegated sign-in.

Install it with the published package through `npx`, then provide `TEAMS_CLIENT_ID` and `TEAMS_CLIENT_SECRET` in the MCP client configuration. Register an Azure app with the required delegated Graph permissions, start the client, and complete the browser-based Microsoft sign-in.

Yes, Microsoft Teams works with Claude Desktop through an MCP configuration that launches the package with STDIO. Add the command and the client ID and secret to `claude_desktop_config.json`, set `TRANSPORT_MODE` to `stdio`, and authenticate in the browser on first use.

No, cross-Teams message search requires a Microsoft 365 work or school account. The server uses the signed-in account's delegated Microsoft Graph access, so available teams, channels, chats, and messages are limited by that account's permissions.

Deploy the built Node.js application to a Node.js host, configure a production `BASE_URL` and `REDIRECT_URI`, and run it with HTTP transport. Each user then completes their own Microsoft sign-in, while the server keeps OAuth tokens isolated between sessions.

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 PreviewMicrosoft Teams AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/microsoft-teams?style=directory)](https://allmcps.com/mcp/microsoft-teams)
HTML Embed
<a href="https://allmcps.com/mcp/microsoft-teams"><img src="https://allmcps.com/api/badge/microsoft-teams?style=directory" alt="Microsoft Teams on AllMCPs" /></a>