Email open tracking MCP server for AI agents

Updated 24 November 2026

Short answer: add the hosted MCP server https://p.didtheyopen.com/mcp (Streamable HTTP) to your MCP client. Nothing to install. With no key, the agent can call didtheyopen_signup and create its own account. Then send its agent key as Authorization: Bearer <agent key>, and the agent gets a pixel for each email you want tracked and hears when it is opened. 25 tracked emails are free, then Personal is $9/month or Developer is $29/month. The MCP server uses the same account and agent key as the REST API.

Open tracking for the email your agent already sends from your Gmail or Outlook. The agent keeps sending through its normal path; the server only gives it a 1x1 pixel (and tracked links) for each email and tells it when one is opened.

This page is the MCP setup and tool reference. If you use Claude, ChatGPT or Grok as a chat assistant and want the one-prompt setup, see Open tracking for Claude, ChatGPT and Grok agents. For the REST endpoints, see the API docs or the API guide.

The server

Set it up in 4 steps

  1. Add the server without a key. Use the config for your client below, leaving out the Authorization header.
  2. Let the agent sign itself up. Ask it to call didtheyopen_signup. No email is needed. It returns an agent key for the server and a dashboard login for you, each shown once. The agent stores the key in its secret store as DIDTHEYOPEN_API_KEY and gives you the dashboard login in a private channel. Save it in your password manager. Never sign up twice for the same owner. If you already have an agent key, skip this step.
  3. Add the key. Put Authorization: Bearer <agent key> in the server's headers (examples below) and reconnect the server.
  4. Check the send path once. Have the agent send one tracked email to your own address, then open it in Gmail or Outlook with images allowed. An "Opened" row should appear in your dashboard. Don't test with Apple Mail, which hides opens. If nothing appears, the sending path removed the image and tracking cannot work through it.

After that, the agent should run didtheyopen_new_opens as one permanent recurring job every 10 to 15 minutes and tell you when something is worth knowing.

Claude Code

Add it from the command line (without a key for step 1):

claude mcp add --transport http didtheyopen https://p.didtheyopen.com/mcp

With the key (step 3), for every project:

claude mcp add --transport http --scope user didtheyopen https://p.didtheyopen.com/mcp \
  --header "Authorization: Bearer YOUR_AGENT_KEY"

Or in a project's .mcp.json. Claude Code needs "type": "http" on a remote server entry, and it expands environment variables, so the key can stay out of the file:

{
  "mcpServers": {
    "didtheyopen": {
      "type": "http",
      "url": "https://p.didtheyopen.com/mcp",
      "headers": {
        "Authorization": "Bearer ${DIDTHEYOPEN_API_KEY}"
      }
    }
  }
}

Check it with claude mcp list, or /mcp inside Claude Code.

Claude Desktop

To send the key header from Claude Desktop, use a local bridge. One common way is the open-source mcp-remote bridge, run by npx, because Claude Desktop's config file starts local servers. It needs Node.js. Add this to claude_desktop_config.json and restart Claude Desktop:

{
  "mcpServers": {
    "didtheyopen": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://p.didtheyopen.com/mcp",
        "--header",
        "Authorization:${DTO_AUTH}"
      ],
      "env": {
        "DTO_AUTH": "Bearer YOUR_AGENT_KEY"
      }
    }
  }
}

Keep Authorization:${DTO_AUTH} without spaces. The bridge's README notes that some clients mangle spaces inside args, so the space goes in the env value. To set it up with one prompt instead, see the Claude, ChatGPT and Grok guide.

Cursor

The API docs page has an "Add to Cursor" button that installs the server URL. Then add the header. Or write it yourself in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Cursor reads environment variables as ${env:NAME}:

{
  "mcpServers": {
    "didtheyopen": {
      "url": "https://p.didtheyopen.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:DIDTHEYOPEN_API_KEY}"
      }
    }
  }
}

Any other MCP client

Any client that supports remote Streamable HTTP servers with custom headers can use the URL and the Authorization header above. To see the tools without a key:

curl -X POST https://p.didtheyopen.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

A tool call with the key is a standard MCP tools/call:

curl -X POST https://p.didtheyopen.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $DIDTHEYOPEN_API_KEY" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"didtheyopen_account","arguments":{}}}'

Errors such as 401 or 429 come back as a JSON-RPC error with error.code -32000 and the API error code in error.data.code, and keep their HTTP status.

The tools

The server exposes five tools. Only didtheyopen_signup works without a key.

Tool What it does Needs the key
didtheyopen_signup Creates an account, no email needed. Returns an agent key and a dashboard login, shown once. Not a repeatable call. No
didtheyopen_track_email A tracking pixel for one email the owner asked to track: an <img> tag for the end of the HTML body, plus a tracked address for each link you pass. Input: client_ref (required), label, sender_label, links. Yes
didtheyopen_check_email Opens so far for one tracked email: count, last time, and each open with its device family. Input: client_ref. Changes nothing. Yes
didtheyopen_new_opens What changed since a cursor, one summary per email, each open exactly once, and which ones are worth telling the owner now. Input: since. Changes nothing. Yes
didtheyopen_account Plan, trial emails left, whether new emails can be tracked, today's usage, and upgrade links. Changes nothing. Yes

The tools carry the rules of agent.md: track only the emails the owner marked, never sensitive correspondence, skip plain-text emails, one pixel per email.

What the agent hears back

Each load has a load_label. Only opened counts as an open.

Label Meaning What the agent says
opened A mail app opened the email (a Gmail open shows as gmail_proxy). A person's click on a tracked link also counts. "Opened", with the time and the device family
mpp_unknown Apple Mail loaded the image by itself Nothing. Not an open, and not "unopened" either
prefetch_likely Security or other software Nothing. Not an open
unknown A load with no sign of a person Nothing. Not an open

An open means the tracking image was loaded. It never proves a person read the email, so the agent says "opened". No load doesn't mean the email went unopened. didtheyopen_new_opens marks what is worth saying (a first open, a click, a new device, a return after 30 minutes or more), so the agent can tell you unprompted: "Dana opened the proposal 3 times. Latest on an iPhone. No reply yet."

Price and privacy

Questions

Is there an MCP server for email open tracking?

Yes. didtheyopen runs a hosted one at https://p.didtheyopen.com/mcp (Streamable HTTP). Add it to any MCP client that supports remote servers, and the agent can track the emails it sends from your Gmail, Outlook or any path that sends HTML.

Do I need to install anything?

No server install. It is hosted. Claude Code and Cursor connect to the URL directly. Claude Desktop's config file needs a local bridge such as mcp-remote to send the key header.

Can my agent sign itself up through MCP?

Yes. Without a key, didtheyopen_signup works. It needs no email and returns an agent key and a dashboard login, each shown once. The agent keeps the key and gives you the dashboard login privately.

Which tools does the MCP server expose?

Five: didtheyopen_signup, didtheyopen_track_email, didtheyopen_check_email, didtheyopen_new_opens and didtheyopen_account.

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 never counted as opens.

Does the MCP server need a separate account?

No. It uses the same account and agent key as the REST API. An account made with didtheyopen_signup starts on the 25-email free trial, like any new account.

Related pages