MCP Microsoft Teams Server

by InditexTech
Verified
Apache 2.0
37
  • Linux
  • Apple

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Facilitates GitHub repository interaction and access, as seen in the repository badges and references.

  • Displays dynamic badges for license and release information in the repository documentation.

  • Provides code quality metrics integration as shown in the badges for bugs, maintainability, and reliability ratings.

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

Installation

  1. Clone the repository:
git clone [repository-url] cd mcp-teams-server
  1. 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:

KeyDescription
TEAMS_APP_IDUUID for your MS Entra ID application ID
TEAMS_APP_PASSWORDClient secret
TEAMS_APP_TYPESingleTenant or MultiTenant
TEAMS_APP_TENANT_IDTenant uuid in case of SingleTenant
TEAM_IDMS Teams Group Id or Team Id
TEAMS_CHANNEL_IDMS 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:

KeyDescription
TEST_THREAD_IDtimestamp of the thread id
TEST_MESSAGE_IDtimestamp of the message id
TEST_USER_NAMEtest 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.)

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP server that integrates Microsoft Teams messaging (read, post, mention, list members and threads)

  1. Features
    1. Prerequisites
      1. Installation
        1. Teams configuration
          1. Usage
            1. Development
              1. Pre-built docker image
              2. Build docker image
              3. Run docker image
              4. Setup LLM to use MCP Teams Server
            2. Changelog
              1. Contributing
                1. Security
                  1. License
                    ID: 03fcygtadz