Skip to main content
Glama
Teams MCP Plus
by stackia

Teams MCP Plus

npm version npm downloads License: MIT GitHub stars

A Microsoft Teams MCP server with multi-tenant support. Connect multiple organizations in one server, with isolated credentials and explicit tenant selection for chats, channels, users, search, and file operations.

Based on Floris Cornel’s Teams MCP, extended and maintained in this repository.

πŸ“¦ Installation

Authenticate each tenant first (replace <tenant-id> with its Microsoft Entra directory GUID):

npx -y teams-mcp-plus@latest authenticate --tenant <tenant-id> --name Work
npx -y teams-mcp-plus@latest tenants

Then add the following configuration in Cursor/Claude/VS Code:

{
  "mcpServers": {
    "teams-mcp-plus": {
      "command": "npx",
      "args": ["-y", "teams-mcp-plus@latest"]
    }
  }
}

Related MCP server: Microsoft MCP

πŸš€ Features

πŸ” Authentication & Multiple Tenants

  • Connect multiple organizations with isolated credentials and explicit tenant selection per call

  • Authenticate through Microsoft Graph OAuth device login, with persistent token caching and automatic refresh

  • List connected tenants, check live authentication, and log out through the CLI

  • Run in read-only mode with reduced permissions, or supply an existing Graph access token

πŸ‘₯ Users, Teams & Members

  • Look up the current user or another user's profile

  • Search users by name or email, including IDs and display text for @mentions

  • List joined teams, their channels, and team members with roles

  • Read chat member details, including user IDs, emails, tenant IDs, roles, and visible history start times

πŸ’¬ Chats & Read Status

  • List 1:1, group, and meeting chats with participants and latest-message previews, newest message first

  • Find unread chats based on the current user's read position

  • Mark chats read or unread for the current user

  • Create 1:1 and group chats, with optional group topics

  • Read chat history with time filters, ordering, pagination, and automatic retrieval of all available pages

  • Read individual chat messages by ID, including multiple IDs in one call

🧡 Channel Threads & Messaging

  • List channel thread roots and thread replies, or read specific messages and replies by ID, individually or in batches

  • Start a new channel thread or reply within an existing thread

  • Send chat messages or quote and reply to an existing chat message

  • Edit or soft delete your own chat messages, channel messages, and channel replies

  • Add or remove emoji reactions on chat messages, channel messages, and channel replies

  • Compose messages with plain text or sanitized Markdown, @mentions, and importance levels

  • Read message bodies as Markdown by default, or retain the original HTML

πŸ“Ž Files & Inline Content

  • Upload local files to chats through OneDrive or to channel threads through SharePoint

  • Post channel files in a new thread or as a reply in an existing thread

  • Upload large files through resumable upload sessions

  • Include inline images in channel messages from a URL or base64 data

  • Download hosted content from chat messages, channel messages, and channel replies as base64 or save it to disk

  • Search accessible chat and channel messages within a tenant using Microsoft Search and KQL

  • Combine keywords, phrases, Boolean operators, sender, attachment, mention, and date filters

  • Find messages mentioning the current user, with an optional recent-hours window

  • Retrieve paginated results with optional relevance ranking and Markdown or raw message bodies

Rich Message Formatting Support

The following tools support rich message formatting in Teams channels and chats:

  • send_channel_message

  • send_chat_message

  • update_channel_message

  • update_chat_message

  • send_file_to_channel

  • send_file_to_chat

Format Options

You can specify the format parameter to control the message formatting:

  • text (default): Plain text

  • markdown: Markdown formatting (bold, italic, lists, links, code, etc.) converted to sanitized HTML

When format is set to markdown, the message content is converted to HTML using a secure markdown parser and sanitized to remove potentially dangerous content before being sent to Teams.

If format is not specified, the message will be sent as plain text.

Example Usage

