Install guide · VS Code
Install IMAP mailbox for VS Code
Workspace file .vscode/mcp.json uses the servers key. User settings can hold the same shape.
Add to Cursor: IMAP mailboxInstall in VS Code: IMAP mailboxInstall in VS Code Insiders: IMAP mailbox
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open .vscode/mcp.json on macOS, .vscode/mcp.json on Windows, or .vscode/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "servers": { "ni-c-imap-mcp": { "type": "stdio", "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
| System | Path |
|---|---|
| macOS | .vscode/mcp.json |
| Windows | .vscode/mcp.json |
| Linux | .vscode/mcp.json |