================== /// MCP /// /// MCP /// ================== [server:online] [protocol:ready]
mcp-teams-server
by InditexTech
Python implementation of an MCP (Model Context Protocol) server that connects to Microsoft Teams to read, create and reply to channel messages, mentions users and lists members.
read messages
Capability to fetch and display messages from Microsoft Teams channels or threads
create messages
Capability to post a new message into a Microsoft Teams channel or thread
reply to messages
Capability to add a reply to an existing Microsoft Teams message or thread
mention members
Capability to mention specific Microsoft Teams users within a message
Start thread in channel with title and contents, mentioning users
Starts a new conversation thread in a channel, setting a title, body content and including user mentions
Update existing threads with message replies, mentioning users
Adds replies to an existing thread while optionally mentioning users
Read thread replies
Retrieves the list of replies in a specific conversation thread
List channel team members
Lists the members (users) that belong to a given Microsoft Teams channel
Read channel messages
Reads all messages present in a specified Microsoft Teams channel
Installation
git clone https://github.com/InditexTech/mcp-teams-server.git
cd mcp-teams-server
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
# If the repo uses Poetry instead:
# poetry install
# Set the following environment variables (obtained from Azure AD App Registration)
export AZURE_CLIENT_ID="<app-id>"
export AZURE_TENANT_ID="<tenant-id>"
export AZURE_CLIENT_SECRET="<secret>"
export TEAMS_BOT_ID="<bot-id>" # Optional – if bot identity is separate
uvicorn mcp_teams_server.main:app --host 0.0.0.0 --port 8080
curl http://localhost:8080/health
ngrok http 8080 # Copy the public URL into your Teams bot configuration.
# Container image (example)
docker build -t inditex/mcp-teams-server .
docker run -p 8080:8080 -e AZURE_CLIENT_ID=... inditex/mcp-teams-server