{
  "teamId": "...",
  "channelId": "...",
  "message": "**Bold text** and _italic text_\n\n- List item 1\n- List item 2\n\n[Link](https://example.com)",
  "format": "markdown",
  "importance": "high"
}
{
  "chatId": "...",
  "message": "Simple plain text message",
  "format": "text"
}

Security Features

  • HTML Sanitization: All markdown content is converted to HTML and sanitized to remove potentially dangerous elements (scripts, event handlers, etc.)

  • Allowed Tags: Only safe HTML tags are permitted (p, strong, em, a, ul, ol, li, h1-h6, code, pre, etc.)

  • Safe Attributes: Only safe attributes are allowed

  • XSS Prevention: Content is automatically sanitized to prevent cross-site scripting attacks

Supported Markdown Features

  • Text formatting: Bold (**text**), italic (_text_), strikethrough (~~text~~)

  • Links: [text](url)

  • Lists: Bulleted (- item) and numbered (1. item)

  • Code: Inline `code` and fenced code blocks

  • Headings: # H1 through ###### H6

  • Blockquotes: > quoted text

  • Tables: GitHub-flavored markdown tables

LLM-Friendly Content Format

Messages retrieved from the Microsoft Graph API are returned as raw HTML containing Teams-specific tags. To make this content more consumable by AI assistants, the following tools support automatic HTML-to-Markdown conversion:

  • get_chat_messages

  • get_channel_messages

  • search_messages

Content Format Options

Use the contentFormat parameter to control how message content is returned:

  • markdown (default): Converts Teams HTML to clean Markdown, optimized for LLM consumption

  • raw: Returns the original HTML from the Microsoft Graph API

What Gets Converted

HTML Element

Markdown Output

<at id="0">Name</at> (Teams mention)

@Name (multi-word names merged using mentions metadata)

<strong>text</strong>

**text**

<em>text</em>

*text*

<code>text</code>

`text`

<a href="url">text</a>

[text](url)

<ul><li>item</li></ul>

- item

<table>...</table>

GFM Markdown table

<attachment id="...">

{attachment:id}

<systemEventMessage/>

(removed)

<hr>

---

&nbsp;, &amp;, etc.

Decoded to plain characters

Attachment Metadata

Messages that contain file attachments or inline images include an attachments array in the response with metadata for each attachment (id, name, contentType, contentUrl, thumbnailUrl). The inline {attachment:id} markers in the markdown content correlate with entries in this array, allowing consumers to identify and download attachments via download_message_hosted_content or download_chat_hosted_content.

Example Usage

{
  "chatId": "19:meeting_...",
  "limit": 10,
  "contentFormat": "markdown"
}

To get the original HTML:

{
  "chatId": "19:meeting_...",
  "limit": 10,
  "contentFormat": "raw"
}

πŸ“¦ Installation

# Use the project's Node.js LTS version
nvm install
nvm use

# Install dependencies
npm install

# Build the project
npm run build

# Set up authentication
npm run auth -- --tenant <tenant-id>

πŸ”§ Configuration

Prerequisites

  • Node.js 22.22.2+, 24.15.0+, or 26+ (Node.js 20 is no longer supported)

  • Microsoft 365 account with appropriate permissions

  • Microsoft Graph delegated permissions for the scopes below

Required Microsoft Graph Permissions

Full mode (default):

  • User.Read - Read user profile

  • User.ReadBasic.All - Read basic user info

  • Team.ReadBasic.All - Read team information

  • Channel.ReadBasic.All - Read channel information

  • ChannelMessage.Read.All - Read channel messages

  • ChannelMessage.Send - Send channel messages and replies

  • ChannelMessage.ReadWrite - Edit and delete channel messages

  • Chat.Read - Read chat messages (included via read-only scopes)

  • Chat.ReadWrite - Create and manage chats, send/edit/delete chat messages (supersedes Chat.Read)

  • ChatMessage.Send - Send quoted chat replies

  • TeamMember.Read.All - Read team members

  • Files.ReadWrite.All - Required for file uploads to channels and chats

