Microsoft 365 Teams
v0.3.5Microsoft 365 Teams via Graph: list chats, read/send messages, list teams/channels, presence.
Values you need
| Variable | What it is | |
|---|---|---|
MS_CLIENT_ID | required | Microsoft Entra (Azure AD) application client ID |
MS_CONFIG_DIR | required | Path to the per-user Microsoft config directory (credentials/, accounts.json) |
MS_ACCOUNT_EMAIL | optional | Account email when running in multi-account per-instance mode (falls back to the first account in accounts.json) |
MS_MCP_PACKAGE_ID | optional | Logical package ID surfaced in error responses Default: Microsoft365Teams |
MICROSOFT_REQUEST_TIMEOUT_MS | optional | Override the upstream Microsoft Graph request timeout in milliseconds (max 300000 = 5 min) Default: 60000 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-server-microsoft-teams -e 'MS_CLIENT_ID=<MS_CLIENT_ID>' -e 'MS_CONFIG_DIR=<MS_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-microsoft-teams@0.3.5Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-server-microsoft-teams": {
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams@0.3.5"
],
"command": "npx",
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-server-microsoft-teams": {
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams@0.3.5"
],
"command": "npx",
"env": {
"MS_CLIENT_ID": "<MS_CLIENT_ID>",
"MS_CONFIG_DIR": "<MS_CONFIG_DIR>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "MS_CLIENT_ID",
"id": "ms-client-id",
"password": true,
"type": "promptString"
},
{
"description": "MS_CONFIG_DIR",
"id": "ms-config-dir",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-server-microsoft-teams": {
"args": [
"-y",
"@mindstone/mcp-server-microsoft-teams@0.3.5"
],
"command": "npx",
"env": {
"MS_CLIENT_ID": "${input:ms-client-id}",
"MS_CONFIG_DIR": "${input:ms-config-dir}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-server-microsoft-teams]
command = "npx"
args = ["-y", "@mindstone/mcp-server-microsoft-teams@0.3.5"]
env = { "MS_CLIENT_ID" = "<MS_CLIENT_ID>", "MS_CONFIG_DIR" = "<MS_CONFIG_DIR>" }For AI agents
- Ask the user for: MS_CLIENT_ID, MS_CONFIG_DIR. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_chats, get_chat, list_chat_messages, compose_chat_message, send_chat_message, reply_to_message, search_messages, find_user, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json