# Microsoft Teams [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/SurgeEnterpriseAI/teams-mcp-server  
**GitHub Stars:** 2  
**npm Downloads (last month):** 357  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/microsoft-teams

## Description
Connect Claude to Microsoft Teams — read/send messages, list channels, search chats.

## Tools
Capabilities this server exposes over MCP:

- **teams_list_teams** — List all your Teams
- **teams_list_channels** — List channels in a team
- **teams_read_channel_messages** — Read recent channel messages
- **teams_send_channel_message** — Send a message to a channel
- **teams_reply_to_message** — Reply in a channel thread
- **teams_read_message_replies** — Read thread replies
- **teams_list_chats** — List your DMs and group chats
- **teams_read_chat_messages** — Read messages from a chat
- **teams_send_chat_message** — Send a direct/group chat message
- **teams_search_messages** — Search messages across all Teams
- **teams_get_profile** — Get your Microsoft 365 profile

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "microsoft-teams": {
    "command": "npx",
    "args": ["-y","microsoft-teams-mcp-server"],
    "env": {
      "TEAMS_CLIENT_ID": "",
      "TEAMS_CLIENT_SECRET": ""
    }
  }
}
```

**Requires environment variables:** `TEAMS_CLIENT_ID`, `TEAMS_CLIENT_SECRET` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/microsoft-teams/readme_