Read-only mode (TEAMS_MCP_READ_ONLY=true) β€” only these scopes are requested:

  • User.Read

  • User.ReadBasic.All

  • Team.ReadBasic.All

  • Channel.ReadBasic.All

  • ChannelMessage.Read.All

  • TeamMember.Read.All

  • Chat.Read

Multiple Tenants

One MCP server can access several organizations concurrently. Authenticate each target tenant separately, including organizations where you are a guest. Use the Microsoft Entra directory tenant ID (GUID); common, organizations, and tenant domains are not accepted. Each tenant stores one selected account; authenticating again replaces that tenant's active login. Different tenants may use the same home account or entirely different users. --name is a display label, not a routing alias.

For a source checkout, build first, then connect two tenants:

npm ci
npm run build
node dist/index.js authenticate --tenant aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa --name Work
node dist/index.js authenticate --tenant bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb --name Customer --read-only
node dist/index.js tenants
node dist/index.js check

Replace the example IDs with real tenant IDs. The account must belong to or be invited into each tenant, and that tenant must permit the application and required Graph permissions. A login in the home tenant does not automatically authorize guest tenants.

Point your MCP client at the built checkout:

{
  "mcpServers": {
    "teams": {
      "command": "node",
      "args": ["/absolute/path/to/teams-mcp/dist/index.js"],
      "env": {
        "TEAMS_MCP_CONFIG_DIR": "/absolute/path/to/shared/teams-credentials"
      }
    }
  }
}

Omit TEAMS_MCP_CONFIG_DIR to use ~/.teams-mcp-plus; if you set it, use the same value when authenticating. For the published package, use npx -y teams-mcp-plus@latest instead of node dist/index.js.

Call list_tenants first. Every other tool accepts an optional tenantId:

{ "name": "list_teams", "arguments": { "tenantId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" } }
{ "name": "search_messages", "arguments": { "tenantId": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "query": "release" } }

Selection order is explicit tool tenantId, server --tenant / TEAMS_MCP_TENANT_ID, then the sole connected tenant. With multiple connections and no default, omission returns a selection error. An unknown or logged-out explicit/default tenant always fails; it never falls back to another tenant. Keep resource IDs with the tenant that produced them; results and searches are scoped to one tenant per call, not aggregated across organizations.

# Optional server default; individual tool calls can still target another tenant
node dist/index.js --tenant aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
# Live check of one tenant; without --tenant/default, check covers all tenants
node dist/index.js check --tenant bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb
# Logout requires an explicit target, even if an environment default is configured
node dist/index.js logout --tenant bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb
node dist/index.js logout --all

tenants / list_tenants list local connections; they do not guarantee that consent or refresh tokens are still valid. check and auth_status acquire a token and call Graph /me. check exits nonzero if any checked connection fails. New logins and logout are detected by running servers without a restart; requests already submitted to Graph cannot be recalled. Logout clears local files, not Microsoft account sessions or consent. An injected AUTH_TOKEN remains active until removed from the environment and the server restarted.

Isolation design: tenant-specific authorities are used for both device-code login and silent refresh. Account selection matches the persisted home account ID, local account ID, and tenant ID instead of taking the first cached account. A tool receives an immutable tenant-bound service, also passed to file uploads and user lookups. Each login has a separate cache revision; stale processes cannot overwrite the active login. Previous cache revisions are removed when that tenant is logged out. This follows Microsoft's guidance on MSAL account selection and authority configuration.

Authentication Modes

Full access:

npx teams-mcp-plus@latest authenticate --tenant <tenant-id>

Read-only access:

npx teams-mcp-plus@latest authenticate --tenant <tenant-id> --read-only

Direct token injection with an existing Microsoft Graph JWT:

