Connect to Microsoft Teams to manage teams, channels, messages, and automate collaboration workflows through AI agents.
API
UI
Open Source
1
Install the SDKs (optional)
pip install klavis
2
Create a server instance
from klavis import Klavisfrom klavis.types import McpServerNameklavis_client = Klavis(api_key="YOUR_API_KEY")# Create a Microsoft Teams MCP server instanceteams_server = klavis_client.mcp_server.create_server_instance( server_name=McpServerName.MICROSOFT_TEAMS, user_id="user123")
userId specifies whose connected accounts and data you are accessing in Klavis. It should be a unique id for yourself, your team, or your organization.
Response Information: The API returns:
serverUrl: The URL for connecting your MCP client to Microsoft Teams
instanceId: Unique identifier for your server instance
oauthUrl: OAuth authorization URL for Microsoft Teams authentication
3
Authenticate
import webbrowser# Open OAuth authorization pagewebbrowser.open(teams_server.oauth_url)
🎉 Your Microsoft Teams MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.
# Pull the Docker imagedocker pull ghcr.io/klavis-ai/microsoft-teams-mcp-server:latest# Run with OAuth support (requires Klavis API key)docker run -p 5000:5000 \ -e KLAVIS_API_KEY=$KLAVIS_API_KEY \ ghcr.io/klavis-ai/microsoft-teams-mcp-server:latest
With our progressive discovery approach, Klavis System is capable of enabling all tools for Microsoft Teams. Please use the get_tools API for more details. If you find any tool that is missing, please reach out to contact@klavis.ai.