MCP server that integrates Microsoft Teams messaging (read, post, mention, list members and threads)
The Model Context Protocol (MCP) revolutionizes how Large Language Model (LLM) applications interact with external data sources and tools. The MCP Teams Server is a powerful implementation of the MCP, designed to seamlessly integrate with Microsoft Teams, unlocking a new realm of possibilities for AI-driven workflows.
This integration empowers you to:
Before you begin, ensure you have the following:
Get started in a few simple steps:
Clone the Repository:
git clone [repository-url] cd mcp-teams-server
Create a Virtual Environment and Install Dependencies:
uv venv uv sync --frozen --all-extras --dev
Refer to the comprehensive MS Teams Setup Guide for detailed instructions on configuring Microsoft Teams and the required Azure resources.
Configure the following environment variables. You can use the sample file as a template:
Key | Description |
---|---|
TEAMS_APP_ID | UUID for your MS Entra ID application ID |
TEAMS_APP_PASSWORD | Client secret |
TEAMS_APP_TYPE | SingleTenant or MultiTenant |
TEAMS_APP_TENANT_ID | Tenant uuid in case of SingleTenant |
TEAM_ID | MS Teams Group Id or Team Id |
TEAMS_CHANNEL_ID | MS Teams Channel ID with url escaped chars |
Start the server:
uv run mcp-teams-server
For integration tests, set up these environment variables:
Key | Description |
---|---|
TEST_THREAD_ID | timestamp of the thread id |
TEST_MESSAGE_ID | timestamp of the message id |
TEST_USER_NAME | test user name |
Run integration tests:
uv run pytest -m integration
A pre-built Docker image is available on ghcr.io:
docker pull ghcr.io/inditextech/mcp-teams-server:latest
Build the Docker image with:
docker build . -t inditextech/mcp-teams-server
Basic run:
docker run -it inditextech/mcp-teams-server
Run with environment variables from .env
:
docker run --env-file .env -it inditextech/mcp-teams-server
Follow the instructions in the LLM Installation Guide to set up your LLM to use the MCP Teams Server.
Stay up-to-date with the latest changes and version history in CHANGELOG.md.
We welcome contributions! Please review CONTRIBUTING.md for our code of conduct and submission process.
For security concerns, please consult our Security Policy.
๐ VOYP Voice Over Your Phone MCP Server for making calls.
๐ An MCP server with openAPI specs for using the WhatsApp unnoficial API (https://waha.devlike.pro/ also open source: https://github.com/devlikeapro/waha
๐ ๐ JMeter MCP Server for performance testing
๐ โ๏ธ Slack workspace integration for channel management and messaging