Microsoft 365 Teams

v0.3.5
io.github.mindstone/mcp-server-microsoft-teams Checked 19 hours ago Published 9 days ago

Microsoft 365 Teams via Graph: list chats, read/send messages, list teams/channels, presence.

Values you need

VariableWhat it is
MS_CLIENT_IDrequired Microsoft Entra (Azure AD) application client ID
MS_CONFIG_DIRrequired Path to the per-user Microsoft config directory (credentials/, accounts.json)
MS_ACCOUNT_EMAILoptional Account email when running in multi-account per-instance mode (falls back to the first account in accounts.json)
MS_MCP_PACKAGE_IDoptional Logical package ID surfaced in error responses Default: Microsoft365Teams
MICROSOFT_REQUEST_TIMEOUT_MSoptional 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.5
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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