by InditexTech
An MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
MCP Teams Server is an implementation of the Model Context Protocol (MCP) designed to integrate with Microsoft Teams. It acts as a server that allows external applications to interact with Microsoft Teams messaging functionalities programmatically. This includes reading, creating, and replying to messages, as well as mentioning users within Teams conversations.
To use MCP Teams Server, you first need to clone the repository and install the necessary dependencies using uv
package manager. Before running the server, you must configure several environment variables, including TEAMS_APP_ID
, TEAMS_APP_PASSWORD
, TEAMS_APP_TYPE
, TEAMS_APP_TENANT_ID
, TEAM_ID
, and TEAMS_CHANNEL_ID
. A detailed guide for Microsoft Teams and Azure resource configuration is provided in the project documentation. Once configured, you can start the server using uv run mcp-teams-server
. For containerized deployment, a pre-built Docker image is available, or you can build your own.
Q: What are the prerequisites for running MCP Teams Server?
A: You need uv
package manager, Python 3.10, and a Microsoft Teams account with proper setup as detailed in the MS-Teams-setup.md
document.
Q: How do I configure Microsoft Teams for use with MCP Teams Server?
A: Refer to the MS-Teams-setup.md
document in the project for guidance on configuring Microsoft Teams and required Azure resources.
Q: Is there a Docker image available for MCP Teams Server?
A: Yes, a pre-built Docker image is available on ghcr.io/inditextech/mcp-teams-server:latest
. You can also build your own Docker image.
Q: How can I set up an LLM to use MCP Teams Server?
A: Instructions for setting up an LLM are provided in the llms-install.md
document within the project.
An MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
https://github.com/user-attachments/assets/548a9768-1119-4a2d-bd5c-6b41069fc522
git clone [repository-url]
cd mcp-teams-server
uv venv
uv sync --frozen --all-extras --dev
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.
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
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
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
A docker image is available to run MCP server. You can build it with the following command:
docker build . -t inditextech/mcp-teams-server
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
Please follow instructions on the following document
See CHANGELOG.md for a list of changes and version history.
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
For security concerns, please see our Security Policy.
This project is licensed under the Apache-2.0 file for details.
© 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
Please log in to share your review and rating for this MCP.