{
  "mcpServers": {
    "teams-mcp-plus": {
      "command": "npx",
      "args": ["-y", "teams-mcp-plus@latest"],
      "env": {
        "AUTH_TOKEN": "<jwt-for-https://graph.microsoft.com>"
      }
    }
  }
}

Token Storage

  • Each tenant has its own directory: ~/.teams-mcp-plus/<tenant-id>/.

  • profile.json records the selected account, label, granted scopes, and login revision.

  • <revision>.cache.json contains the MSAL tokens for that login. Files use mode 0600, and newly created directories use 0700 on POSIX systems. Writes are atomic. These files contain credentials in plaintext; protect the directory.

  • TEAMS_MCP_CONFIG_DIR overrides the storage root. All CLI and MCP processes that share connections must use the same directory.

  • Old single-account files are neither read nor migrated. Re-authenticate each tenant; obsolete legacy files can be removed manually.

πŸ› οΈ Usage

Starting the Server

# Development mode with hot reload
npm run dev

# Production mode
npm run build && node dist/index.js

# Start in read-only mode (disables all write tools)
TEAMS_MCP_READ_ONLY=true node dist/index.js

CLI Commands

npx teams-mcp-plus@latest authenticate --tenant <tenant-id>              # Authenticate with full scopes
npx teams-mcp-plus@latest authenticate --tenant <tenant-id> --read-only  # Authenticate with read-only scopes
npx teams-mcp-plus@latest check                     # Check authentication status
npx teams-mcp-plus@latest logout --tenant <tenant-id>                    # Clear authentication
npx teams-mcp-plus@latest auth --tenant <tenant-id>   # Alias for authenticate
npx teams-mcp-plus@latest                           # Start MCP server (default)

Environment Variables

  • TEAMS_MCP_READ_ONLY=true - Start the MCP server in read-only mode

  • TEAMS_MCP_TENANT_ID=<tenant-id> - Default tenant; --tenant takes precedence. Explicit tool tenantId overrides both.

  • TEAMS_MCP_CONFIG_DIR=<path> - Shared credential directory (default: ~/.teams-mcp-plus).

  • AUTH_TOKEN=<jwt> - Pre-issued Graph token, used only for the tenant in its tid claim. Other tenants continue to use their own MSAL credentials. The token must have a valid Graph audience and unexpired exp; it is never written to disk or refreshed.

Read-Only Mode

The server supports a read-only mode that disables all write tools, including sending or changing messages, reactions, chat read state, chat creation, and file uploads. Authentication in this mode requests only read-permission scopes from Microsoft Graph.

Enable read-only mode using either:

  • Environment variable: TEAMS_MCP_READ_ONLY=true

  • CLI flag: --read-only

Authenticate with reduced scopes:

npx teams-mcp-plus@latest authenticate --tenant <tenant-id> --read-only

MCP server configuration (read-only):

{
  "mcpServers": {
    "teams-mcp-plus": {
      "command": "npx",
      "args": ["-y", "teams-mcp-plus@latest"],
      "env": {
        "TEAMS_MCP_READ_ONLY": "true"
      }
    }
  }
}

Switching modes: Scope grants are stored per tenant. A full-mode server can expose write tools while a tenant still has read-only grants; that tenant's write requests will fail with a Graph permission error. Re-authenticate that tenant without --read-only to request write permissions:

npx teams-mcp-plus@latest authenticate --tenant <tenant-id>

Available MCP Tools

Full mode exposes 26 tools: 14 read tools and 12 write tools. Read-only mode exposes only those marked Read below. Tool schemas provide parameter details.

Authentication & Tenants

Tool

Access

Function

list_tenants

Read

List connected tenants, accounts, granted scopes, and the configured default.

auth_status

Read

Check live authentication and the signed-in user for a tenant.

Users & Membership

Tool

Access

Function

get_user

Read

Retrieve the current user's profile or look up another user.

search_users

Read

