Give Hermes Agent a Shipmail mailbox
Hermes Agent is an open-source agent from Nous Research that runs on your machine or a server and talks to you in the terminal or a chat app. Add the Shipmail MCP server and it can work in a mailbox on your own domain: summarize what came in, draft replies in the right conversation, and send when you allow it.
Last updated
What you get
- Inbox tools such as
shipmail_list_mailbox_inbox_messagesandshipmail_get_mailbox_inbox_thread, reply drafts withshipmail_create_inbox_reply_draft, and sending withshipmail_send_messageonce the key allows it. - One mailbox for you and the agent. Everything Hermes does shows in Shipmail, in the same conversation, so you can step in at any point.
Create the mailbox and a scoped key
You need a Shipmail account with your domain added. Unlike a Gmail account made for a bot, a Shipmail mailbox is a paid business mailbox on your own domain, and giving it to an agent is what it is for. The address stays yours if you change agents later.
Create a mailbox for the agent
Under Mailboxes, create an address like
agent@yourdomain.com. You and your team can open it in Shipmail or any mail client and see every message Hermes Agent reads, drafts or sends.Create an API key
Open Developer, then API keys, and create a key. Pick the Draft only preset. It grants
mailboxes:read,messages:read,messages:write,drafts:write,drafts:compose,threads:readandsuppressions:read, and nomessages:send.Limit the key to that mailbox
Choose specific resources and add only the agent's mailbox. The key then cannot read or write any other mailbox in your organization.
The key starts with sm_live_ and is shown once. The MCP server only lists the tools the key's scopes allow, so a Draft only key has no send tool at all. When the drafts are good, edit the key and switch to the Full agent preset, which adds messages:send and members:read. Scope details are on API authentication.
Add Shipmail to Hermes Agent
If you have not installed Hermes Agent yet, run the command from its documentation:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashThen add Shipmail under mcp_servers in ~/.hermes/config.yaml:
mcp_servers:
shipmail:
url: "https://shipmail.to/api/mcp"
headers:
Authorization: "Bearer sm_live_..."In a running session, type /reload-mcp to load the change. Run hermes mcp test shipmail to check the connection.
Show Hermes fewer tools
Hermes can filter the tools of a server with include or exclude lists. Write each tool name in full. Hermes compares exact names, and a pattern such as shipmail_get_* matches nothing. This list keeps it to reading and drafting even if the key can do more:
mcp_servers:
shipmail:
url: "https://shipmail.to/api/mcp"
headers:
Authorization: "Bearer sm_live_..."
tools:
include:
- "shipmail_list_mailbox_inbox_messages"
- "shipmail_list_mailbox_inbox_threads"
- "shipmail_get_mailbox_inbox_message"
- "shipmail_get_mailbox_inbox_thread"
- "shipmail_create_inbox_reply_draft"
- "shipmail_create_draft"Run the server locally instead
mcp_servers:
shipmail:
command: "npx"
args: ["-y", "shipmail-mcp"]
env:
SHIPMAIL_API_KEY: "sm_live_..."First test
- "Send me a summary of the unread mail in agent@yourdomain.com."
- "Reply to the latest email from jane@customer.com and say we can meet on Tuesday. Leave it as a draft."
Open the conversation in Shipmail to read the draft, change it, and send it yourself.
Stay safe
- Start with the Draft only preset. Add
messages:sendonly for a job you have watched work. - Treat email as untrusted input. Hermes can also run tools on your machine, and a message can contain text written to look like an instruction. Keep its tools and its key small.
config.yamlnow holds a key. Keep the file readable only by you, and revoke the key under Developer, then API keys, if it leaks.
More on MCP permissions and security.
Troubleshooting
- No Shipmail tools after editing the file: run
/reload-mcpor restart Hermes, then check the YAML indentation. - A tool is missing: the key does not grant its scope, or your
includelist hides it. 401: the header must readBearerfollowed by the full key.
Next steps
Frequently asked questions
Does Hermes Agent need a plugin for MCP?
No. Nous Research documents that MCP support ships with the standard Hermes install. You add servers under mcp_servers in ~/.hermes/config.yaml.
Can Hermes Agent answer email while I am away?
Yes, with a key that has messages:send. Start with drafts. Hermes leaves replies in the conversation, and you send them from Shipmail or your phone.
Can I limit which Shipmail tools Hermes sees?
Yes, in two places. The key's scopes decide which tools the server lists. The tools include or exclude list in config.yaml hides more of them.
Why not give Hermes my own inbox?
Your inbox holds password resets, bank notices and years of history. A mailbox made for the agent holds only its own work, and your team can still open it.