Skip to content
VS Code

mailsnail for VS Code

io.github.iancollins27/mailsnail

Send USPS letters, postcards & certified mail from any agent. No signup; pay-per-piece via Stripe.

client:VS Code transport:stdio runtime:npm

Install mailsnail in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mail-provider",
      "description": "MAIL_PROVIDER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mail-api-base-url",
      "description": "MAIL_API_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "click2mail-username",
      "description": "CLICK2MAIL_USERNAME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "click2mail-password",
      "description": "CLICK2MAIL_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "lob-api-key",
      "description": "LOB_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mail-mcp-allow-live",
      "description": "MAIL_MCP_ALLOW_LIVE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mail-mcp-spend-cap-usd",
      "description": "MAIL_MCP_SPEND_CAP_USD",
      "password": true
    }
  ],
  "servers": {
    "mailsnail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mailsnail"
      ],
      "env": {
        "MAIL_PROVIDER": "${input:mail-provider}",
        "MAIL_API_BASE_URL": "${input:mail-api-base-url}",
        "CLICK2MAIL_USERNAME": "${input:click2mail-username}",
        "CLICK2MAIL_PASSWORD": "${input:click2mail-password}",
        "LOB_API_KEY": "${input:lob-api-key}",
        "MAIL_MCP_ALLOW_LIVE": "${input:mail-mcp-allow-live}",
        "MAIL_MCP_SPEND_CAP_USD": "${input:mail-mcp-spend-cap-usd}"
      }
    }
  }
}

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

mailsnail in other clients