Direct mail API for developers and growth teams. Read the docs →

Cursor MCP: add a remote server, sign in, and control approvals, with a direct mail API as the example

Cursor MCP servers give Cursor’s Agent tools beyond your code, such as a direct mail API that prices, proofs and sends postcards. A remote server is one entry in mcp.json with its URL, or a one-click install link; Cursor handles the OAuth sign-in, and its approval mode decides which tools run without asking. Since Cursor 3.6 the default mode can let a tool run unasked, so for servers that send or spend, the setting matters. Below: the file, the link, the sign-in, the approval modes, and Mailr’s server as the worked example.

On this page
  1. Add a remote MCP server to Cursor with mcp.json
  2. One-click install: a Cursor MCP deeplink
  3. Sign in to a remote MCP server in Cursor
  4. Manage Cursor MCP servers and tools
  5. Cursor MCP approvals: Auto-review, Allowlist or Run Everything
  6. Example: a direct mail API from Cursor’s Agent
  7. Cursor MCP questions

Add a remote MCP server to Cursor with mcp.json

~/.cursor/mcp.json{ "mcpServers": { "mailr": { "url": "https://mailr.dev/mcp" } }}Customize › MCPsmailr13 tools
One entry, then a toggle. A remote server in mcp.json needs only its url. Save, restart Cursor, and it appears under Customize › MCPs with a switch of its own.
  • ~/.cursor/mcp.json in your home folder holds servers you want in every project.
  • .cursor/mcp.json in a project holds that project’s servers. Cursor merges the two, and the project wins when names clash.
  • A remote server needs only its url, plus headers if it takes a fixed key. Save the file and restart Cursor.
{
  "mcpServers": {
    "mailr": { "url": "https://mailr.dev/mcp" }
  }
}

Cursor also installs servers from a link. The config parameter is the server’s own entry from mcp.json, without its name, encoded in base64:

cursor://anysphere.cursor-deeplink/mcp/install?name=mailr&config=eyJ1cmwiOiJodHRwczovL21haWxyLmRldi9tY3AifQ==

# config is the server's own entry, base64-encoded:
# {"url":"https://mailr.dev/mcp"}

Put it behind an “Add to Cursor” button in your docs and people skip the file entirely. Cursor’s own docs now also point to plugins as a way to share servers with a team.

Sign in to a remote MCP server in Cursor

For servers that need it, Cursor signs in with OAuth: it reads the server’s protected-resource metadata to find the sign-in, registers itself with the server, and uses the authorization code flow with PKCE. You follow the prompts in your browser. For Mailr, that’s Sign in with Mailr: you pick the account and allow it, and the connection gets its own access, never your API keys. If you’re building a server, note that Cursor documents only Dynamic Client Registration, so keep it on even though the current MCP spec prefers metadata documents; more in building a remote MCP server.

Manage Cursor MCP servers and tools

  • A whole server: its toggle under Customize › MCPs. A disabled server doesn’t load or show up in chat.
  • One tool: click its name in the tools list at the top of the chat panel.
  • Re-adding: if a server misbehaves, remove it under Customize › MCPs and add it again.

Cursor MCP approvals: Auto-review, Allowlist or Run Everything

Auto-reviewDefault since Cursor 3.6Allowlisted tools run; a classifier decides the rest, and may run them without askingAllowlistBest for tools that spendAllowlisted tools run; everything else asks firstRun EverythingNo promptsEvery tool runs without asking
Pick the mode, then the list. Set the mode in Cursor Settings › Agents › Approvals & Execution. Cursor says Auto-review isn’t a security boundary, so for a server that can send or spend, Allowlist with only the read tools on the list keeps a person on every send.

Cursor’s MCP page still says Agent asks before using an MCP tool by default, but since Cursor 3.6, released May 29, 2026, the default mode is Auto-review: tools on your allowlist run at once, and a classifier decides the rest, which can mean running them without asking. Cursor says plainly that Auto-review isn’t a security boundary.

For a server that can send or spend, switch to Allowlist in Cursor Settings › Agents › Approvals & Execution and allow only the tools that read. You can keep the list in a file, ~/.cursor/permissions.json or .cursor/permissions.json, with server:tool entries and * wildcards:

{
  // Tools that run without asking. Everything else asks first in Allowlist mode.
  "mcpAllowlist": [
    "mailr:get_*",
    "mailr:list_*",
    "mailr:prepare_mail"
  ]
}

With that list, Agent reads Mailr’s prices, templates and mail status and prepares drafts on its own, and asks before send_prepared or a paid address check.

Example: a direct mail API from Cursor’s Agent

  • “What would 500 6x9 postcards cost?” Answered from your plan, without a prompt.
  • “Prepare the thank-you card for the customers in this CSV.” A draft with the total and a proof link; nothing sent.
  • “Send it as a test, then live.” Test mail is free and never prints. The live send asks first, and Mailr sends only the exact draft and total you approved, from your balance.

To have Agent build mail into your app instead, so your own code sends a postcard on an event, use the rule and skill on the Cursor integration page with a prompt from the Cursor mail templates. The same server works in Claude Code, Codex, ChatGPT, Claude, VS Code and Gemini.

Cursor MCP questions

Where is mcp.json in Cursor?

~/.cursor/mcp.json in your home folder for servers you want everywhere, and .cursor/mcp.json in a project for that project only. Cursor merges them, and the project's entry wins when both use the same name.

How do I add a remote MCP server to Cursor?

Add an entry with its url under mcpServers in mcp.json, save, and restart Cursor; or open the server's install link. Sign in when Cursor prompts you.

Does Cursor ask before running MCP tools?

It depends on the mode. Since Cursor 3.6 the default, Auto-review, runs allowlisted tools and lets a classifier decide the rest. Allowlist mode runs only the tools on your list and asks for everything else.

Can I turn off one tool from a server?

Yes. Click its name in the tools list at the top of the chat panel. To switch a whole server off, use its toggle under Customize > MCPs.

Is the Mailr MCP server the same as the Mailr rule and skill for Cursor?

No. The MCP server lets Agent price, proof and send mail during a chat. The rule and skill teach Agent to write code in your app that calls the API on its own.

START SENDING

Put your first postcard in the mail

Create a key, send a test to yourself, and check the proof before anything prints.

Start sending
  • Postcards, flats and folded mailers
  • A proof before anything prints
  • Free test mode: nothing prints, nothing charges
  • A status for every piece

Free price sheet

Get the price sheet by email

Every postcard, letter, mailer and print product on every plan, with postage included.

We’ll email you the price sheet. By continuing you agree to the Terms and Privacy Policy.

Download the template kit?

mailr-kit.zip · about 310 KB · 59 text files

Only HTML, JSON and Markdown files. No programs, scripts or macros, nothing that installs or runs.