Microsoft 365 Teams
Read and send Microsoft Teams chats and channel messages through Microsoft Graph
Microsoft 365 Teams is an MCP server for communication. It runs locally on your machine and is started by your AI client.
- Platforms
- API, Self-hosted, Microsoft Teams
- Runs
- Locally
- What it can do
- Can change data (3 tools)
- Version
- 0.3.5
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teamsAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-server-microsoft-teams": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams"
],
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-server-microsoft-teams": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams"
],
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server-microsoft-teams": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams"
],
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-server-microsoft-teams": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams"
],
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teamsOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-server-microsoft-teams]
command = "npx"
args = ["-y", "@mindstone/mcp-server-microsoft-teams"]
env = { MS_CLIENT_ID = "<MS_CLIENT_ID>", MS_CONFIG_DIR = "<MS_CONFIG_DIR>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-server-microsoft-teams": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams"
],
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Or run: gemini mcp add -s user -e MS_CLIENT_ID='<MS_CLIENT_ID>' -e MS_CONFIG_DIR='<MS_CONFIG_DIR>' mcp-server-microsoft-teams npx -- -y @mindstone/mcp-server-microsoft-teams
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-server-microsoft-teams": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-microsoft-teams" ], "env": { "MS_CLIENT_ID": "<MS_CLIENT_ID>", "MS_CONFIG_DIR": "<MS_CONFIG_DIR>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MS_CLIENT_IDMicrosoft Entra (Azure AD) application client IDRequiredMS_CONFIG_DIRPath to the per-user Microsoft config directory (credentials/, accounts.json)RequiredMS_ACCOUNT_EMAILAccount email when running in multi-account per-instance mode (falls back to the first account in accounts.json)MS_MCP_PACKAGE_IDLogical package ID surfaced in error responsesMICROSOFT_REQUEST_TIMEOUT_MSOverride the upstream Microsoft Graph request timeout in milliseconds (max 300000 = 5 min)
About Microsoft 365 Teams
It is one of a five-connector Microsoft 365 set from Mindstone, sharing a single sign-in with the mail server so Teams, mail, calendar, files and SharePoint need no separate OAuth flows. This server does not run OAuth itself: a host app signs in and writes token files that it reads from a config directory.
The 17 tools cover chats, threaded replies, creating 1:1 or group chats, user lookup, keyword search across chat and channel messages, teams and channels, and presence. One tool opens an editable compose form first, so a person clicks Send before anything posts.
It needs Node.js 20+, a Microsoft Entra client ID and that config directory. The README's example asks for the last 10 messages in a project chat; the host lists chats by participant and then reads the messages.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 3 of 12 tools change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- list_chatsName suggests: reads
- Lists recent Teams chats.
- get_chatName suggests: reads
- Gets details about a chat.
- list_chat_messagesName suggests: reads
- Lists recent messages from a chat.
- send_chat_messageName suggests: changes
- Sends a message to a chat.
- reply_to_messageName suggests: changes
- Replies to a specific message in a thread.
- compose_chat_message
- Opens an editable compose form before sending.
- find_userName suggests: reads
- Looks up people by display name or email.
- create_chatName suggests: changes
- Creates a 1:1 or group chat.
- search_messagesName suggests: reads
- Searches chat and channel messages by keyword.
- list_teamsName suggests: reads
- Lists teams you belong to.
- list_channelsName suggests: reads
- Lists channels in a team.
- list_channel_messagesName suggests: reads
- Lists recent messages in a channel.
What it does
- Chat access
- List chats and read recent messages.
- Send and reply
- Post messages, threaded replies and start new chats.
- Compose form
- Opens an editable form before sending.
- Teams and channels
- List teams, channels and channel messages.
- Message search
- Keyword search across chats and channels.
- Shared sign-in
- Reuses credentials from the Microsoft mail server.
Good for
- Summarise a project chat
- Find a colleague by name or email
- Reply in a thread
- Search messages for a keyword
- Check someone's presence
Microsoft 365 Teams FAQ
Does Microsoft 365 Teams handle sign-in?
No. A host application performs OAuth and writes token files that the server reads.
What runtime does Microsoft 365 Teams need?
Node.js 20 or newer.
Which variables are required?
MS_CLIENT_ID and MS_CONFIG_DIR.
How many tools?
17.
How do I add Microsoft 365 Teams to Claude Code?
Run this command in your terminal: claude mcp add mcp-server-microsoft-teams --env MS_CLIENT_ID='<MS_CLIENT_ID>' --env MS_CONFIG_DIR='<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teams
What are the best alternatives to Microsoft 365 Teams?
The closest alternatives to Microsoft 365 Teams are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