Search users by name or email, including IDs and mention text.

list_team_members

Read

List a team's members and their roles.

list_chat_members

Read

List chat members with user and tenant IDs, emails, roles, and visible history start times.

Chats

Tool

Access

Function

list_chats

Read

List chats with participants, latest-message previews, and read status; optionally return only unread chats.

get_chat_messages

Read

Retrieve chat history with filtering, ordering, and pagination, or read specific messages individually or in batches.

create_chat

Write

Create a 1:1 or group chat.

set_chat_read_state

Write

Mark a chat read or unread for the current user.

send_chat_message

Write

Send a chat message or quote and reply to an existing message.

update_chat_message

Write

Edit a chat message you sent.

delete_chat_message

Write

Soft delete a chat message you sent.

set_chat_message_reaction

Write

Add or remove a reaction on a chat message.

Teams & Channels

Tool

Access

Function

list_teams

Read

List teams the current user has joined.

list_channels

Read

List a team's channels and their basic details.

get_channel_messages

Read

List thread roots or replies, or read specific channel messages or replies individually or in batches.

send_channel_message

Write

Start a new channel thread or reply within an existing thread.

update_channel_message

Write

Edit a channel message or reply you sent.

delete_channel_message

Write

Soft delete a channel message or reply you sent.

set_channel_message_reaction

Write

Add or remove a reaction on a channel message or reply.

Files & Hosted Content

Tool

Access

Function

send_file_to_chat

Write

Upload a local file to OneDrive and share it in a chat.

send_file_to_channel

Write

Upload a local file to SharePoint and share it in a new or existing channel thread.

download_chat_hosted_content

Read

Download inline hosted content from a chat message, optionally saving it to disk.

download_message_hosted_content

Read

Download inline hosted content from a channel message or reply, optionally saving it to disk.

Tool

Access

Function

search_messages

Read

Search chat and channel messages with KQL, current-user mentions, and optional time filtering.

Unread chat detection compares the latest message time with the current user's read position; it does not use Search's IsRead filter or other participants' Seen receipts. Chats with unknown read status are excluded from unread-only results. Reading messages does not mark them read.

Quoted chat replies require ChatMessage.Send. Existing connections without this permission must authenticate again in full mode; injected access tokens must also include this scope.

πŸ“‹ Examples

Authentication

First, authenticate with Microsoft Graph:

# Full access (default)
npx teams-mcp-plus@latest authenticate --tenant <tenant-id>

# Read-only (reduced permission scopes)
npx teams-mcp-plus@latest authenticate --tenant <tenant-id> --read-only

Check your authentication status:

npx teams-mcp-plus@latest check

Logout if needed:

npx teams-mcp-plus@latest logout --tenant <tenant-id>

Chat Pagination Example

{
  "chatId": "19:meeting_...",
  "limit": 100,
  "fetchAll": true,
  "orderBy": "createdDateTime",
  "descending": true,
  "contentFormat": "markdown"
}

Read Multiple Messages

Pass an array of IDs to read several messages in one call:

{ "name": "get_chat_messages", "arguments": { "chatId": "<chat>", "messageId": ["<message-1>", "<message-2>"] } }

For channels, use an array of root message IDs, or a single root ID with an array of reply IDs:

{ "name": "get_channel_messages", "arguments": { "teamId": "<team>", "channelId": "<channel>", "messageId": ["<root-1>", "<root-2>"] } }
{ "name": "get_channel_messages", "arguments": { "teamId": "<team>", "channelId": "<channel>", "messageId": "<root>", "replyId": ["<reply-1>", "<reply-2>"] } }

Batches accept up to 50 IDs and query sequentially in input order. Successful reads appear in messages; failures appear in errors with their requested IDs. The entire call is marked as an error only when every read fails. List filters, sorting, and limits do not apply to these ID-based reads. Existing single-ID calls and list operations remain available.

Channel Message with Mentions and Image

