
Reply to a specific message in a Teams channel to create threaded conversations.
Retrieve all replies to a specific message to follow threaded conversations. Useful for understanding discussion context and reading complete conversation threads.
Check if a channel is private or standard. Returns channel permissions and member management availability.
List only the private channels in a team.
List all channels in a Microsoft Team.
Create a new channel within a Team for focused discussions.
Get detailed information about a Teams channel including description, settings, and metadata. Useful for understanding channel purpose and permissions.
Update channel settings such as name, description, or moderation settings.
Permanently delete a channel from a Team. Exercise caution - this removes all channel messages and files. Typically used for cleanup or reorganization.
List all files stored in a Team's SharePoint drive.
Remove files from a Team's drive to clean up outdated content, free up storage, or remove sensitive information. Exercise caution as this permanently deletes files.
Create a new Teams meeting with attendees and schedule it in calendars. Includes automatic Teams integration for online meetings.
List upcoming meetings and calendar events for the current user.
Get detailed information about a specific meeting including attendees, Teams link, and agenda.
Update an existing meeting's details such as time, attendees, or description.
Cancel a scheduled meeting and notify all attendees. Use this to remove meetings that are no longer needed or when circumstances change.
Check availability and free/busy times for users to find meeting time slots.
List all members of a Microsoft Team with their roles and status.
Add a new member to a Microsoft Team with specified roles and permissions.
Get detailed information about a specific team member including their role, permissions, and profile.
Update a team member's role or permissions within the team.
Remove a member from a Microsoft Team to revoke their access to team resources.
Retrieve message history from a Teams channel. Includes isfromme flag to distinguish your messages from others. Date filtering: createdbefore and created_after both use client-side filtering (API doesn't support date filters). Use when you know the specific team/channel. Faster than listallmy_messages for single-channel queries.
Send a message to a Teams channel. Requires teamid and channelid. Use getteamprimarychannel to get the General channel, or listchannels to find other channels.
Get detailed information about a specific message including sender, timestamp, and full content. Includes isfrom_me flag to distinguish your messages. Useful for referencing or analyzing particular communications.
Search for Teams by name or description to quickly find relevant workspaces. Supports discovering teams to join and finding specific collaboration spaces.
Get information about a Team's default 'General' channel where main discussions occur. Essential for accessing the primary communication hub of any team.
List all members with access to a specific channel, especially useful for private channels. Supports managing channel access and understanding membership.
Add a user to a private channel for selective access control. Note: This operation is only supported for private channels. For standard channels, use 'addteammember' as standard channels automatically include all team members.
Remove a user from a private channel while maintaining their team membership. Note: This operation is only supported for private channels. For standard channels, use 'removeteammember' as standard channels cannot have selective membership.
List all Microsoft Teams that the user is a member of. Returns all teams - no filtering options available due to API limitations.
Create a new Microsoft Team for collaboration. Use to set up project workspaces and organize team communication.
Get detailed information about a specific Microsoft Team including settings, member count, and metadata. Useful for understanding team structure and permissions.
Update team properties and settings including display name, description, member permissions, guest settings, messaging options, and fun features.
Permanently delete a Microsoft Team. Exercise caution - this removes all team data, channels, and files. Typically used for cleanup or decommissioning projects.
List available transcripts for a meeting with metadata (IDs, timestamps, URLs). Accepts event or meeting ID.
Get transcript content in VTT format with speaker names and timestamps. Accepts event or meeting ID.
Search for users in the organization by name, email, or display name. Use to find people to add to teams, start chats with, or @mention in messages. Accepts simple queries like 'Max' or advanced syntax like '"displayName:Max"'. Input: {"query": "searchterm", "top": numberof_results}.
Get a user's presence status (available, busy, away, offline).
Send a direct private message to a user outside of channels. Returns shareable webUrl link to the sent message. Requires userid (get from searchusers). Creates new DM thread if none exists with that user.
Add an emoji reaction to a message in a Teams channel.
Search for messages across teams and channels using keywords. Returns full message content with isfrom_me flag to distinguish your messages from others. Uses hybrid approach for immediate results and indexed search. FAST for keyword searches. Use this instead of listallmy_messages when searching by text content. Note: newly sent messages may take minutes to appear in indexed search.
Get detailed information about a specific user including profile, contact info, and organizational details. Requires a valid user ID (GUID format) or email address - use search_users to find valid user IDs first.
Check if a user is likely available by looking at their recent activity and profile information. Alternative to presence when direct presence permissions are not available.
List all direct chats and group chats the user is part of. Includes unread message detection via chatViewpoint. FAST: Use this for counting contacts, finding who you messaged, or checking unread status. For message content use readdirectchat_messages.
Read messages from a specific direct chat or group chat. Returns conversation history with timestamps, senders, and content. Includes isfromme flag and webUrl links. Date filtering: createdbefore (API filter) and createdafter (client-side). Use listdirectchats first to get chat IDs. Returns at most 50 messages per call; pass pageinfo.next_cursor as cursor to fetch the next page.
Get messages from Teams channels and DMs. Use mymessagesonly=True for personal message search (prioritizes DMs), or team_ids for team-specific searches. Date filtering reduces execution time.
Validate Microsoft Teams credentials. Verifies credentials during setup.

In an mcp.json file, add the configuration below, and restart Cursor.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "url": "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
5 "headers": {
6 "Authorization": "Bearer yMt*****"
7 }
8 }
9 }
10}
11Open your Claude Desktop configuration file and add the server configuration below. You'll also need to restart the application for the changes to take effect.
Make sure Claude is using the Node v20+.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote@latest",
8 "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
9 "--header",
10 "Authorization: Bearer ${AUTH_TOKEN}"
11 ],
12 "env": {
13 "AUTH_TOKEN": "yMt*****"
14 }
15 }
16 }
17}Open your Windsurf MCP configuration file and add the server configuration below.
Click on the refresh button in the top right of the Manage MCP server page or in the top right of the chat box in the box icon.
Learn more in the official documentation ↗
1{
2 "mcpServers": {
3 "agent-handler": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "mcp-remote@latest",
8 "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
9 "--header",
10 "Authorization: Bearer ${AUTH_TOKEN}"
11 ],
12 "env": {
13 "AUTH_TOKEN": "<ah-production-access-key>"
14 }
15 }
16 }
17 }In Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows), run "MCP: Open User Configuration".
You can then add the configuration below and press "start" right under servers. Enter the auth token when prompted.
Learn more in the official documentation ↗
1{
2 "inputs": [
3 {
4 "type": "promptString",
5 "id": "agent-handler-auth",
6 "description": "Agent Handler AUTH_TOKEN", // "yMt*****" when prompt
7 "password": true
8 }
9 ],
10 "servers": {
11 "agent-handler": {
12 "type": "stdio",
13 "command": "npx",
14 "args": [
15 "-y",
16 "mcp-remote@latest",
17 "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
18 "--header",
19 "Authorization: Bearer ${input:agent-handler-auth}"
20 ]
21 }
22 }
23}It's an MCP server that gives your agents access to Microsoft Teams via tools. Your agents can invoke these tools to send messages to channels, schedule meetings, check user availability, retrieve meeting transcripts, and more.
Microsoft Teams offers MCP support through their SDK, but you can also use a Teams MCP server from a third-party platform, like Merge Agent Handler.
The use cases naturally depend on the agent you've built, but here are a few common ones:
send_channel_message</code> to post a structured alert to the relevant on-call channel in Teams, including error details and a link to the affected servicesend_channel_message</code>, keeping the team informed without anyone needing to check Jira manuallycheck_user_availability</code> to find open slots across a set of attendees, then calls <code class="blog_inline-code">create_meeting</code> to book a Teams meeting and send invites, triggered by a deal reaching a specific pipeline stageget_transcript_content</code> to retrieve the full transcript, summarizes the key decisions and action items, and posts the summary to a designated Teams channelHere are some of the most commonly used tools:
<code class="blog_inline-code">send_channel_message</code> posts a message to a specified Teams channel. Useful for agents that need to surface alerts, status updates, or summaries from external systems into a Teams workspace<code class="blog_inline-code">list_channel_messages</code> retrieves recent messages from a Teams channel. Call this when an agent needs to review conversation history before taking action or generating a digest<code class="blog_inline-code">search_messages</code> searches across Teams messages by keyword or phrase. Good for agents that need to locate a specific discussion thread or audit activity around a particular topic<code class="blog_inline-code">create_meeting</code> schedules a new Teams meeting with specified attendees and time. Use this when an agent needs to coordinate a meeting in response to a business trigger, like a support escalation or a deal milestone<code class="blog_inline-code">get_transcript_content</code> retrieves the full text transcript of a recorded Teams meeting. Helpful when an agent needs to extract decisions, action items, or context from a meeting after it has ended<code class="blog_inline-code">check_user_availability</code> returns free and busy windows for one or more users. Call this before scheduling a meeting to ensure the agent books at a time that works for all attendeesHere is what distinguishes Merge Agent Handler's Microsoft Teams MCP server from building your own or using a generic alternative:
You can take the following steps:
1. Create or log into your Merge Agent Handler account and navigate to Tool Packs (collections of connector tools scoped to a specific use case)
2. Create a new Tool Pack, then find and enable the Microsoft Teams connector. Choose which tools to include — enable read tools like list_channel_messages for monitoring use cases, or add write tools like send_channel_message and create_meeting if your agent needs to post updates or schedule meetings
3. Add a Registered User inside the Tool Pack. This is the identity context under which your agent operates. Merge generates a unique MCP URL scoped to this user once it's created
4. From the Registered User detail page, authenticate Microsoft Teams by completing the OAuth flow. Merge stores and manages the credentials going forward
5. Copy the MCP URL from the Tool Pack detail page and generate an API key from Settings. You'll need both to connect your agent
6. Add the MCP server to your agent or IDE using the MCP URL and API key. Your Microsoft Teams tools are now accessible through that endpoint
Whether you're an engineer experimenting with agents or a product manager looking to add tools, you can get started for free now