MCPSERV.CLUB
floriscornel

Teams MCP

MCP Server

Seamless Microsoft Teams integration for AI assistants

Active(75)
20stars
2views
Updated 12 days ago

About

A Model Context Protocol server that authenticates via Microsoft Graph, enabling AI assistants to access Teams, chats, channels, and organizational data with rich message formatting and advanced search capabilities.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Teams MCP

Teams MCP is a Model Context Protocol server that bridges AI assistants with Microsoft Graph, enabling seamless access to Teams, users, and organizational data. By exposing a rich set of capabilities—authentication, user lookup, Teams management, chat handling, and advanced search—developers can build intelligent assistants that interact naturally with the Microsoft 365 ecosystem. The server’s primary value lies in providing a single, consistent interface for AI workflows to perform complex operations like posting messages, retrieving conversation history, or searching across the entire Teams environment without handling OAuth flows or API intricacies themselves.

The server implements a full OAuth 2.0 flow with Microsoft Graph, managing tokens securely and handling refreshes automatically. This means an AI assistant can stay authenticated for long‑running tasks, while developers only need to configure the MCP once. Once authenticated, the assistant can query user profiles, search directory data, and list all Teams a user belongs to. For each team, the assistant can enumerate channels, read or post messages, and even adjust message importance levels (normal, high, urgent). The chat API mirrors this flexibility by allowing the creation of one‑to‑one or group conversations, retrieval of message history with pagination and filtering, and sending messages to existing chats.

Teams MCP extends beyond basic CRUD operations by integrating Microsoft Search with KQL support. Assistants can execute complex queries across all Teams channels and chats, filter by sender, attachments, or importance, and retrieve recent messages that match specific criteria. This capability is particularly useful for compliance bots, knowledge‑base assistants, or any scenario where contextual information must be surfaced quickly. Rich message formatting is also supported: messages can be sent as plain text or markdown, which the server converts to sanitized HTML before delivery. The sanitization pipeline removes potentially dangerous content and restricts output to a safe subset of HTML tags, ensuring XSS protection while still allowing expressive formatting.

In real‑world scenarios, Teams MCP powers a variety of AI workflows. A customer support bot can pull ticket details from an external system, post updates directly to a Teams channel, and alert the relevant team members. A project‑management assistant can schedule meetings, post reminders, and retrieve past conversation snippets to keep stakeholders informed. Developers building chat‑based applications can leverage the search API to surface relevant documents or messages, creating a knowledge‑rich conversational experience. By consolidating authentication, data access, messaging, and search into one MCP server, Teams MCP eliminates boilerplate code, reduces integration friction, and lets developers focus on delivering intelligent user experiences.