# Microsoft Teams — how to use (mcp.ai)

Microsoft Teams in natural language: read chats and channel messages, post messages and replies, manage teams, channels and members, create meetings. The platform provides the OAuth app, just click Connect and pick your Microsoft account. Multiple accounts can be connected to the same MCP.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_microsoft_teams?ms=1796396520000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `microsoft_teams_add_member_to_team`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/microsoft_teams`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://new.mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/microsoft_teams/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/microsoft_teams/add/member/to/team` — (DEPRECATED: use `MICROSOFT_TEAMS_ADD_TEAM_MEMBER`) Tool to add a user to a Microsoft Teams team. Use when granting or updating membership for a user.
  - body: { roles?: string[], team_id: string, user_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/archive/team` — Tool to archive a Microsoft Teams team. Use after confirming the team ID; returns 202 if accepted.
  - body: { team_id: string, should_set_spo_site_read_only_for_members?: boolean }
- `POST https://api.mcp.ai/api/microsoft_teams/chats/get/all/chats` — Lists a specified user's Microsoft Teams chats, supporting filtering and property selection. Returns one page per call (up to `top`, further bounded by `limit` if given) plus a `next_page_token`; pass
  - body: { top?: integer, limit?: integer, filter?: string, select?: string[], user_id?: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/chats/get/all/messages` — DEPRECATED: Use ListUserChatMessages instead. Lists messages from a specified Microsoft Teams chat via the Microsoft Graph API. Returns one page per call (up to `top`, further bounded by `limit` if gi
  - body: { top?: integer, limit?: integer, filter?: string, chat_id: string, orderby?: string, user_id?: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/create/meeting` — Use to schedule a new standalone Microsoft Teams online meeting, i.e., one not linked to any calendar event.
  - body: { subject: string, user_id?: string, chat_info?: object, external_id?: string, participants?: object[], end_date_time: string, allow_recording?: boolean, start_date_time: string, allow_live_share?: string, allow_whiteboard?: boolean, chat_restrictions?: object, allow_meeting_chat?: string, allowed_presenters?: string, allow_transcription?: boolean, meeting_template_id?: string, allow_breakout_rooms?: boolean, is_passcode_required?: boolean, record_automatically?: boolean, watermark_protection?: object, lobby_bypass_settings?: object, is_entry_exit_announced?: boolean, allow_teamwork_reactions?: boolean, allow_power_point_sharing?: boolean, allow_attendee_to_enable_mic?: boolean, allow_attendee_to_enable_camera?: boolean, is_end_to_end_encryption_enabled?: boolean, allow_participants_to_change_name?: boolean, share_meeting_chat_history_default?: string, allow_copying_and_sharing_meeting_content?: boolean }
- `POST https://api.mcp.ai/api/microsoft_teams/create/team` — Tool to create a new Microsoft Teams team. Use when you need to provision a team with optional template, channels, and members.
  - body: { members?: object[], channels?: object[], visibility?: string, description?: string, displayName: string, funSettings?: object, guestSettings?: object, installedApps?: object[], classification?: string, memberSettings?: object, specialization?: string, firstChannelName?: string, messagingSettings?: object, templateOdataBind?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/delete/team` — Tool to delete a Microsoft Teams team. Use after confirming the target team ID.
  - body: { team_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/get/channel` — Tool to get a specific channel in a team. Use after obtaining valid team and channel IDs to fetch channel details.
  - body: { expand?: string, select?: string, team_id: string, channel_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/get/channel/message` — Retrieves a specific message from a Microsoft Teams channel using its Team, Channel, and Message IDs.
  - body: { team_id: string, channel_id: string, message_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/get/chat/message` — Tool to get a specific chat message. Use after confirming chat_id and message_id.
  - body: { chat_id: string, message_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/get/team/from/group` — Tool to get a specific team. Use when full details of one team by ID are needed.
  - body: { expand?: string, select?: string, group_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/list/message/replies` — Tool to list all replies to a specific message in a Microsoft Teams channel. Use when you need to retrieve the conversation thread for a particular message.
  - body: { top?: integer, skip?: integer, count?: boolean, expand?: string, filter?: string, search?: string, select?: string, orderby?: string, team_id: string, channel_id: string, message_id: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/list/people` — Retrieves a list of people relevant to a specified user from Microsoft Graph, noting the `search` parameter is only effective if `user_id` is 'me'.
  - body: { top?: integer, skip?: integer, filter?: string, search?: string, select?: string, orderby?: string, user_id?: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/list/team/members` — Tool to list members of a Microsoft Teams team. Use when you need to retrieve the members of a specific team, for auditing or notifications.
  - body: { top?: integer, limit?: integer, filter?: string, select?: string, team_id: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/list/users` — Tool to list all users in the organization. Use when you need to retrieve directory users with filtering, pagination, and field selection.
  - body: { top?: integer, count?: boolean, expand?: string, filter?: string, search?: string, select?: string, orderby?: string, page_token?: string, consistencyLevel?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/create/channel` — (DEPRECATED: use `MICROSOFT_TEAMS_CREATE_CHANNEL`) Tool to create a new standard, private, or shared channel within a Microsoft Teams team. Use when you need to create a new channel for team collabora
  - body: { name: string, members?: string, team_id: string, description?: string, membership_type?: string, created_date_time?: string, shared_with_teams?: string, is_favorite_by_default?: boolean }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/create/chat` — Creates a new chat; if a 'oneOnOne' chat with the specified members already exists, its details are returned, while 'group' chats are always newly created. IMPORTANT: The authenticated user MUST be in
  - body: { topic?: string, members: object[], chatType: string, installedApps?: object[] }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/list` — Retrieves Microsoft Teams accessible by the authenticated user, allowing filtering, property selection, and pagination.
  - body: { top?: integer, count?: boolean, filter?: string, select?: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/list/channels` — Retrieves channels for a specified Microsoft Teams team ID (must be valid and for an existing team), with options to include shared channels, filter results, and select properties.
  - body: { filter?: string, select?: string, team_id: string, page_token?: string, include_shared_channels?: boolean }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/list/chat/messages` — DEPRECATED: Use ListUserChatMessages instead. Retrieves messages (newest first) from an existing and accessible Microsoft Teams one-on-one chat, group chat, or channel thread, specified by `chat_id`.
  - body: { top?: integer, limit?: integer, filter?: string, chat_id: string, orderby?: string, page_token?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/post/channel/message` — Posts a new top-level message to a channel in Microsoft Teams (does NOT reply to an existing message). Despite the file name 'reply_to_channel_chat', this action creates a brand-new message in the cha
  - body: { locale?: string, content: string, subject?: string, summary?: string, team_id: string, mentions?: object[], channel_id: string, importance?: string, attachments?: object[], content_type?: string, hosted_contents?: object[] }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/post/chat/message` — Sends a non-empty message (text or HTML) to a specified, existing Microsoft Teams chat; content must be valid HTML if `content_type` is 'html'.
  - body: { locale?: string, chat_id: string, content: string, subject?: string, mentions?: object[], importance?: string, attachments?: object[], content_type?: string, hostedContents?: object[] }
- `POST https://api.mcp.ai/api/microsoft_teams/teams/post/message/reply` — (DEPRECATED: use `MICROSOFT_TEAMS_POST_MESSAGE_REPLY`) Sends a reply to an existing message, identified by `message_id`, within a specific `channel_id` of a given `team_id` in Microsoft Teams.
  - body: { content: string, subject?: string, team_id: string, mentions?: object[], channel_id: string, importance?: string, message_id: string, attachments?: object[], content_type?: string, hosted_contents?: object[] }
- `POST https://api.mcp.ai/api/microsoft_teams/unarchive/team` — Tool to unarchive a Microsoft Teams team. Use when you need to restore an archived team to active state.
  - body: { team_id: string }
- `POST https://api.mcp.ai/api/microsoft_teams/update/channel/message` — Tool to update a message in a channel. Use when you need to modify an existing channel message after confirming channel and message IDs.
  - body: { model?: string, content?: string, subject?: string, team_id: string, channel_id: string, importance?: string, message_id: string, content_type?: string, policy_violation?: object }
- `POST https://api.mcp.ai/api/microsoft_teams/update/chat/message` — Tool to update a specific message in a chat. Use when you need to correct or modify a sent chat message.
  - body: { model?: string, chat_id: string, content: string, message_id: string, content_type?: string }
- `POST https://api.mcp.ai/api/microsoft_teams/update/team` — Tool to update the properties of a team. Use when you need to modify team settings such as member, messaging, or fun settings.
  - body: { team_id: string, visibility?: string, description?: string, displayName?: string, funSettings?: object, classSettings?: object, guestSettings?: object, classification?: string, memberSettings?: object, specialization?: string, messagingSettings?: object }

## Example prompts
- "Summarize the unread messages from my recent Teams chats"
- "List this week's messages in the General channel of the Engineering team"
- "Post an announcement in the Announcements channel about tomorrow's meeting"

## More
- Page: https://new.mcp.ai/microsoft_teams
- Agent spec (llms.txt): https://new.mcp.ai/microsoft_teams/llms.txt
- Postman collection: https://new.mcp.ai/microsoft_teams/postman.json
