
MCP Teams Server
An MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
What is MCP Teams Server?
MCP Teams Server is an implementation of the Model Context Protocol (MCP) designed for integration with Microsoft Teams, enabling functionalities such as reading, creating, and replying to messages, as well as mentioning team members.
How to use MCP Teams Server?
To use MCP Teams Server, clone the repository, set up the required environment variables, and start the server using the provided commands. Ensure you have a Microsoft Teams account and the necessary configurations in place.
Key features of MCP Teams Server?
- Start threads in channels with titles and contents, mentioning users.
- Update existing threads with message replies, mentioning users.
- Read thread replies and list channel team members.
- Read channel messages.
Use cases of MCP Teams Server?
- Automating message management in Microsoft Teams.
- Enhancing team collaboration through automated replies and mentions.
- Integrating external applications with Microsoft Teams for seamless communication.
FAQ from MCP Teams Server?
- What is the Model Context Protocol?
The Model Context Protocol is a framework that allows applications to communicate contextually within platforms like Microsoft Teams.
- Do I need a Microsoft Teams account to use this server?
Yes, a Microsoft Teams account is required for integration and functionality.
- Is there a Docker image available for MCP Teams Server?
Yes, a Docker image can be built and run for easier deployment.
MCP Teams Server
An MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
Features
https://github.com/user-attachments/assets/548a9768-1119-4a2d-bd5c-6b41069fc522
- Start thread in channel with title and contents, mentioning users
- Update existing threads with message replies, mentioning users
- Read thread replies
- List channel team members
- Read channel messages
Prerequisites
- uv package manager
- Python 3.10
- Microsoft Teams account with proper set-up
Installation
- 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
Teams configuration
Please read this document to help you to configure Microsoft Teams and required Azure resources. It is not a step-by-step guide but can help you figure out what you will need.
Usage
Set up the following environment variables in your shell or in an .env file. You can use 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
Development
Integration tests require the set-up the following 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 |
uv run pytest -m integration
Pre-built docker image
There is a pre-built image hosted in ghcr.io. You can install this image by running the following command
docker pull ghcr.io/inditextech/mcp-teams-server:latest
Build docker image
A docker image is available to run MCP server. You can build it with the following command:
docker build . -t inditextech/mcp-teams-server
Run docker image
Basic run configuration:
docker run -it inditextech/mcp-teams-server
Run with environment variables from .env file:
docker run --env-file .env -it inditextech/mcp-teams-server
Setup LLM to use MCP Teams Server
Please follow instructions on the following document
Changelog
See CHANGELOG.md for a list of changes and version history.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Security
For security concerns, please see our Security Policy.
License
This project is licensed under the Apache-2.0 file for details.
© 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
