Skip to content
VS Code

Mails.ai — Agent Email for VS Code

io.github.rolloutsai/mails-agent-email

A real inbox for AI agents: send, receive and thread email, behind a prompt-injection firewall.

client:VS Code transport:stdio runtime:npm

Install Mails.ai — Agent Email in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mails-api-key",
      "description": "MAILS_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mails-base-url",
      "description": "MAILS_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "mails-agent-email": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mailsai/mcp-server"
      ],
      "env": {
        "MAILS_API_KEY": "${input:mails-api-key}",
        "MAILS_BASE_URL": "${input:mails-base-url}"
      }
    }
  }
}

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

Mails.ai — Agent Email in other clients