{
  "teamId": "team-id",
  "channelId": "channel-id",
  "message": "Please review **today's update**",
  "format": "markdown",
  "importance": "high",
  "mentions": [
    {
      "mention": "alex.chen",
      "userId": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "imageUrl": "https://example.com/status.png"
}

File Upload Example

{
  "chatId": "19:meeting_...",
  "filePath": "/absolute/path/to/report.pdf",
  "message": "Please review the attached report",
  "format": "markdown"
}

Integrating with Cursor/Claude

This MCP server is designed to work with AI assistants like Claude/Cursor/VS Code through the Model Context Protocol.

{
  "mcpServers": {
    "teams-mcp-plus": {
      "command": "npx",
      "args": ["-y", "teams-mcp-plus@latest"]
    }
  }
}

πŸ”’ Security

  • All authentication is handled through Microsoft's OAuth 2.0 flow or a caller-provided Microsoft Graph token

  • Refresh token support: Access tokens are automatically renewed using cached refresh tokens, so you don't need to re-authenticate every hour

  • Credentials are isolated per tenant under ~/.teams-mcp-plus/<tenant-id>/; logout removes all login generations for that tenant.

  • Markdown content is sanitized before sending HTML to Teams

  • AUTH_TOKEN routing checks its Graph audience, tenant ID, and expiry. Microsoft Graph validates the token signature and permissions.

  • No sensitive data is logged or exposed

  • Follows Microsoft Graph API security best practices

πŸ“ License

MIT License - see LICENSE file for details

🀝 Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Run build, linting, and tests

  5. Submit a pull request

πŸ“ž Support

For issues and questions:

  • Check the existing GitHub issues

  • Review Microsoft Graph API documentation

  • Ensure proper authentication and permissions are configured

Available Tools

33 tools
auth_statusAuth StatusA
Read-onlyIdempotent

Check live authentication for the selected tenant. Returns its tenant ID, user profile, token expiration, and any authentication error.

Inputs: tenantId.

create_chatCreate ChatB

Create a new chat conversation. Can be a 1:1 chat (with one other user) or a group chat (with multiple users). Group chats can optionally have a topic.

Inputs: userEmails (required), topic, tenantId.

delete_channel_messageDelete Channel MessageA
DestructiveIdempotent

Soft delete a message in a channel. Only the message sender can delete their own messages. The message will be marked as deleted.

Inputs: teamId (required), channelId (required), messageId (required), replyId, +1 more.

delete_chat_messageDelete Chat MessageA
DestructiveIdempotent

Soft delete a chat message that was previously sent. Only the message sender can delete their own messages. The message will be marked as deleted but can still be seen as '[This message has been deleted]'.

Inputs: chatId (required), messageId (required), tenantId.

download_chat_hosted_contentDownload Chat Hosted ContentA
Read-onlyIdempotent

Download hosted content (such as images) from a chat message. Returns the content as base64 encoded data along with metadata. Use this to retrieve images or other inline content embedded in chat messages.

Inputs: chatId (required), messageId (required), savePath, tenantId, +1 more.

download_message_hosted_contentDownload Message Hosted ContentA
Read-onlyIdempotent

Download hosted content (such as images) from a Teams channel message. Returns the content as base64 encoded data along with metadata. Use this to retrieve images or other inline content embedded in messages.

Inputs: teamId (required), channelId (required), messageId (required), replyId, +3 more.

get_channel_message_repliesGet Channel Message RepliesA
Read-onlyIdempotent

Get all replies to a specific message in a channel. Returns reply content, sender information, and timestamps.

Inputs: teamId (required), channelId (required), messageId (required), limit, +2 more.

get_channel_messagesGet Channel MessagesB
Read-onlyIdempotent

List channel messages or read one message or reply by ID.

Inputs: teamId (required), channelId (required), limit, replyId, +3 more.

get_chat_messagesGet Chat MessagesB
Read-onlyIdempotent

List chat messages or read one by ID.

Inputs: chatId (required), limit, since, until, +7 more.

get_current_userGet Current UserA
Read-onlyIdempotent

Get the current authenticated user's profile information including display name, email, job title, and department.

Inputs: tenantId.

get_my_mentionsGet My MentionsA
Read-onlyIdempotent

Find recent messages where the current user was @mentioned across all Teams channels and chats.

Inputs: size, hours, tenantId, contentFormat.

get_userGet UserA
Read-onlyIdempotent

Get detailed information about a specific user by their ID or email address. Returns profile information including name, email, job title, and department.

Inputs: userId (required), tenantId.

list_channelsList ChannelsA
Read-onlyIdempotent

List all channels in a specific Microsoft Team. Returns channel names, descriptions, types, and IDs for the specified team.

Inputs: teamId (required), tenantId.

list_chat_membersList Chat MembersB
Read-onlyIdempotent

List all chat members with user IDs, emails, tenant IDs and roles.

Inputs: chatId (required), tenantId.

list_chatsList ChatsA
Read-onlyIdempotent

List the current user's 1:1, group, and meeting chats with participants, latest-message previews, and read status. Returns all pages, newest message first.

Inputs: tenantId, unreadOnly.

list_team_membersList Team MembersA
Read-onlyIdempotent

List all members of a specific Microsoft Team. Returns member names, email addresses, roles, and IDs.

Inputs: teamId (required), tenantId.

list_teamsList TeamsA
Read-onlyIdempotent

List all Microsoft Teams that the current user is a member of. Returns team names, descriptions, and IDs.

Inputs: tenantId.

list_tenantsList TenantsA
Read-onlyIdempotent

List connected Microsoft Teams tenants, account names, granted scopes, and configured default. Use the tenantId in subsequent tool calls. Saved connections may require re-authentication; use auth_status to check live access.

Inputs: no named parameters.

reply_to_channel_messageReply to Channel MessageB

Reply to a specific message in a channel. Supports text and markdown formatting, mentions, and importance levels.

Inputs: teamId (required), message (required), channelId (required), messageId (required), +8 more.

search_messagesSearch MessagesA
Read-onlyIdempotent

Search for messages across all Microsoft Teams channels and chats using the Microsoft Search API. The query string supports KQL (Keyword Query Language) syntax for advanced filtering: from: β€” messages sent by a person (e.g. from:bob) to: β€” messages sent to a person mentions: β€” messages that mention a specific user ID (without dashes) IsMentioned:true β€” messages that mention the current user hasAttachment:true|false β€” filter by attachment presence IsRead:true|false β€” filter by read status sent>=YYYY-MM-DD β€” messages sent on or after a date sent<=YYYY-MM-DD β€” messages sent on or before a date Examples: "quarterly report" from:alice sent>=2025-01-01 hasAttachment:true from:bob project update sent>=2025-02-01 Use get_chat_messages or get_channel_messages for browsing a specific conversation.

Inputs: query (required), from, size, tenantId, +2 more.

search_usersSearch UsersB
Read-onlyIdempotent

Search for users in the organization by name or email address. Returns matching users with their basic profile information.

Inputs: query (required), tenantId.

search_users_for_mentionsSearch Users for MentionsA
Read-onlyIdempotent

Search for users to mention in messages. Returns users with their display names, email addresses, and mention IDs.

Inputs: query (required), limit, tenantId.

send_channel_messageSend Channel MessageA

Send a message to a specific channel in a Microsoft Team. Supports text and markdown formatting, mentions, and importance levels.

Inputs: teamId (required), message (required), channelId (required), format, +7 more.

send_chat_messageSend Chat MessageB

Send a message to a specific chat conversation. Supports text and markdown formatting, mentions, and importance levels.

Inputs: chatId (required), message (required), format, mentions, +2 more.

send_file_to_channelSend File to ChannelA

Upload a local file and send it as a message to a Teams channel. Supports any file type (PDF, DOCX, ZIP, images, etc.). The file is uploaded to the channel's SharePoint folder and sent as a reference attachment. If messageId is provided, the file is sent as a reply to that message (thread).

Inputs: teamId (required), filePath (required), channelId (required), format, +5 more.

send_file_to_chatSend File to ChatA

Upload a local file and send it as a message to a Teams chat. Supports any file type (PDF, DOCX, ZIP, images, etc.). The file is uploaded to OneDrive and sent as a reference attachment.

Inputs: chatId (required), filePath (required), format, message, +3 more.

set_channel_message_reactionSet Channel Message ReactionA
Idempotent

Add a reaction to a message in a Teams channel. Supports Unicode emoji characters and named reactions (like, angry, sad, laugh, heart, surprised). Can also react to replies.

Inputs: teamId (required), channelId (required), messageId (required), reactionType (required), +2 more.

set_chat_message_reactionSet Chat Message ReactionA

Add a reaction to a message in a chat conversation. Supports Unicode emoji characters and named reactions (like, angry, sad, laugh, heart, surprised).

Inputs: chatId (required), messageId (required), reactionType (required), tenantId.

set_chat_read_stateSet Chat Read StateA
Idempotent

Mark a chat read or unread for the current user.

Inputs: chatId (required), isRead (required), tenantId, lastMessageReadDateTime.

unset_channel_message_reactionUnset Channel Message ReactionA
Idempotent

Remove a reaction from a message in a Teams channel. Can also remove reactions from replies.

Inputs: teamId (required), channelId (required), messageId (required), reactionType (required), +2 more.

unset_chat_message_reactionUnset Chat Message ReactionA
Idempotent

Remove a reaction from a message in a chat conversation.

Inputs: chatId (required), messageId (required), reactionType (required), tenantId.

update_channel_messageUpdate Channel MessageB
Idempotent

Update (edit) a message in a channel that was previously sent. Only the message sender can update their own messages.

Inputs: teamId (required), message (required), channelId (required), messageId (required), +5 more.

update_chat_messageUpdate Chat MessageA
Idempotent

Update (edit) a chat message that was previously sent. Only the message sender can update their own messages. Supports updating content with text or Markdown formatting, mentions, and importance levels.

Inputs: chatId (required), message (required), messageId (required), format, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 33 tools

    Disambiguation4/5

    The channel/chat message tools are neatly paired and contextually distinct, and reactions/read-state/search tools have clear targets. Minor overlap exists between search_users and search_users_for_mentions, and get_channel_messages can also read a reply by ID, which may cause occasional misselection.

    Naming Consistency4/5

    Almost all tools follow a clear snake_case verb_noun pattern (list_teams, send_chat_message, set_chat_read_state). auth_status is the main outlier because it is a noun phrase rather than a verb-prefixed command.

    Tool Count2/5

    33 tools exceeds the 25+ threshold for a heavy surface. The parity between channel and chat operations inflates the count, though each tool does represent a distinct operation in a broad domain.

    Completeness4/5

    The set covers the messaging lifecycle well: create/list/send/update/delete/reply/reactions/files/search for both channels and chats. Gaps like team/channel management and chat-level editing are present but secondary to the apparent messaging-focused purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A Model Context Protocol server that provides AI assistants with access to Microsoft Teams, enabling interaction with teams, channels, chats, and organizational data through Microsoft Graph APIs.
      4
      19
      1,196 npm
      151
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      A powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.
      35
      56
      -
    • A
      license
      C
      quality
      Not graded
      maintenance
      An MCP server that enables interaction with Microsoft 365 services like Outlook, OneDrive, Teams, and SharePoint via the Microsoft Graph API. It supports comprehensive operations including email management, file access, and organizational collaboration for personal and work accounts.
      78
      -