EPST
Email for AI agents, with one API key. Read, search, draft, send, and reply to email through EPST.
EPST provides an email domain such as {your-domain}.epst.cc. This package connects an agent to your existing EPST mailbox through the hosted MCP server. It contains connection settings and an email skill; there is no local email server, build step, or separate MCP process to run.
The current integration targets OpenClaw / ClawHub. The MCP configuration and skill are kept separate so future agent integrations can reuse them. Other agent clients are not yet tested by this project.
Install in OpenClaw
Tested with OpenClaw 2026.9.4. You need an EPST account with a mailbox and an API key. The API key is the Secret Key from your EPST account, not a separate plugin credential.
Run the commands below on the machine or inside the container that runs your OpenClaw Gateway. They assume OpenClaw's default profile; for a named profile, use that profile consistently and put .env in its state directory.
-
Add the following line to
~/.openclaw/.env, preserving any existing settings:EPST_API_KEY=your_epst_secret_keyIf the OpenClaw Gateway runs in a container or on another machine, set this environment variable there. Keep the key out of this repository and chat messages.
-
Install the package from ClawHub:
openclaw plugins install clawhub:@epst/epst --accept-capabilities openclaw plugins enable epstAlternatively, install from a reviewed local checkout:
git clone https://github.com/Loookup/epst.git openclaw plugins install ./epst --force --accept-capabilities openclaw plugins enable epst--forceconfirms the local source;--accept-capabilitiesaccepts the package's email skill and MCP connection. Nonpm installor build is needed. -
Register the connection, then restart the Gateway:
openclaw mcp set epst '{"transport":"streamable-http","url":"https://epst.cc/mcp","headers":{"Authorization":"Bearer ${EPST_API_KEY}"}}' openclaw gateway restartKeep the single quotes and
${EPST_API_KEY}exactly as shown; OpenClaw reads the key from its environment. This step is required with OpenClaw 2026.9.4 because its bundle loader leaves header placeholders unresolved. Registering the sameepstconnection in OpenClaw's own configuration enables environment substitution without storing the key in the package. -
Check that OpenClaw recognizes the package and skill:
openclaw plugins inspect epst openclaw skills info epst-email openclaw mcp probe epstThe probe connects and lists available tools without sending email. Then start a new agent session and ask:
Show my available EPST mailboxes. Do not send any email.
The agent should call
epst__get_mail_context. A successful mailbox response verifies the connection and key; plugin inspection alone does not.
OpenClaw's coding and messaging tool profiles support bundle MCP tools. If you use a custom tool allowlist, include epst__* alongside your existing entries. An explicit deny rule still takes precedence.
Use
- “Summarize my unread EPST email.”
- “Draft a reply to this email, but do not send it.”
- “Send an email to alex@example.com with subject ‘Meeting’ and body ‘Can we meet tomorrow?’”
- “Check the delivery status of the email you just sent.”
The skill uses the mailbox addresses and tool definitions returned by EPST. Tools available to the agent depend on the permissions of your API key. Reading a message does not automatically mark it as read. A saved draft is not sent until you request it.
This package does not create background inbox polling or notifications. Large attachment uploads require an agent client capable of completing EPST's HTTP upload flow.
MCP connection
- Endpoint:
https://epst.cc/mcp - Transport: Streamable HTTP
- MCP requests:
POST /mcp(handled automatically by the client) - Authentication:
Authorization: Bearer <EPST_API_KEY>
The server allows unauthenticated MCP initialization, health checks, and tool discovery so clients can inspect the integration. Every operation that accesses a mailbox or performs an email action still requires a valid EPST API key. Create one at epst.cc; never include it in a URL or commit it to the repository.
The shared connection is declared in .mcp.json. The registration step above puts the same connection in OpenClaw's configuration, where ${EPST_API_KEY} is substituted from its environment. The accompanying email skill describes mailbox selection, drafting, authorized sending, retries, and handling untrusted email content.
See the EPST MCP documentation for the service interface. Other MCP clients may require different configuration syntax; this repository currently supplies OpenClaw installation instructions only.
Troubleshooting
- Skill unavailable: ensure
EPST_API_KEYis set in the Gateway's environment and restart the Gateway. - No EPST tools: check that
epstis enabled, your tool policy allowsepst__*, and you started a new session after installation. - Authentication failure: complete the
openclaw mcp set epststep above, use your existing EPST Secret Key, and verify that it is active. Do not paste it into chat or an issue. - Missing mailbox or operation: check the mailbox access and permissions assigned to the key in EPST.
- Rate limit or uncertain send result: follow the server's retry guidance. Retrying a send must preserve its original idempotency key and payload.
To remove the integration, run openclaw mcp unset epst and openclaw plugins uninstall epst, then restart the Gateway. Remove EPST_API_KEY from your environment if it is no longer used.
Package layout
.codex-plugin/plugin.json Bundle manifest recognized by OpenClaw
openclaw.plugin.json ClawHub package registration metadata
.mcp.json Hosted MCP connection; no embedded credential
skills/epst-email/SKILL.md Shared email instructions
assets/icon.png EPST icon
docs/PUBLISHING.md Release instructions for maintainers
The .codex-plugin directory identifies a supported bundle format; this package has no JavaScript runtime entry point. See publishing instructions for validation and ClawHub release steps.
Data and license
The agent connects directly to EPST. Email content may also be processed by your agent and its model provider when you ask the agent to work with it. This package adds no separate telemetry or background service.
The integration files are licensed under MIT. The hosted EPST service is governed by its terms and privacy policy.