How to give Cursor its own email inbox

Checked · Markdown

Short answer

Paste the setup message below into the Cursor agent and it signs itself up to Agentline NZ and asks you to open the confirmation email we send you. To do it yourself instead, add the Agentline NZ entry shown below to ~/.cursor/mcp.json and sign in with the email link when Cursor asks. The agent can then send and read email from its own @agentline.nz inbox.

Set it up with one message

Copy this message and paste it into a chat with the Cursor agent:

Read https://agentline.nz/agent-instructions.txt and set yourself up with Agentline NZ, so you have your own @agentline.nz email inbox. Ask me for my email address if you need it.

The agent reads our setup instructions, creates the account with your email address. We email you a Confirm link. Until you open it, the agent can only check its own account. It can't message anyone, except you (up to 5 a day) if you've already signed in. Until you're on a paid plan, your agent can only email your own verified email address. If you already have an account, it asks you for an API key instead.

Texting is coming soon. Join the texting waitlist and we'll email you when it's ready.

Before you start

  • For the steps below, an Agentline NZ account. No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days.
  • Your @agentline.nz email inbox works straight away. Texting and phone numbers are coming soon.
  • Cursor installed. On Enterprise, an admin's MCP allowlist may need to include agentline.nz.

Or add it yourself

  1. Open your MCP config file. Use ~/.cursor/mcp.json to make Agentline NZ available in every project, or .cursor/mcp.json in a project folder for that project only. Create the file if it doesn't exist.
  2. Add Agentline NZ. Add an agentline entry with the URL. Remote servers in Cursor only need url; there's no type field.
    {
      "mcpServers": {
        "agentline": {
          "url": "https://agentline.nz/mcp"
        }
      }
    }
  3. Sign in to Agentline NZ. Cursor supports OAuth for servers that require it. When Cursor prompts you to sign in to agentline, follow it, sign in with your Agentline NZ email link and approve access.
  4. Turn it on and test. Check the server is enabled in the MCP section of Cursor's Customize page, then ask the agent: What's my Agentline NZ email address?

Using an API key instead

For Cloud Agents or shared machines you can send an API key header instead of OAuth. Create a key under Dashboard → API keys, set it as AGENTLINE_KEY in your environment, and reference it. Cursor supports ${env:NAME} in headers:

{
  "mcpServers": {
    "agentline": {
      "url": "https://agentline.nz/mcp",
      "headers": { "Authorization": "Bearer ${env:AGENTLINE_KEY}" }
    }
  }
}

Try it

Once it's connected, ask your assistant:

  • "When the build finishes, email me the result."
  • "Send the new order-confirmation email template from staging to my Agentline NZ inbox and check how it renders."

Good to know

  • If something goes wrong, Cursor writes MCP logs to the Output panel under MCP Logs.
  • Don't commit a project .cursor/mcp.json that contains an API key. Use ${env:AGENTLINE_KEY} instead.

FAQ

Does Agentline NZ work in Cursor Cloud Agents?

Cursor documents an OAuth callback for web and Cloud Agents, so it should work with OAuth. An API key in an environment variable is the simplest option for unattended runs.

Is there an Add to Cursor button?

Cursor supports install links in the form cursor://anysphere.cursor-deeplink/mcp/install?name=...&config=... with a base64-encoded config. Adding the JSON above does the same thing.

What does Agentline NZ cost?

Starter is NZ$29/month and Pro is NZ$79/month, billed in NZ dollars. No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days. You can cancel anytime, and your plan stops at the end of the billing period you've paid for. Refunds follow section 5 of our Terms: fees already paid aren't refunded, except where the Terms or the law say so. Agentline NZ is not GST-registered, so no GST is charged.

When does the inbox work, and can my assistant send texts yet?

Your @agentline.nz email inbox works straight away. Texting and phone numbers are coming soon. To hear when texting is ready, join the waitlist.

Can my assistant send marketing or bulk email?

No. Transactional and assistant messages only: replies, bookings, confirmations, reminders people asked for, and codes. Marketing, promotions, cold messages and bulk messages aren't allowed. See What we don't allow.

Start free · No credit card needed to sign up. Start free with an email inbox, or try Starter or Pro free for 7 days.