Teams MCP Plus
A multi-tenant Microsoft Teams MCP server that lets an AI assistant read, send, and search Teams content across multiple organizations with isolated credentials.
Tenants & auth: list connected tenants, check live authentication/token status, and target any tool call with a
tenantId.Users & membership: get the signed-in user or another profile, search users, find mention-ready users, and list team or chat members with roles.
Teams & channels: list joined teams and channels, read thread roots/replies or specific messages, start threads, reply, edit/soft-delete your messages, and add/remove reactions.
Chats: list 1:1/group/meeting chats (optionally unread only), read history with time filters, ordering and pagination, read messages by ID, create chats, send/quote, edit, soft-delete, react, and mark read/unread.
Files & inline content: upload local files to chats via OneDrive or channels via SharePoint, post inline images, and download hosted message content as base64 or to disk.
Search: KQL-based message search across chats and channels with pagination/relevance, plus recent @mentions of the current user.
Message formatting: plain text or sanitized Markdown, @mentions, importance levels, and message bodies returned as LLM-friendly Markdown or raw HTML.
Modes: full read/write or read-only mode with reduced Graph scopes; also supports injecting an existing Graph access token.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Teams MCP Plus search my recent messages mentioning project alpha"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Teams MCP Plus
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 tenantsThen 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
@mentionsList 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 levelsRead 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
π Message Search
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_messagesend_chat_messageupdate_channel_messageupdate_chat_messagesend_file_to_channelsend_file_to_chat
Format Options
You can specify the format parameter to control the message formatting:
text(default): Plain textmarkdown: 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 blocksHeadings:
# H1through###### H6Blockquotes:
> quoted textTables: 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_messagesget_channel_messagessearch_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 consumptionraw: Returns the original HTML from the Microsoft Graph API
What Gets Converted
HTML Element | Markdown Output |
|
|
|
|
|
|
|
|
|
|
|
|
| GFM Markdown table |
|
|
| (removed) |
|
|
| 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 profileUser.ReadBasic.All- Read basic user infoTeam.ReadBasic.All- Read team informationChannel.ReadBasic.All- Read channel informationChannelMessage.Read.All- Read channel messagesChannelMessage.Send- Send channel messages and repliesChannelMessage.ReadWrite- Edit and delete channel messagesChat.Read- Read chat messages (included via read-only scopes)Chat.ReadWrite- Create and manage chats, send/edit/delete chat messages (supersedesChat.Read)ChatMessage.Send- Send quoted chat repliesTeamMember.Read.All- Read team membersFiles.ReadWrite.All- Required for file uploads to channels and chats
Read-only mode (TEAMS_MCP_READ_ONLY=true) β only these scopes are requested:
User.ReadUser.ReadBasic.AllTeam.ReadBasic.AllChannel.ReadBasic.AllChannelMessage.Read.AllTeamMember.Read.AllChat.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 checkReplace 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 --alltenants / 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-onlyDirect 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.jsonrecords the selected account, label, granted scopes, and login revision.<revision>.cache.jsoncontains the MSAL tokens for that login. Files use mode0600, and newly created directories use0700on POSIX systems. Writes are atomic. These files contain credentials in plaintext; protect the directory.TEAMS_MCP_CONFIG_DIRoverrides 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.jsCLI 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 modeTEAMS_MCP_TENANT_ID=<tenant-id>- Default tenant;--tenanttakes precedence. Explicit tooltenantIdoverrides 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 itstidclaim. Other tenants continue to use their own MSAL credentials. The token must have a valid Graph audience and unexpiredexp; 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=trueCLI flag:
--read-only
Authenticate with reduced scopes:
npx teams-mcp-plus@latest authenticate --tenant <tenant-id> --read-onlyMCP 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 |
| Read | List connected tenants, accounts, granted scopes, and the configured default. |
| Read | Check live authentication and the signed-in user for a tenant. |
Users & Membership
Tool | Access | Function |
| Read | Retrieve the current user's profile or look up another user. |
| Read | Search users by name or email, including IDs and mention text. |
| Read | List a team's members and their roles. |
| Read | List chat members with user and tenant IDs, emails, roles, and visible history start times. |
Chats
Tool | Access | Function |
| Read | List chats with participants, latest-message previews, and read status; optionally return only unread chats. |
| Read | Retrieve chat history with filtering, ordering, and pagination, or read specific messages individually or in batches. |
| Write | Create a 1:1 or group chat. |
| Write | Mark a chat read or unread for the current user. |
| Write | Send a chat message or quote and reply to an existing message. |
| Write | Edit a chat message you sent. |
| Write | Soft delete a chat message you sent. |
| Write | Add or remove a reaction on a chat message. |
Teams & Channels
Tool | Access | Function |
| Read | List teams the current user has joined. |
| Read | List a team's channels and their basic details. |
| Read | List thread roots or replies, or read specific channel messages or replies individually or in batches. |
| Write | Start a new channel thread or reply within an existing thread. |
| Write | Edit a channel message or reply you sent. |
| Write | Soft delete a channel message or reply you sent. |
| Write | Add or remove a reaction on a channel message or reply. |
Files & Hosted Content
Tool | Access | Function |
| Write | Upload a local file to OneDrive and share it in a chat. |
| Write | Upload a local file to SharePoint and share it in a new or existing channel thread. |
| Read | Download inline hosted content from a chat message, optionally saving it to disk. |
| Read | Download inline hosted content from a channel message or reply, optionally saving it to disk. |
Search
Tool | Access | Function |
| 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-onlyCheck your authentication status:
npx teams-mcp-plus@latest checkLogout 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_TOKENrouting 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
Fork the repository
Create a feature branch
Make your changes
Run build, linting, and tests
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 toolsauth_statusAuth StatusARead-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 MessageADestructiveIdempotent
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 MessageADestructiveIdempotent
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 ContentARead-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 ContentARead-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 RepliesARead-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 MessagesBRead-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 MessagesBRead-onlyIdempotent
List chat messages or read one by ID.
Inputs: chatId (required), limit, since, until, +7 more.
get_current_userGet Current UserARead-onlyIdempotent
Get the current authenticated user's profile information including display name, email, job title, and department.
Inputs: tenantId.
get_my_mentionsGet My MentionsARead-onlyIdempotent
Find recent messages where the current user was @mentioned across all Teams channels and chats.
Inputs: size, hours, tenantId, contentFormat.
get_userGet UserARead-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 ChannelsARead-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 MembersBRead-onlyIdempotent
List all chat members with user IDs, emails, tenant IDs and roles.
Inputs: chatId (required), tenantId.
list_chatsList ChatsARead-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 MembersARead-onlyIdempotent
List all members of a specific Microsoft Team. Returns member names, email addresses, roles, and IDs.
Inputs: teamId (required), tenantId.
list_teamsList TeamsARead-onlyIdempotent
List all Microsoft Teams that the current user is a member of. Returns team names, descriptions, and IDs.
Inputs: tenantId.
list_tenantsList TenantsARead-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 MessagesARead-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 UsersBRead-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 MentionsARead-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 ReactionAIdempotent
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 StateAIdempotent
Mark a chat read or unread for the current user.
Inputs: chatId (required), isRead (required), tenantId, lastMessageReadDateTime.
unset_channel_message_reactionUnset Channel Message ReactionAIdempotent
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 ReactionAIdempotent
Remove a reaction from a message in a chat conversation.
Inputs: chatId (required), messageId (required), reactionType (required), tenantId.
update_channel_messageUpdate Channel MessageBIdempotent
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 MessageAIdempotent
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
Scored across 33 tools
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.
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.
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.
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
Related MCP Connectors
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- AlicenseAqualityBmaintenanceA 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.4191,196 npm151MIT
- FlicenseCqualityDmaintenanceA 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.3556-
- AlicenseCqualityNot gradedmaintenanceAn 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-
- AlicenseNot gradedqualityDmaintenanceA secure remote MCP server that integrates Microsoft 365 services with AI assistants, enabling email, calendar, Teams, and contact operations via the Microsoft Graph API.2MIT