OpenMail

sh.openmailv0.1.0更新于 Oct 6, 2026

Gmail for agents: create inboxes, read and reply to mail, send email, manage domains. OAuth sign-in.

已验证Streamable HTTP可网页运行Productivity & WorkflowCommunication & Collaboration

概览

AI 生成的概览

让助手通过托管服务创建邮箱、读取和回复邮件、发送邮件并管理域名。

功能
OpenMail 是面向智能体的托管邮件服务,被描述为“智能体的 Gmail”。通过其 MCP 端点,助手可以创建收件箱、读取需要回复的来信、在会话中回复、发送邮件以及管理域名。它还提供用于配置智能体邮件访问的设置与密钥生成工具。
适用场景
当助手需要自己的邮件身份时适用:例如监控收件箱、起草或发送回复,或在智能体工作流中处理基于域名的邮件。它是托管服务,适合能够连接远程 HTTP MCP 端点的客户端,而非本地进程。
运行要求
需要远程 Streamable HTTP 端点 stdio 的客户端需使用 mcp-remote。认证方式为 OAuth 登录(Claude、Cursor)或通过 Authorization Bearer 请求头发送 API 密钥。另有收件箱范围、只读和单收件箱的端点变体。需要网络访问。
安装前请注意
API 密钥(Authorization: Bearer om_...)可访问账户邮件,建议尽量使用收件箱范围或只读端点。使用 API 密钥时,setup_agent_email 和 mint_inbox_key 会在工具结果中返回令牌,该令牌会进入聊天记录,应将其移入智能体的环境变量。该服务器可以发送和回复邮件并管理域名,因此存在写入操作。可选的 PostHog 分析默认每次调用记录一个工具调用事件,除非关闭。

安装

在 SourceWeft 中

  1. 打开 控制台中的 OpenMail,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "openmail": {
      "type": "http",
      "url": "https://mcp.openmail.sh/mcp"
    }
  }
}

README

OpenMail MCP

Hosted Streamable HTTP MCP at https://mcp.openmail.sh/mcp. Gmail for agents: one inbox, read mail that wants a reply, reply in-thread.

There is no local stdio catalog — stdio-only clients should use mcp-remote.

Connect

Claude (OAuth): paste https://mcp.openmail.sh/mcp

Cursor (OAuth): Add to Cursor, or add the URL below without headers.

VS Code / any registry client: listed in the MCP Registry as sh.openmail/openmail.

Cursor or headless agents (API key):

json
{  "mcpServers": {    "openmail": {      "url": "https://mcp.openmail.sh/mcp",      "headers": { "Authorization": "Bearer om_YOUR_KEY" }    }  }}

Prefer an inbox-scoped key. Read-only: /mcp/readonly. One inbox: /mcp/inbox/{id}.

Keys and transcripts: over OAuth (Claude, Cursor sign-in) setup_agent_email and mint_inbox_key never return a token — the session is already authenticated, and anything returned lands in the chat. They point to the console, which shows a new key once in the browser. Over an API key (headless agent) the token is returned in the tool result; move it to the agent's env.

stdio-only clients: npx -y mcp-remote https://mcp.openmail.sh/mcp

Env

NamePurpose
OPENMAIL_API_URLAPI origin (https://api.openmail.sh)
MCP_RESOURCE_URLOAuth resource (https://mcp.openmail.sh)
MCP_JWT_SECRETSame secret as the API. Required in production; outside production falls back to NEXTAUTH_SECRET
CONSOLE_ORIGINConsent page host
PORTListen port
POSTHOG_API_KEYTurns on PostHog MCP Analytics ($mcp_tool_call per call). Unset = off
MCP_ANALYTICS_DEBUGSet to log every captured analytics event

See .env.example.

Local

pnpm installpnpm testpnpm dev

Contributing

Open an issue or PR. Run pnpm typecheck && pnpm test before pushing.

MIT © OpenMail

来源:README.md,提交 fd58362

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.1.0最新Oct 6, 2026