Microsoft 365 Teams

v0.3.5
io.github.mindstone/mcp-server-microsoft-teams Checked 19 hours ago Published 9 days ago

Microsoft 365 Teams via Graph: list chats, read/send messages, list teams/channels, presence.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_chats

List recent Teams chats (1:1, group, and meeting chats).

ParameterTypeDescription
topnumberMax chats to return (default: 25, max: 50)

get_chat

Get details about a specific chat.

ParameterTypeDescription
chatId *stringChat ID

list_chat_messages

Get recent messages from a chat.

ParameterTypeDescription
chatId *stringChat ID
topnumberMax messages to return (default: 50, max: 50)

compose_chat_message

Open an inline editable message compose form before sending to a Teams chat. Use this when the user wants to write or send a Teams message so they can review and edit it first. Does NOT send directly — the form posts the message (via send_chat_message) when the user clicks Send. PARAMETERS: target (the chat ID to send to), text (message content).

ParameterTypeDescription
target *stringThe chat ID to send the message to
text *stringMessage content (HTML supported)

send_chat_message

Send a message now to a Teams chat, as the user; everyone in the chat sees it straight away. It cannot be unsent from here. To let the user review and edit it first, use compose_chat_message.

ParameterTypeDescription
chatId *stringChat ID
content *stringMessage content (HTML supported)

reply_to_message

Send a reply now to a specific message in a Teams chat, as the user; everyone in the chat sees it. It cannot be unsent from here.

ParameterTypeDescription
chatId *stringChat ID
content *stringReply content (HTML supported)
messageId *stringID of the chat message to reply to

search_messages

Search Teams chat and channel messages by keyword across conversations you can access.

ParameterTypeDescription
query *stringSearch text (keyword or phrase)
topnumberMax results to return (default: 10, max: 25)

find_user

Look up people in the organization by display name or email address. Use this to resolve a colleague to a user ID or email before creating a chat. Requires the User.ReadBasic.All Graph permission.

ParameterTypeDescription
query *stringDisplay name or email address of the person to find

create_chat

Create a new 1:1 or group chat with one or more colleagues (by email address or user ID) and return the new chat ID, which can then be used with send_chat_message. The chat, and any topic, is visible to everyone added to it; no message is sent. A chat cannot be deleted by this connector.

ParameterTypeDescription
members *arrayEmail addresses or user IDs of the other participants (one for a 1:1 chat, several for a group chat)
topicstringChat topic (group chats only)

list_teams

List Teams you are a member of.

list_channels

List channels in a Team.

ParameterTypeDescription
teamId *stringTeam ID

list_channel_messages

List recent messages in a Teams channel. Requires the ChannelMessage.Read.All Graph permission, which may need tenant admin approval.

ParameterTypeDescription
channelId *stringChannel ID
teamId *stringTeam ID
topnumberMax messages to return (default: 25, max: 50)

send_channel_message

Post a new message now to a Teams channel, as the user; everyone in the channel can see it and may be notified. It cannot be unsent from here. Requires the ChannelMessage.Send Graph permission, which may need tenant admin approval.

ParameterTypeDescription
channelId *stringChannel ID
content *stringMessage content (HTML supported)
teamId *stringTeam ID

reply_to_channel_message

Send a reply now to an existing message in a Teams channel, as the user; everyone in the channel can see it, and people in that thread may be notified. It cannot be unsent from here. Requires the ChannelMessage.Send Graph permission, which may need tenant admin approval.

ParameterTypeDescription
channelId *stringChannel ID
content *stringReply content (HTML supported)
messageId *stringID of the channel message to reply to
teamId *stringTeam ID

get_presence

Get your current presence status (available, busy, away, etc.).

get_user_presence

Get a colleague's current presence status (available, busy, in a meeting, etc.). Requires the Presence.Read.All Graph permission, which may need tenant admin approval.

ParameterTypeDescription
userId *stringUser ID or email address of the colleague

set_presence

Set your own presence status (e.g. Busy, DoNotDisturb, Away), optionally for a limited duration; colleagues see the new status in Teams, and DoNotDisturb silences the user's notifications. It can be changed back by calling this tool again. Requires the Presence.ReadWrite Graph permission.

ParameterTypeDescription
availability *stringPresence availability to set
durationMinutesintegerHow long the status applies, in whole minutes (5-480). Omit to keep it until changed.