All documentation
On this page
Set-up documentation
Connect your mailbox to Cursor
Cursor takes a remote MCP server in mcpServers with a url and nothing else. Its own page documents a type key for local servers only, so do not add one.
mcpServers
url
Cursor in 3 steps
-
Open the MCP configuration
Open Customize in the Cursor sidebar and click MCPs, or edit ~/.cursor/mcp.json directly for every project.
-
Add the server under mcpServers
A name, and a url of https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY. No type key: Cursor documents that one for local servers only.
-
Sign in when Cursor asks
Cursor opens the control panel, you sign in, and you choose which mailbox this connector opens.
The configuration
2 lines that matter, and no credential in either of them.
{
"mcpServers": {
"work-mail": {
"url": "https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY"
}
}
}
Rename work-mail to whatever you will recognise. It is the
identifier the tools are namespaced under, so letters, numbers and hyphens
only.
Do not add a type key
If you are copying a snippet from somewhere else, this is the line to
delete. You will see "type": "http" in a lot of MCP
documentation, and it is correct for VS Code and for Claude Code. Cursor
does not document it for a remote server at all.
Its own page names 3 transports, then shows a remote server as a
url and headers, with an auth
object only for a server that needs a fixed OAuth client.
type appears in the field table for STDIO servers,
describing a local process. Adding one to a remote entry is copying a
line from a different program's vocabulary.
Nor a headers block
headers is for a server that authenticates with a static
token. This one signs you in instead, so leaving it out is what you want.
A token pasted here is a credential in a file in your home directory that
did not need to exist.
Which file, and for which projects
| File | Applies to |
|---|---|
~/.cursor/mcp.json |
Every project you open. This is the one most people want for a mailbox. |
.cursor/mcp.json |
One project, from its root. Useful for a shared team mailbox on a repository. |
Cursor reads both files and merges them, and where the same server name is in both, the project's entry wins. Save the file and restart Cursor after editing it.
There is also Customize in the sidebar, then MCPs, which lists the same servers without you finding the file. In an organisation, MCP configuration can be governed centrally under Team Settings, so if the server is refused rather than failing, that is worth checking before anything on this page.
Cursor's documentation gives no separate Windows path for the global file.
The %USERPROFILE% form you will find elsewhere is somebody's
inference rather than the vendor's, which is why it is in the unconfirmed
list at the foot of this page rather than in the table above.
Signing in
Cursor's documentation now says how it signs in: "With dynamic client registration, Cursor registers as a public client with no client secret." That is the registration this server offers, so Cursor should prompt you to authenticate the first time the server is reached. It opens the control panel, you sign in, and you choose which mailbox this connector opens.
If it does not prompt, and instead reports that the server is unauthorised, your build of Cursor is not registering on its own and needs a token. Create an access token in the control panel and add a headers block:
{
"mcpServers": {
"work-mail": {
"url": "https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY",
"headers": {
"Authorization": "Bearer YOUR-ACCESS-TOKEN"
}
}
}
}
Try it without first. A credential you did not need is one more thing to look after, and if your version turns out to need one, we would like to know so this page can say so plainly.
Check that it worked
Try this first
Find the email where someone reported this bug, and show me what they actually said before I read the stack trace.
The reason a mailbox in an editor is worth having at all: the report and the code in one place. Cursor asks for your approval before it uses an MCP tool unless you change that. Nothing is marked read by asking, so the message stays unread in your own client.
The free tier is 5 MCP calls a day on any mailbox, with no card, which is enough to paste the block above and see whether this is useful to you.
Where to go next
VS Code uses the same
top-level key now but wants a type, and
Zed a different key, so do not
reuse this block in either as it is. The
key table has all of them
side by side.
- The sign-in against this server from Cursor itself. Cursor documents dynamic client registration and this server supports it; nobody here has yet run it from Cursor.
- The Windows path for the global file. Cursor gives no separate Windows path, so the %USERPROFILE% form you will find elsewhere is somebody's inference and not the vendor's.
Read 25 November 2026 Every value on this page came off Cursor documentation: Model Context Protocol on that day. The Customize, then MCPs route is from Cursor's help page on MCP, read the same day. If it has changed since, tell us and we will read it again.