ClawLink

How to connect Mailtrap to Hermes Agent

Connect Mailtrap to Hermes with ClawLink: paste your Mailtrap key once and 49 tools work from chat. No MCP server to run, nothing stored on your machine.

Get started for free
Hermes Agent
Hermes Agent
ClawLink
ClawLink
Mailtrap
Mailtrap
MailtrapOAUTH2MCP

Email Delivery Platform for testing and sending transactional emails.. Once connected, Hermes Agent can read and act on Mailtrap from chat — pairing, token refresh, and tool wiring handled for you.

49 tools

Most guides for giving Hermes Agent Mailtrap access start with registering your own OAuth app or pasting API keys into env files, then leave the token refresh and tool wiring to you. ClawLink gives Hermes a more practical Mailtrap setup: pair once in the browser and your always-on Hermes agent can act on Mailtrap for you, reading and doing real work on your behalf with no auth, token refresh, or tool wiring to build yourself.

Setup

It takes three steps to connect Hermes to Mailtrap.

  1. 1

    Install and pair

    Install the ClawLink plugin, then pair Hermes with a one-time browser approval:

    hermes plugins install ClawLink-HQ/hermes-plugin --enable
  2. 2

    Connect Mailtrap

    Enter your account details in the dashboard.

  3. 3

    Use it from chat

    Ask Hermes Agent: "What can you do with Mailtrap?"

Install by command

The prompt above walks Hermes through this. By hand, it is four commands and a browser approval:

hermes plugins install ClawLink-HQ/hermes-plugin --enable
hermes clawlink begin    # prints an approval link — open it and approve
hermes clawlink finish   # after approving in the browser
hermes clawlink test

Then connect Mailtrap in the ClawLink dashboard — enter your Mailtrap account details once.

Verify the connection by asking Hermes:

Create it in Mailtrap for me, then confirm the important fields before you finish.

Using a different agent?

The Hermes plugin is one client of ClawLink's MCP server. Claude Code, Cursor, Codex, or any agent that can run a shell command pairs with the same ClawLink account through the CLI:

npx -y @useclawlink/cli login

login opens the same browser approval and stores a credential locally. Once Mailtrap is connected in the dashboard, that agent calls the same 49 Mailtrap tools over MCP. Full setup for MCP clients and shell agents: connect apps to any AI agent.

Mailtrap MCP for Hermes

Looking for a Mailtrap MCP server for Hermes Agent? ClawLink connects Mailtrap to Hermes Agent and exposes 49 Mailtrap tools your agent can call over MCP, with hosted auth and nothing to run or maintain yourself. Using OpenClaw instead? The OpenClaw Mailtrap integration works the same way.

What the Hermes Agent Mailtrap integration can do

49 Mailtrap tools are ready for Hermes Agent once the account is connected. The 30 below are the ones people reach for most; your agent can call all 49.

30 of 49 Mailtrap tools for Hermes

ToolWhat it does
Create contact export mailtrap_create_contact_exportCreate a contact export job for a Mailtrap account
Get billing usage mailtrap_get_billing_usageRetrieve current billing cycle usage for an account
Get contact mailtrap_get_contactRetrieve a contact by UUID or email address from Mailtrap
Get contact export mailtrap_get_contact_exportRetrieve the status of a contact export
Get contact field mailtrap_get_contact_fieldRetrieve contact field details by field ID
Get contact import mailtrap_get_contact_importRetrieve the status of a contact import operation
Get contact list mailtrap_get_contact_listRetrieve a specific contact list by its ID
Get email template mailtrap_get_email_templateRetrieve details of a specific email template by ID
Get inbox mailtrap_get_inboxRetrieve inbox attributes from Mailtrap
Get message HTML mailtrap_get_message_htmlRetrieve the HTML body of a message from Mailtrap
Get permission resources mailtrap_get_permission_resourcesRetrieve all resources in account for permission management
Get project mailtrap_get_projectRetrieve project details from Mailtrap by project ID
Get sending domain mailtrap_get_sending_domainRetrieve sending domain details from Mailtrap
Get sending stats mailtrap_get_sending_statsRetrieve email sending statistics from Mailtrap for a specific account
Get sending stats by categories mailtrap_get_sending_stats_by_categoriesRetrieve email sending statistics grouped by categories
Get sending stats by date mailtrap_get_sending_stats_by_dateRetrieve email sending statistics aggregated by date
Get sending stats by domains mailtrap_get_sending_stats_by_domainsRetrieve sending statistics grouped by domains for a Mailtrap account
Get sending stats by esp mailtrap_get_sending_stats_by_espRetrieve email sending statistics grouped by email service providers (ESPs) for a specified
List accounts mailtrap_list_accountsList all Mailtrap accounts you have access to
List contact fields mailtrap_list_contact_fieldsGet all contact fields for a Mailtrap account
List contact lists mailtrap_list_contact_listsRetrieve all contact lists for a Mailtrap account
List email templates mailtrap_list_email_templatesRetrieve all email templates for a Mailtrap account
List inboxes mailtrap_list_inboxesGet a list of inboxes for a Mailtrap account
List messages mailtrap_list_messagesGet messages from a Mailtrap inbox
List projects mailtrap_list_projectsGet a list of projects for a Mailtrap account
List sending domains mailtrap_list_sending_domainsList all sending domains for a Mailtrap account
List suppressions mailtrap_list_suppressionsList suppressed email addresses for a Mailtrap account
Create contact mailtrap_create_contactCreate a new contact in Mailtrap
Create contact event mailtrap_create_contact_eventCreate a contact event in Mailtrap
Create contact field mailtrap_create_contact_fieldCreate a custom contact field in Mailtrap

