All documentation
On this page
Set-up documentation
Connect your mailbox to Claude Code
One command adds the mailbox to Claude Code, and the scope flag is the part everyone gets wrong: local is the default, so it vanishes in the next project.
mcpServers
url
Claude Code in 3 steps
-
Run claude mcp add
Run claude mcp add --transport http --scope user with a name and https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY. The scope flag is required to get it in every project.
-
Run /mcp inside Claude Code
Choose to authenticate. It opens the control panel, you sign in, and you choose which mailbox this connector opens.
-
Ask for something
Ask Claude Code to summarise your unread mail. If the messages are the ones you expect, it is connected.
Already added it on Claude.ai?
If you sign in to Claude Code with a claude.ai account, the connectors you added there come with you. Anthropic's words: "If you've logged into Claude Code with a claude.ai account, MCP servers you've added in claude.ai, known as connectors, are automatically available in Claude Code."
We checked on 5 October 2026: claude mcp list showed each of
our claude.ai Mailbox MCP connectors, named with "claude.ai" in front.
They don't load when Claude Code is signed in with an API key instead.
Run /mcp and look for yours before adding a second. The
command below is for everyone else, or for a connection with a level of
its own. Source: Claude Code's MCP documentation.
One command
Run this once, from anywhere. It does not matter which directory you are in, which is exactly what the scope flag is buying you.
claude mcp add --transport http --scope user \
work-mail https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY
Replace work-mail with a name you will recognise. Unlike the
chat clients, this one is read by a machine as well as by you: it becomes
the identifier the tools are namespaced under, so keep it to letters,
numbers and hyphens and it will need no quoting in any shell.
The scope flag, which is the whole trap
Claude Code has 3 scopes for an MCP server, and
local is the default. That is the one detail
worth reading this page for, because the failure it produces looks nothing
like a configuration mistake.
| Scope | Where it applies | Use it when |
|---|---|---|
local |
This project only, and only for you. The default. | Almost never, for a mailbox. |
user |
Every project, for you. | This is the one you want. |
project |
This project, for everybody who checks it out. | A shared mailbox on a team repository. |
Leave the flag off and the mailbox works perfectly in the directory you set it up in, and is simply absent everywhere else, with no error and nothing in the tool list to explain it. It reads as the server having stopped working rather than as the server not being there.
Signing in
Adding the server does not authenticate it. Start Claude Code and run:
/mcp
Choose your connector and then choose to authenticate. It opens the control panel in your browser, you sign in, and it asks which mailbox this connector should open. Claude Code stores its own credential afterwards, so this happens once. There is no client ID and no secret to paste anywhere: the server registers the client itself.
On a machine with no browser
A build agent or a headless box cannot complete a sign-in. Add the
connector with an access token from the control panel instead, using
--header "Authorization: Bearer YOUR-ACCESS-TOKEN", and skip
the /mcp step. Do not put a token in a repository.
Or commit it to the project
With --scope project the entry goes into a
.mcp.json at the repository root, which anybody who checks out
the project will be prompted to trust. The file looks like this, and you
can write it by hand instead of running the command:
{
"mcpServers": {
"work-mail": {
"type": "http",
"url": "https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY"
}
}
}
No credential in it, which is the point: everybody who checks it out signs in as themselves and opens their own mailbox. The file describes where the server is, not who anybody is.
Check that it worked
Try this first
Check my inbox for anything about this repository in the last fortnight and summarise what people asked for.
Worth more than a plain listing in a terminal agent, because it is the thing Claude Code is uniquely placed to do: the bug report and the code in one context. Nothing is marked read by asking.
/mcp also lists what is connected and its state, which is the
quickest way to tell "not authenticated" apart from "not added in this
scope".
The free tier is 5 MCP calls a day on any mailbox, with no card, which is enough to run the command above and see it answer.
Where to go next
Claude.ai and the desktop app share one connector list and need doing once between them. If you sign in to Claude Code with the same claude.ai account, that list comes here too; the command on this page is for when it doesn't, or for a connection of its own.
The tool reference matters more
here than in a chat client: the read tools carry
readOnlyHint, so an agent configured to auto-approve reads
will run them without asking, and every one of those still counts as a
call against your daily limit.
Read 5 October 2026 Every value on this page came off Claude Code documentation: MCP on that day. The old docs.claude.com path 301s here. If it has changed since, tell us and we will read it again.