Skip to content
IMAP mailbox
Install guide · Cursor

Install IMAP mailbox for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "ni-c-imap-mcp": {      "command": "npx",      "args": [        "-y",        "@ni-c/imap-mcp@0.9.0"      ],      "env": {        "IMAP_HOST": "",        "IMAP_USER": "",        "IMAP_PASSWORD": "YOUR_IMAP_PASSWORD",        "IMAP_PORT": "",        "IMAP_TLS": "",        "IMAP_MAILBOX": "",        "IMAP_SEEN_KEYWORD": "",        "IMAP_READ_ONLY": "",        "IMAP_ALLOW_TOOLS": "",        "IMAP_DENY_TOOLS": "",        "IMAP_DOWNLOAD_DIR": "",        "IMAP_INSECURE_TLS": "",        "IMAP_DRAFTS_MAILBOX": "",        "IMAP_MAX_MESSAGES": "",        "IMAP_MAX_ATTACHMENT_BYTES": "",        "IMAP_MAX_DOWNLOAD_BYTES": "",        "IMAP_MAX_EXTRACT_BYTES": "",        "IMAP_COMMAND_TIMEOUT_SECONDS": "",        "IMAP_ATTACHMENT_TYPES": "",        "IMAP_TRUSTED_AUTHSERV_ID": ""      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json