Try it: find the Mailtrap tool you need

Browse the 30 Mailtrap tools

Click any tool to see exactly what Hermes can do and copy a ready-to-use prompt.

Example prompts

Create it in Mailtrap for me, then confirm the important fields before you finish.

Pull the relevant data from Mailtrap, summarize it in plain English, and point out anything that needs attention.

Pull the relevant data from Mailtrap, summarize it in plain English, and point out anything that needs attention.

Pull the relevant data from Mailtrap, summarize it in plain English, and point out anything that needs attention.

The alternative to ClawLink is usually manual credential setup plus your own token handling, permission troubleshooting, and tool plumbing for Hermes Agent. That is fine if you want to build and maintain the integration yourself. Most teams just want Mailtrap working from chat.

ManualClawLink
Setup flowCollect and store the right Mailtrap credentials yourself, then keep the account mapping and request format correct.ClawLink keeps the setup in one hosted flow so non-technical users can link Mailtrap without custom integration screens.
Ongoing maintenanceYou own refresh logic, permission debugging, environment config, and every provider-specific edge case for Mailtrap.ClawLink handles the repetitive integration plumbing so your team can focus on the workflow instead of the infrastructure.
Agent usabilityYou still need to expose the right Mailtrap actions to the runtime in a format your agent can reliably use.49 tools for Mailtrap are already exposed through ClawLink, so the agent can read and act from chat immediately.

Composio also exposes Mailtrap to AI agents. It is developer infrastructure: Python and TypeScript SDKs, an MCP server, and a catalog past 1,000 apps, aimed at teams shipping agent products. ClawLink is built for Hermes Agent users instead. You install the plugin once, connect Mailtrap in the browser, and the 49 tools above work from chat. There is no SDK and no config file, and the Mailtrap key you paste at setup is stored server-side rather than kept in your environment. Choosing between them? Read the full Composio alternatives comparison.

Troubleshooting

Hermes paired but still can't use Mailtrap

Pairing is a two-step handshake: run hermes clawlink begin, approve the link in your browser, then run hermes clawlink finish. If you ran finish before approving, or the approval link expired, run hermes clawlink begin again to get a fresh link. Confirm the plugin was installed with --enable, then verify with hermes clawlink test.

Connection succeeds but no tools appear

Reconnect Mailtrap from the dashboard, then start a fresh chat if the runtime still has the old tool catalog loaded.

"Tool schema not loaded yet" error when calling Mailtrap tools

Mailtrap tool schemas load on demand the first time a tool runs and are cached after that, so this error usually clears on its own: wait a few seconds and retry the same request. If every Mailtrap call keeps failing with it in a fresh chat, reconnect from the dashboard, and contact support if it still persists — that pattern points to a configuration problem on our side, not something you can fix by reconnecting again.

Mailtrap returns 403 or "permission denied" on one action while others work

Two usual causes. The connected account may not have access to the specific workspace, inbox, store, or project in the request — check that first. If access looks right, the agent may have sent a placeholder value (like "YOUR_ID" or an example id from documentation) instead of a real one: ask it to run a list or search tool first, then retry the action with a real id from those results. Most failures at this stage are one of these two, not ClawLink bugs.

The setup form accepts credentials but calls still fail

Re-enter the credentials carefully and verify the account-level permissions for Mailtrap. Basic and token-based integrations tend to fail on formatting mistakes or limited account roles.

FAQ

Is there a Hermes Agent Mailtrap integration?

Yes. ClawLink is the fastest way to connect Hermes to Mailtrap: link your Mailtrap account once in the browser and Hermes Agent can call the Mailtrap API through 49 ready-made tools — no custom code or token handling.

How do I connect Mailtrap to Hermes with ClawLink?

Install the plugin with hermes plugins install ClawLink-HQ/hermes-plugin --enable, then pair once: run hermes clawlink begin, approve the link in your browser, and run hermes clawlink finish. Connect Mailtrap in the dashboard and Hermes can use it from the next message — no config files, and the Mailtrap key you paste is stored server-side instead of in your environment.

How long does it take to connect Mailtrap to Hermes Agent?

About two minutes. Sign in, click Connect next to Mailtrap in the dashboard, authenticate, and Hermes Agent can use it from the next chat message.

Why use ClawLink instead of wiring Mailtrap up myself?

The alternative to ClawLink is usually manual credential setup plus your own token handling, permission troubleshooting, and tool plumbing for Hermes Agent. That is fine if you want to build and maintain the integration yourself. Most teams just want Mailtrap working from chat.

Hermes paired but still can't use Mailtrap

Pairing is a two-step handshake: run hermes clawlink begin, approve the link in your browser, then run hermes clawlink finish. If you ran finish before approving, or the approval link expired, run hermes clawlink begin again to get a fresh link. Confirm the plugin was installed with --enable, then verify with hermes clawlink test.