Skip to content
VS Code

Outlook Mail for VS Code

io.github.pepebits/outlook-mcp

Read, search, send and clean up Outlook.com / Hotmail mail through Microsoft Graph.

client:VS Code transport:stdio runtime:npm

Install Outlook Mail in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "outlook-client-id",
      "description": "OUTLOOK_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "outlook-tenant",
      "description": "OUTLOOK_TENANT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "outlook-read-only",
      "description": "OUTLOOK_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "outlook-token-store",
      "description": "OUTLOOK_TOKEN_STORE",
      "password": true
    }
  ],
  "servers": {
    "outlook-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pepebits/outlook-mcp"
      ],
      "env": {
        "OUTLOOK_CLIENT_ID": "${input:outlook-client-id}",
        "OUTLOOK_TENANT": "${input:outlook-tenant}",
        "OUTLOOK_READ_ONLY": "${input:outlook-read-only}",
        "OUTLOOK_TOKEN_STORE": "${input:outlook-token-store}"
      }
    }
  }
}

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

Outlook Mail in other clients