Skip to content
VS Code

microsoft teams mcp for VS Code

io.github.chrischall/microsoft-teams-mcp

Microsoft Teams for Claude — read any chat or channel and its unread messages; send and react

client:VS Code transport:stdio runtime:npm

Install microsoft teams mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "teams-ws-port",
      "description": "TEAMS_WS_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fetchproxy-ws-host",
      "description": "FETCHPROXY_WS_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "fetchproxy-identity-dir",
      "description": "FETCHPROXY_IDENTITY_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-access-token",
      "description": "TEAMS_ACCESS_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-disable-fetchproxy",
      "description": "TEAMS_DISABLE_FETCHPROXY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-chatsvc-region",
      "description": "TEAMS_CHATSVC_REGION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-chatsvc-base",
      "description": "TEAMS_CHATSVC_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-capture-timeout",
      "description": "TEAMS_CAPTURE_TIMEOUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-token-cache",
      "description": "TEAMS_TOKEN_CACHE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-token-file",
      "description": "TEAMS_TOKEN_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-substrate-token-file",
      "description": "TEAMS_SUBSTRATE_TOKEN_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-recap-token-file",
      "description": "TEAMS_RECAP_TOKEN_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-mcps-region",
      "description": "TEAMS_MCPS_REGION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-sharepoint-token-file",
      "description": "TEAMS_SHAREPOINT_TOKEN_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-time-zone",
      "description": "TEAMS_TIME_ZONE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "teams-output-dir",
      "description": "TEAMS_OUTPUT_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-confirm-mode",
      "description": "MCP_CONFIRM_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-confirm-elicitation",
      "description": "MCP_CONFIRM_ELICITATION",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-confirm-ttl-seconds",
      "description": "MCP_CONFIRM_TTL_SECONDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-confirm-secret",
      "description": "MCP_CONFIRM_SECRET",
      "password": true
    }
  ],
  "servers": {
    "microsoft-teams-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/microsoft-teams-mcp"
      ],
      "env": {
        "TEAMS_WS_PORT": "${input:teams-ws-port}",
        "FETCHPROXY_WS_HOST": "${input:fetchproxy-ws-host}",
        "FETCHPROXY_IDENTITY_DIR": "${input:fetchproxy-identity-dir}",
        "TEAMS_ACCESS_TOKEN": "${input:teams-access-token}",
        "TEAMS_DISABLE_FETCHPROXY": "${input:teams-disable-fetchproxy}",
        "TEAMS_CHATSVC_REGION": "${input:teams-chatsvc-region}",
        "TEAMS_CHATSVC_BASE": "${input:teams-chatsvc-base}",
        "TEAMS_CAPTURE_TIMEOUT": "${input:teams-capture-timeout}",
        "TEAMS_TOKEN_CACHE": "${input:teams-token-cache}",
        "TEAMS_TOKEN_FILE": "${input:teams-token-file}",
        "TEAMS_SUBSTRATE_TOKEN_FILE": "${input:teams-substrate-token-file}",
        "TEAMS_RECAP_TOKEN_FILE": "${input:teams-recap-token-file}",
        "TEAMS_MCPS_REGION": "${input:teams-mcps-region}",
        "TEAMS_SHAREPOINT_TOKEN_FILE": "${input:teams-sharepoint-token-file}",
        "TEAMS_TIME_ZONE": "${input:teams-time-zone}",
        "TEAMS_OUTPUT_DIR": "${input:teams-output-dir}",
        "MCP_CONFIRM_MODE": "${input:mcp-confirm-mode}",
        "MCP_CONFIRM_ELICITATION": "${input:mcp-confirm-elicitation}",
        "MCP_CONFIRM_TTL_SECONDS": "${input:mcp-confirm-ttl-seconds}",
        "MCP_CONFIRM_SECRET": "${input:mcp-confirm-secret}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

microsoft teams mcp in other clients