microsoft-teams-mcp MCP server
An MCP Server with a tool for Microsoft Teams chat notifications.
[!WARNING]
This is provided for reference and wasn’t tested with MCP clients other than VS Code.
Components
Tools
The server implements one tool:
- send-notification: Sends a notification message to Microsoft Teams
- Takes “message” and “project” as required string arguments
- Supports Markdown formatting for messages
- Uses Azure AD authentication to securely communicate with Teams
Configuration
This requires a Microsoft Teams bot to use for the notifications. You can use my example Notification Bot created with Teams Toolkit.
The server requires the following environment variables to be set:
BOT_ENDPOINT
: The URL endpoint of your Microsoft Teams botMICROSOFT_APP_ID
: Application (client) ID from Azure AD app registrationMICROSOFT_APP_PASSWORD
: Client secret from Azure AD app registrationMICROSOFT_APP_TENANT_ID
: Your Azure AD tenant IDEMAIL
: The email address for the user receiving notifications
You can set these in a .env
file in the project root directory.
Quickstart
Install
VS Code
This was tested using MCP support in VS Code, which at the time of creating this was available only in VS Code Insiders.
Add this to the VS Code Insiders Settings (JSON)
"mcp": {
"inputs": [],
"servers": {
"MicrosoftTeams": {
"command": "uv",
"args": [
"--directory",
"<path/to/the/project>/microsoft-teams-mcp",
"run",
"microsoft-teams-mcp"
],
"env": {
"BOT_ENDPOINT": "<endpoint or dev tunnel URL of Teams bot>/api/notification",
"MICROSOFT_APP_ID": "<microsoft-entra-client-id>",
"MICROSOFT_APP_PASSWORD": "<microsoft-entra-client-secret>",
"MICROSOFT_APP_TENANT_ID": "<microsoft-entra-tenant-id>",
"EMAIL": "<your-email-in-teams>",
}
}
}
}
Development
Building
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
Microsoft Teams MCP Server
Project Details
- therealjohn/microsoft-teams-mcp
- Last Updated: 4/9/2025
Recomended MCP Servers
playwright-mcp with video record
A Model Context Protocol server starter template
Code execution and line-editing for Claude Desktop using MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts
This MCP server integrates with your Google Drive and Google Sheets, to enable creating and modifying spreadsheets.
An MCP server for working with Spline 3D design tool API
Send system notification when Agent task is done
MCP server that allows simple SAP GUI interaction for LLM models using simulated mouse clicks and keyboard input.
Python sandboxes for llms