Skip to content
VS Code

imap mcp for VS Code

io.github.langmail/imap-mcp

IMAP email as MCP tools: create draft messages in the Drafts folder of any IMAP mailbox.

client:VS Code transport:stdio runtime:npm

Install imap mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "imap-host",
      "description": "IMAP_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imap-port",
      "description": "IMAP_PORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imap-username",
      "description": "IMAP_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imap-password",
      "description": "IMAP_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "imap-use-ssl",
      "description": "IMAP_USE_SSL",
      "password": true
    }
  ],
  "servers": {
    "imap-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "${input:imap-host}",
        "IMAP_PORT": "${input:imap-port}",
        "IMAP_USERNAME": "${input:imap-username}",
        "IMAP_PASSWORD": "${input:imap-password}",
        "IMAP_USE_SSL": "${input:imap-use-ssl}"
      }
    }
  }
}

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

imap mcp in other clients