On this page
Add a remote MCP server to Cursor with mcp.json
mcp.json needs only its url. Save, restart Cursor, and it appears under Customize › MCPs with a switch of its own.~/.cursor/mcp.jsonin your home folder holds servers you want in every project..cursor/mcp.jsonin 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, plusheadersif it takes a fixed key. Save the file and restart Cursor.
{
"mcpServers": {
"mailr": { "url": "https://mailr.dev/mcp" }
}
}One-click install: a Cursor MCP deeplink
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
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.