Microsoft teams Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Microsoft teams MCP or direct API to send messages, manage channels, schedule meetings, and fetch chat history through natural language.
Microsoft teams Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Add member to teamTool to add a user to a microsoft teams team.
Archive Teams teamTool to archive a microsoft teams team.
Get all chatsRetrieves all microsoft teams chats a specified user is part of, supporting filtering, property selection, and pagination.
Get all chat messagesRetrieves all messages from a specified microsoft teams chat using the microsoft graph api, automatically handling pagination; ensure `chat id` is valid and odata expressions in `filter` or `select` are correct.
Create online meetingUse to schedule a new standalone microsoft teams online meeting, i.
Create TeamTool to create a new microsoft teams team.
Delete Teams teamTool to delete a microsoft teams team.
Get team channelTool to get a specific channel in a team.
Get chat messageTool to get a specific chat message.
Get TeamTool to get a specific team.
List message repliesTool to list replies to a channel message.
List team membersTool to list members of a microsoft teams team.
List Teams templatesTool to list available microsoft teams templates.
List usersTool to list all users in the organization.
Create a channelCreates a new 'standard', 'private', or 'shared' channel within a specified microsoft teams team.
Create ChatCreates a new chat; if a 'oneonone' chat with the specified members already exists, its details are returned, while 'group' chats are always newly created.
Get Teams messageRetrieves a specific message from a microsoft teams channel using its team, channel, and message ids.
List TeamsRetrieves microsoft teams accessible by the authenticated user, allowing filtering, property selection, and pagination.
List team channelsRetrieves 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.
List chat messagesRetrieves messages (newest first) from an existing and accessible microsoft teams one-on-one chat, group chat, or channel thread, specified by `chat id`.
List PeopleRetrieves a list of people relevant to a specified user from microsoft graph, noting the `search` parameter is only effective if `user id` is 'me'.
Post message to Teams channelPosts a new text or html message to a specified channel in a microsoft teams team.
Send message to Teams chatSends a non-empty message (text or html) to a specified, existing microsoft teams chat; content must be valid html if `content type` is 'html'.
Reply to Teams channel messageSends a reply to an existing message, identified by `message id`, within a specific `channel id` of a given `team id` in microsoft teams.
Unarchive Teams teamTool to unarchive a microsoft teams team.
Update Teams channel messageTool to update a message in a channel.
Update Teams chat messageTool to update a specific message in a chat.
Update TeamTool to update the properties of a team.

Connect Microsoft teams MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Microsoft teams tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Create online meeting with project team tomorrow at 2pm')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Microsoft teams API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Microsoft teams Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'List all chat messages from the engineering team channel this morning'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Microsoft teams actions with your Agent

Why Use Composio?

AI Native Microsoft teams Integration

  • Supports both Microsoft teams MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Microsoft teams data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Microsoft teams access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Microsoft teams
  • Scoped, least privilege access to Microsoft teams resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Microsoft teams with Composio?

No, you can get started immediately using Composio's built-in Microsoft teams app. For production, we recommend configuring your own OAuth credentials.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.