All documentation
On this page
Set-up documentation
Connect your mailbox to Cline
Cline spells the transport streamableHttp in camel case, alone among every client. Its own remote example carries a bearer token, so this one does too.
mcpServers
url
Cline in 3 steps
-
Create an access token
In the control panel, create an access token for the mailbox you want Cline to reach. Cline's own remote example uses one, so this is the documented route.
-
Add the server
Under mcpServers, with type streamableHttp in camel case, a url of https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY, and the token in an Authorization header.
-
Check the tools appear
Open the MCP Servers panel in Cline. The mail tools should be listed under the name you gave it.
This one takes an access token
Most clients in this section need nothing but a URL, because they sign you in. Cline's documentation points the other way: its own example of a remote server carries a bearer token in an Authorization header, and that is the route this page uses.
OAuth does appear in Cline's MCP documentation now, read again on
25 November 2026, but only as one line: the CLI's cline mcp
menu has an Authorize OAuth action that runs browser
authorisation for a remote server. It says nothing about whether Cline
registers itself with a server, or about the IDE extension, and we have
not tried it. The token route is what we can tell you works: create one
in the control panel for the mailbox you want Cline to reach.
The token carries the mailbox's limit as its permission level, set on the same Connector tab: Send and delete with the calendar unless you lower it. If you do, Cline is held to whatever you lowered it to.
A token is a credential, so treat it like one
It opens one mailbox until you revoke it. Do not commit the file it lives in, do not paste it into a chat window, and revoke it in the control panel the moment you stop using it. Every client that signs in instead is one fewer of these in existence, which is the whole argument for the OAuth route where a client offers it.
The configuration
{
"mcpServers": {
"work-mail": {
"type": "streamableHttp",
"url": "https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY",
"headers": {
"Authorization": "Bearer YOUR-ACCESS-TOKEN"
},
"disabled": false,
"autoApprove": []
}
}
}
streamableHttp is camel case and Cline is alone in spelling it
that way. Do not leave the line out: Cline's documentation says an entry
without a type falls back to the legacy SSE transport, so set
it explicitly, and use "type": "sse" only for legacy SSE
servers, which this is not.
autoApprove is worth a thought rather than a copy. An empty
list means Cline asks before every call, which on a mailbox is the right
default. If you do put tool names in it, put read tools there and nothing
else: an auto-approved send_email is an agent that can send
mail in your name without asking, and every auto-approved read still counts
against your daily call limit.
Or add it through the panel
The same thing without editing a file: the MCP Servers icon, then the Remote Servers tab. It asks for a server name, a server URL, and a transport type, where the choices are Streamable HTTP (recommended) and SSE (Legacy). Pick the first. Then Add Server.
Which file
~/.cline/data/settings/cline_mcp_settings.json is the only
path in Cline's own documentation, and it is the CLI's. The
CLINE_MCP_SETTINGS_PATH environment variable points it
somewhere else. The CLI can also write the entry for you in one line,
using the same command form Cline documents:
cline mcp add work-mail https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY --transport http --header "Authorization: Bearer YOUR-ACCESS-TOKEN" --yes
In the VS Code extension, the file opens from the panel: the MCP Servers icon, the Configure tab, then Configure MCP Servers. Cline does not say where that file lives on disk, so no path is printed here as though it were certain. If you use the extension, the panel route above avoids the question entirely.
Check that it worked
Try this first
Read my 3 most recent unread emails and tell me if any of them are about something in this codebase.
Nothing is marked read by asking. A 401 rather than a result means the token, not the URL: check you pasted the whole of it and that it has not been revoked.
The free tier is 5 MCP calls a day on any mailbox, with no card. Enough to try Cline against your own mail before deciding.
Where to go next
If you also use VS Code's own agent mode, that one does sign you in and needs no token at all, which is the better arrangement where you have the choice. The key table shows which clients are which.
- The IDE extension's settings path. Cline's documentation opens the file from MCP Servers, Configure, Configure MCP Servers and does not say where it lives.
- Whether Cline's OAuth sign-in completes against this server, and whether it registers itself. Its documentation lists an Authorize OAuth action in the CLI's MCP menu and says nothing more; we have not run it, which is why this page uses a token.
Read 25 November 2026 Every value on this page came off Cline documentation: MCP on that day. If it has changed since, tell us and we will read it again.