Connect n8n to didtheyopen

Updated 24 November 2026

Open tracking for the email your agent already sends from your Gmail or Outlook.

This page shows how to connect the hosted MCP server com.didtheyopen/mcp so an agent built with n8n can track opens on the email it already sends from Gmail or Outlook. The server is https://p.didtheyopen.com/mcp. Nothing from didtheyopen is installed on the agent. The agent key goes in the Bearer credential, never in the URL.

Client reference: n8n MCP Client Tool reference.

The server

Tools

Copy-paste config

Add an MCP Client Tool under an AI Agent node. On node version 1.2 or later, Server Transport defaults to HTTP Streamable. Paste the agent key into the Bearer credential with no Bearer prefix.

Endpoint: https://p.didtheyopen.com/mcp
Server Transport: HTTP Streamable
Authentication: Bearer Auth
Bearer token: YOUR_AGENT_KEY
Tools to Include: All

Minimal example

The workflow still sends through the Gmail or Outlook node you already have. The MCP Client Tool only exposes the didtheyopen tools. Give the AI Agent this message:

Track the proposal I am sending to Dana. Use client_ref proposal-dana-1 and label Dana Levi. Call didtheyopen_track_email, put the img tag at the end of the HTML body, then send the email from my Gmail or Outlook.

A node that shows only an SSE Endpoint field is version 1. Add a current MCP Client Tool and set Server Transport to HTTP Streamable. GET /mcp returns 405, so Server Sent Events does not connect.

What the agent sees

Tool results are text. A successful didtheyopen_track_email call for client_ref proposal-dana-1, label Dana Levi, and one https link looks like this. The pixel address is new for each message. The sample below uses a stand-in for that address.

Tracking ready for client_ref "proposal-dana-1" (expires 2026-12-18T16:00:00Z).
Insert this tag at the end of the HTML body, right before </body>, then send the email normally. Do not change anything else; leave a plain-text part untouched. One pixel per email; for several recipients send one copy each with its own client_ref.
<img src="https://p.didtheyopen.com/p/….gif" alt="" width="1" height="1" border="0" style="display:block;width:1px;height:1px;border:0;overflow:hidden">
In the HTML part only, replace each link address (href) below with its tracked address. Leave the visible link text, the plain-text part and every other link as they are:
https://example.com/offer -> https://p.didtheyopen.com/c/m_…/0/…

After the mail app loads the image, didtheyopen_new_opens returns text like this. The cursor after since= is an r plus a row id. Pass that value back on the next call. Only the line whose reason is a first open, a click, a new device, or a return after a pause is worth telling the owner. The headline says who, how many times, and on what. The agent adds, from its own mailbox, the time in the owner's zone and whether a reply has arrived.

1 new open(s) among 1 new load(s).
Tell the owner now, unprompted, one short message per email: who opened it, when (in the owner's time) and on what device, as in the line below. Nothing technical. You may add whether a reply has arrived (check your own mailbox) and offer a next step:
- Dana Levi: opened 1 time. Latest on an iPhone or iPad. (first open; 1 new) [client_ref proposal-dana-1]
Next time pass since="r1".
Keep watching without being asked: one permanent recurring job (your scheduler or heartbeat) calls this every 10 to 15 minutes, even when no tracked email is waiting. Save the cursor in durable notes; if the job or the cursor is lost after a restart, recreate the job and start again from an ISO time just before your last check.
didtheyopen guide version 7. If you follow an older version, fetch https://didtheyopen.com/agent.md?v=7 and follow it.
An open means the tracking image was loaded. It is not proof that a person read the email; say "opened", never "read".

Questions

Which node do I add?

The MCP Client Tool, attached to an AI Agent node. Endpoint https://p.didtheyopen.com/mcp, Server Transport HTTP Streamable, Authentication Bearer Auth, Tools to Include All.

What do I paste in the Bearer credential?

The agent key alone. n8n adds the word Bearer. A value that already starts with Bearer is sent twice and the server rejects it.

Why does the SSE transport fail?

This server is Streamable HTTP. GET /mcp returns 405, so Server Sent Events does not connect. On MCP Client Tool 1.2 or later, set Server Transport to HTTP Streamable. A node that only shows SSE Endpoint is version 1: add a current MCP Client Tool node.

What if there is no agent key yet?

Connect without the credential and ask the agent to call didtheyopen_signup. That tool works with no key and returns the agent key once. Save it, add the credential, and reconnect. Do not call signup again once a key is set. A lost key cannot be recovered. Write to support@didtheyopen.com if you are locked out of the dashboard.

What counts as an open?

Only a load labeled opened, including a person's click on a tracked link. Apple Mail loading the image by itself (mpp_unknown), security software (prefetch_likely) and unidentified loads (unknown) are labeled and are not opens. Say "opened", never "read".

Does didtheyopen send the email?

No. The agent keeps sending from the Gmail or Outlook path it already uses. didtheyopen_track_email returns an img tag (and tracked link addresses when you pass links). The agent inserts that tag and sends the message itself.

Other frameworks

Questions: support@didtheyopen.com.