Spacemail MCP — Tools Reference
Spacemail MCP connects your AI assistant (such as Claude) to your Spacemail mailbox. Through it, the assistant can list your folders, list, search and read your emails, mark them read or as favorites, move them between folders or to Trash, and send, reply to and forward emails from your own address — you ask in plain language, and the assistant calls the right tools.
Getting started
You need a Spacemail mailbox. Spacemail MCP is available at https://mcp.spacemail.com/mcp.
How you connect depends on your AI assistant:
Claude (web and desktop) — open Settings, choose Connectors, add a custom connector, and point it at
https://mcp.spacemail.com/mcp. Anthropic's Claude is the client we have verified Spacemail MCP to work with.Other MCP clients — add a remote MCP server and point it at
https://mcp.spacemail.com/mcp. Other clients may work, but we haven't verified them yet.
When you connect, you'll be asked to sign in and approve the assistant's access to your mailbox. The assistant then acts only on that mailbox, and only through the tools below.
What the assistant can and cannot do
Email content is untrusted. Subjects, senders, previews and bodies are written by other people. Spacemail MCP tells the assistant to treat them as data, not as instructions, but an email can still try to steer it: review what the assistant proposes before you approve a change.
Sent email is real email.
email_send,email_replyandemail_forwardsend from your own Spacemail address, and a sent email cannot be called back. The assistant should send only what you asked for: review the recipients and the text before you approve a send.Plain text only. You write the text of a new email, reply or forward as plain text. You cannot upload attachments, save drafts or send secure messages; a forward can include the attachments of the email it forwards.
Nothing is deleted permanently. Deleting an email moves it to your Trash folder, from where you can move it back. No tool empties Trash or erases a message.
Terms and privacy
The agreements and policies that apply to Spacemail MCP:
Tools at a glance
Access: Read only retrieves information. Write changes your mailbox in a way you can change back, or sends an email from your address, which cannot be undone.
Tool:
folder_listWhat it does: List your folders with their unread and total counts
Access: Read
Tool:
email_listWhat it does: List the emails in a folder, newest first
Access: Read
Tool:
email_searchWhat it does: Search emails by text, unread, favorite or high priority
Access: Read
Tool:
email_readWhat it does: Read one email and mark it as read
Access: Write
Tool:
email_mark_readWhat it does: Mark an email as read or unread
Access: Write
Tool:
email_mark_favoriteWhat it does: Mark an email as a favorite or remove the mark
Access: Write
Tool:
email_moveWhat it does: Move an email to another folder
Access: Write
Tool:
email_deleteWhat it does: Move an email to Trash
Access: Write
Tool:
email_sendWhat it does: Send a new email
Access: Write
Tool:
email_replyWhat it does: Reply to an email, or reply to all
Access: Write
Tool:
email_forwardWhat it does: Forward an email, with its attachments by default
Access: Write
How emails are identified
Every email in a list or search result carries folderFullName and uid. The other tools take these two values as folder and uid. A uid is only valid inside its folder and changes when the email is moved, so after a move the assistant uses the new uid the move returned, or lists the folder again.
The folder Virtual/All covers every folder, including Trash, Spam, Drafts and Sent. It is accepted by email_list and email_search only; each result still carries the real folder of the email.
Common workflows
Catch up on unread mail
email_searchwithunreadOnly: truefinds the unread emails across all folders.email_readopens the ones you ask about; reading marks them as read.
Tidy up a folder
folder_listshows the folders and their exact names.email_listlists the emails of the folder.email_movefiles an email into another folder, oremail_deletemoves it to Trash.
Answer an email
email_searchoremail_listfinds the email.email_readshows it to you, so you can decide what to answer.email_replysends your answer, oremail_forwardpasses the email on to someone else.
Tool reference
Folders
folder_list — List folders
Access: Read.
Lists the folders of the mailbox as a flat list, nested folders included. Use a folder's fullName as the folder argument of the other tools.
{ "folders": [ { "fullName": "INBOX", "name": "INBOX", "parentFullName": "", "unread": 3, "total": 120, "role": "inbox" }, { "fullName": "Receipts", "name": "Receipts", "parentFullName": "", "unread": 0, "total": 14, "role": null } ]}role is inbox, sent, drafts, trash, junk or archive when the folder has one, otherwise null.
Emails
email_list — List emails
Access: Read.
Lists the emails of one folder, newest first, one page at a time.
Parameter:
folderRequired: Yes
Type & constraints: String, 1–1024 characters: the folder's
fullName, orVirtual/AllParameter:
pageRequired: No
Type & constraints: Integer ≥ 0, zero-based. Defaults to 0
Parameter:
countRequired: No
Type & constraints: Integer 1–100: emails per page. Defaults to 25
{ "items": [ { "folderFullName": "INBOX", "uid": 4821, "from": [{ "name": "Jane Doe", "address": "jane@example.com" }], "to": [{ "name": null, "address": "you@yourdomain.com" }], "subject": "Invoice for October", "date": "2026-10-14T09:12:00Z", "previewText": "Hi, please find the invoice attached…", "isRead": false, "isFavorite": false, "isAnswered": false, "hasAttachments": true, "importance": "Normal" } ], "total": 120, "page": 0, "count": 25, "hasMore": true}email_search — Search emails
Access: Read.
Searches the emails of a folder by text and filters, one page at a time. Without a folder, it searches Virtual/All.
Parameter:
folderRequired: No
Type & constraints: String, 1–1024 characters. Defaults to
Virtual/AllParameter:
queryRequired: No
Type & constraints: String, 3–255 characters: text to search for
Parameter:
unreadOnlyRequired: No
Type & constraints: Boolean: only unread emails
Parameter:
favoritesOnlyRequired: No
Type & constraints: Boolean: only favorite emails
Parameter:
highPriorityOnlyRequired: No
Type & constraints: Boolean: only high-priority emails
Parameter:
pageRequired: No
Type & constraints: Integer ≥ 0, zero-based. Defaults to 0
Parameter:
countRequired: No
Type & constraints: Integer 1–100: emails per page. Defaults to 25
The result has the same shape as email_list.
email_read — Read email
Access: Write — reading marks the email as read.
Reads one email: headers, attachment details and the body. The body is the cleaned-up HTML version when the email has one (bodyFormat html), otherwise its plain text (bodyFormat text), cut at 100,000 characters (bodyTruncated). Attachments are listed, not downloaded.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email (its
folderFullName), notVirtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer: the email's
uidin that folder
{ "message": { "folderFullName": "INBOX", "uid": 4821, "messageId": "<abc123@example.com>", "from": [{ "name": "Jane Doe", "address": "jane@example.com" }], "to": [{ "name": null, "address": "you@yourdomain.com" }], "cc": [], "subject": "Invoice for October", "date": "2026-10-14T09:12:00Z", "body": "<p>Hi, please find the invoice attached.</p>", "bodyFormat": "html", "bodyTruncated": false, "attachments": [{ "name": "invoice.pdf", "contentType": "application/pdf", "size": 48213 }], "importance": "Normal" }, "markedRead": true}markedRead is false when the email was returned but marking it as read failed.
email_mark_read — Mark email read or unread
Access: Write.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
Parameter:
readRequired: Yes
Type & constraints: Boolean:
truemarks the email as read,falseas unread
{ "folderFullName": "INBOX", "uid": 4821, "isRead": true }
Setting the same state twice is harmless. A uid that is not in the folder is not reported as an error, so the assistant takes uids from a fresh list.
email_mark_favorite — Mark email as favorite
Access: Write.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
Parameter:
favoriteRequired: Yes
Type & constraints: Boolean:
truemarks the email as a favorite,falseremoves the mark
{ "folderFullName": "INBOX", "uid": 4821, "isFavorite": true }
email_move — Move email
Access: Write.
Moves one email to another folder of the same mailbox. Moving it to the folder it is already in is refused.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
Parameter:
destinationFolderRequired: Yes
Type & constraints: String: the folder to move the email to, not
Virtual/All
{ "previousFolderFullName": "INBOX", "folderFullName": "Receipts", "uid": 77 }
The email gets a new uid in the destination folder. uid is null when the server did not report it; list the destination folder to find the email. A move is never retried automatically: if it could not be confirmed, the assistant lists the folders before trying again.
email_delete — Delete email
Access: Write.
Moves one email to the Trash folder. The email is not erased and can be moved back; an email that is already in Trash is refused, because the only remaining step would be a permanent delete, which Spacemail MCP never does.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
{ "previousFolderFullName": "INBOX", "folderFullName": "Trash", "uid": 912 }
Sending
These tools send real email from your own Spacemail address; the sender cannot be changed. The result only says that the mail server accepted the email for delivery, not that it was delivered.
All three share these limits:
Recipients are bare email addresses such as
alice@example.com, without display names, at most 50 in total. The same address given twice counts once.The text (
body) is plain text of at most 200,000 characters. Line breaks are kept; it is not sent as HTML.No attachments can be uploaded, no draft is saved and no secure message is sent.
A send is never repeated blindly. If the mail server did not confirm it (infrastructure.mailcore.outcome-unknown), the email may have been sent anyway: the assistant looks for it in your Sent folder before sending it again.
email_send — Send email
Access: Write — sends a real email, which cannot be undone.
Sends a new email.
Parameter:
toRequired: Yes
Type & constraints: List of 1–50 email addresses
Parameter:
ccRequired: No
Type & constraints: List of up to 50 email addresses. Defaults to none
Parameter:
bccRequired: No
Type & constraints: List of up to 50 email addresses, hidden from the other recipients. Defaults to none
Parameter:
subjectRequired: Yes
Type & constraints: String: a single line of at most 998 characters
Parameter:
bodyRequired: Yes
Type & constraints: String: plain text, at most 200,000 characters
{ "accepted": true }
To, Cc and Bcc together hold at most 50 addresses.
email_reply — Reply to email
Access: Write — sends a real email, which cannot be undone.
Replies to one email. The subject gets a Re: prefix (never twice), the reply is threaded under the email, and the email is quoted below your text with a header naming its sender. A very long email is quoted up to 100,000 characters and marked as truncated. Replying does not mark the email as read.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
Parameter:
bodyRequired: Yes
Type & constraints: String: plain text, at most 200,000 characters
Parameter:
replyAllRequired: No
Type & constraints: Boolean:
truealso replies to the other To and Cc recipients. Defaults tofalse
{ "accepted": true }
The reply goes to the email's Reply-To address; when there is none, or it names only you, to its sender; when that is you too, as for an email in your Sent folder, to its original To recipients. Your own address is always left out. With replyAll, the other To and Cc recipients of the email are added; your main address is left out, but your aliases are not, so a copy may reach you through one of them. The reply goes to at most 50 recipients.
email_forward — Forward email
Access: Write — sends a real email, which cannot be undone.
Forwards one email to new recipients. The subject gets a Fwd: prefix (never twice), and the email is quoted below your text with a header naming its sender, up to 100,000 characters. A forward starts a new conversation. Forwarding does not mark the email as read.
Parameter:
folderRequired: Yes
Type & constraints: String: the real folder of the email, not
Virtual/AllParameter:
uidRequired: Yes
Type & constraints: Positive integer
Parameter:
toRequired: Yes
Type & constraints: List of 1–50 email addresses
Parameter:
bodyRequired: Yes
Type & constraints: String: plain text, at most 200,000 characters
Parameter:
includeAttachmentsRequired: No
Type & constraints: Boolean:
trueforwards the attachments of the email,falseonly its text. Defaults totrue
{ "accepted": true }
Errors
When a tool fails, the assistant receives an error with a code, a detail sentence and retryable, which says whether trying again later can help. The errors you may see:
Code:
business.email.same-folderMeaning: The destination is the folder the email is already in
Code:
business.email.already-in-trashMeaning: The email is already in Trash
Code:
business.email.trash-folder-not-foundMeaning: The mailbox has no folder marked as Trash
Code:
business.email.no-recipientMeaning: A new email or forward has no recipient
Code:
business.email.no-reply-recipientMeaning: The email names nobody to reply to except you
Code:
business.email.too-many-recipientsMeaning: More than 50 recipients in total
Code:
business.email.unauthorizedMeaning: The mailbox refused access; reconnect Spacemail MCP
Code:
business.mailcore.folder-not-foundMeaning: The folder does not exist; check
folder_listCode:
business.mailcore.message-not-foundMeaning: The email is not in that folder; list the folder again
Code:
business.mailcore.quota-exceededMeaning: The mailbox is full
Code:
business.mailcore.invalid-target-folderMeaning: Emails cannot be moved into that folder, such as Drafts or Sent
Code:
infrastructure.mailcore.timeoutMeaning: The mailbox did not answer in time; retryable
Code:
infrastructure.mailcore.unavailableMeaning: The mailbox service is unavailable; retryable
Code:
infrastructure.mailcore.outcome-unknownMeaning: A move or send was not confirmed; list the folders, or look in Sent, before repeating it