cd /news/ai-agents/cline-email-mcp-server-add-a-remote-… · home › topics › ai-agents › article
[ARTICLE · art-181272] src=trotta.email ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Cline email MCP server: add a remote inbox

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.

key 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.

by read3 min views2 publishedDec 3, 2026
Cline email MCP server: add a remote inbox
Image: Trotta (auto-discovered)

In 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.

Updated

Get an inbox and a key #

Skip 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.

curl -X POST https://api.trotta.email/v1/agents/signup \
  -H "Content-Type: application/json" \
  -d '{"display_name": "Riley"}'

Add the server in the Cline CLI #

cline mcp add trotta https://api.trotta.email/mcp \
  --transport http \
  --header "Authorization: Bearer $TROTTA_MAIL_API_KEY" \
  --yes

cline config mcp

Cline 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.

Add it in the IDE extension #

  1. In the Cline panel, click the MCP Servers icon.
  2. Open the Configure tab and clickConfigure MCP Servers .
  3. Add the entry under mcpServers and save.
{
  "mcpServers": {
    "trotta": {
      "type": "streamableHttp",
      "url": "https://api.trotta.email/mcp",
      "headers": {
        "Authorization": "Bearer tm_live_..."
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Two traps in that file #

If you What happens Do this
Leave out type Cline treats it as legacy SSE and the connection fails with a 405 Set "type": "streamableHttp"
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

Will Cline send mail without asking? #

It 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:

cline --auto-approve false "Check my inbox and draft replies to anything urgent."

In 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.

For a limit that does not depend on Cline's settings, give its entry a key that cannot send. The signup key can make one:

curl -X POST https://api.trotta.email/v1/keys \
  -H "Authorization: Bearer $TROTTA_MAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "cline drafts", "scopes": ["mail:read", "mail:send"], "send_mode": "off"}'

Put 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.

What Cline reads #

Mail 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.

Questions #

Where is Cline's MCP settings file?

For the CLI it is ~/.cline/data/settings/cline_mcp_settings.json. In the IDE, open it from MCP Servers, then Configure.

Can Cline wait for a verification email?

Yes. 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.

Do you need a Trotta Mail account first?

No. The signup call returns a key. A human claims the agent later so it can write to new addresses.

Is there an IMAP option for Cline?

No. Trotta Mail connects over MCP or its REST API, not IMAP or SMTP.

── more in #ai-agents 4 stories · sorted by recency
── more on @cline 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cline-email-mcp-serv…] indexed:0 read:3min 2026-12-03 · —