{"slug": "cline-email-mcp-server-add-a-remote-inbox", "title": "Cline email MCP server: add a remote inbox", "summary": "Cline CLI 3.0.76 can connect to a remote Trotta Mail MCP server via `cline mcp add trotta https://api.trotta.email/mcp --transport http`, exposing 15 mail tools to the coding agent, according to a Trotta walkthrough. The setup requires an API key from a single account-free signup request, and the walkthrough warns that Cline's CLI auto-approves tool calls by default, so users should pass `--auto-approve false` or issue a scoped key with `send_mode: off` that reduces Cline to 12 tools and expires after 30 days. Inbound mail is delivered in a filtered view with hidden text removed and risky links defanged, but the guide cautions that no filter catches everything and that requests found in mail should be treated as coming from a stranger.", "body_md": "# Give Cline an email inbox with a remote MCP server\n\nIn the CLI, run `cline mcp add trotta https://api.trotta.email/mcp` with `--transport http`, an Authorization header and `--yes`. In the IDE extension, add the same URL with type streamableHttp. Cline then has 15 mail tools. The CLI auto-approves tool calls by default, so pass `--auto-approve false` when mail is involved.\n\nUpdated\n\n## Get an inbox and a key\n\nSkip this if you have a key. Otherwise one request makes an inbox with no account. Export the `api_key` it returns as `TROTTA_MAIL_API_KEY`.\n\n```\ncurl -X POST https://api.trotta.email/v1/agents/signup \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"display_name\": \"Riley\"}'\n```\n\n## Add the server in the Cline CLI\n\n```\ncline mcp add trotta https://api.trotta.email/mcp \\\n  --transport http \\\n  --header \"Authorization: Bearer $TROTTA_MAIL_API_KEY\" \\\n  --yes\n\ncline config mcp\n# trotta [streamableHttp]\n```\n\nCline writes the entry to `~/.cline/data/settings/cline_mcp_settings.json` with the key itself in it, because your shell fills it in. Tested on Cline CLI 3.0.76: the saved entry loads all 15 tools.\n\n## Add it in the IDE extension\n\n1. In the Cline panel, click the **MCP Servers** icon.\n2. Open the **Configure** tab and click**Configure MCP Servers** .\n3. Add the entry under `mcpServers` and save.\n\n```\n{\n  \"mcpServers\": {\n    \"trotta\": {\n      \"type\": \"streamableHttp\",\n      \"url\": \"https://api.trotta.email/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer tm_live_...\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n## Two traps in that file\n\n| If you | What happens | Do this | \n|---|---|---|\n| Leave out `type` | Cline treats it as legacy SSE and the connection fails with a 405 | Set `\"type\": \"streamableHttp\"` | \n| Write `${env:TROTTA_MAIL_API_KEY}` or`${TROTTA_MAIL_API_KEY}` in the header | It is not filled in, and Cline reports that the header was rejected | Put the key itself in the file, and keep the file out of git | \n\n## Will Cline send mail without asking?\n\nIt can. A prompt given to the Cline CLI runs with auto-approve on, and that covers `send_message`. Turn it off for work that touches mail:\n\n```\ncline --auto-approve false \"Check my inbox and draft replies to anything urgent.\"\n```\n\nIn the IDE, leave **Use MCP servers** off under Auto Approve and keep `autoApprove` empty or limited to reading. YOLO mode approves everything, MCP tools included.\n\nFor a limit that does not depend on Cline's settings, give its entry a key that cannot send. The signup key can make one:\n\n```\ncurl -X POST https://api.trotta.email/v1/keys \\\n  -H \"Authorization: Bearer $TROTTA_MAIL_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\": \"cline drafts\", \"scopes\": [\"mail:read\", \"mail:send\"], \"send_mode\": \"off\"}'\n```\n\nPut the new `key` in Cline's config. Cline then sees 12 tools: the three that send are gone and `create_draft` stays. The key lasts 30 days. Keep the signup key out of the shell Cline runs in, since it can still send.\n\n## What Cline reads\n\nMail reaches Cline in the safe view: hidden text removed, instructions aimed at a model marked, risky links defanged. A held message shows a reason and no content. No filter catches everything, and Cline runs commands on your machine, so treat a request found in mail as a request from a stranger. More in [data exfiltration through agents](https://trotta.email/threats/data-exfiltration-through-agents).\n\n## Questions\n\n### Where is Cline's MCP settings file?\n\nFor the CLI it is `~/.cline/data/settings/cline_mcp_settings.json`. In the IDE, open it from MCP Servers, then Configure.\n\n### Can Cline wait for a verification email?\n\nYes. `wait_for_message` with `has_code` set returns when a message with a code is delivered, with a timeout of up to 60 seconds per call.\n\n### Do you need a Trotta Mail account first?\n\nNo. The signup call returns a key. A human claims the agent later so it can write to new addresses.\n\n### Is there an IMAP option for Cline?\n\nNo. Trotta Mail connects over MCP or its REST API, not IMAP or SMTP.", "url": "https://wpnews.pro/news/cline-email-mcp-server-add-a-remote-inbox", "canonical_source": "https://trotta.email/integrations/cline", "published_at": "2026-12-03 00:00:00+00:00", "updated_at": "2026-12-03 18:45:13.792579+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "ai-safety"], "entities": ["Cline", "Trotta Mail", "Cline CLI 3.0.76", "Model Context Protocol"], "also_reported_by": [], "takeaway": "Registering the Trotta Mail MCP server over streamableHttp in Cline CLI 3.0.76 exposes 15 mail tools, and issuing a key with scopes mail:read and mail:send plus send_mode: off drops the three sending tools, leaving 12, for 30 days.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/cline-email-mcp-server-add-a-remote-inbox", "markdown": "https://wpnews.pro/news/cline-email-mcp-server-add-a-remote-inbox.md", "text": "https://wpnews.pro/news/cline-email-mcp-server-add-a-remote-inbox.txt", "jsonld": "https://wpnews.pro/news/cline-email-mcp-server-add-a-remote-inbox.jsonld"}}