forwardemail-mcp
MCP server for Forward Email that provides tools to manage email inbox, send mail, calendar events, and contacts.
README
forwardemail-mcp
forwardemail-mcp is an MCP server for Forward Email workflows. It exposes mail, calendar, and contacts tools over local stdio for development and Streamable HTTP for remote clients such as Notion Custom Agents.
The default configuration targets the public Forward Email service. If you run a self-hosted setup, override the service URLs in your environment.
Versioning:
- Releases use semver tags and GitHub Releases.
- The current public release is
v0.1.2.
Auth model:
FE_ALIAS_USER+FE_ALIAS_PASS+ DAV URLs power mailbox, calendar, and contacts tools.FE_API_KEYis used for API-key-only actions such as sending mail.MCP_AUTH_TOKENprotects the public/mcpendpoint when you deploy remotely.
What It Does
- Read and search inbox messages with bounded metadata responses.
- Read individual messages and list folders.
- Send mail through the provider API.
- List, create, update, and delete calendar events.
- List, search, read, and create contacts.
Local Stdio Quickstart
- To pin the current public release:
git checkout v0.1.2
- Use Node
20.18.1or newer. The repo pins20.18.1in.nvmrcand requires at least that version inpackage.json.
nvm use
- Install dependencies:
npm install
- Create local config from the example and fill in real values:
cp .env.example .env
- Build the server:
npm run build
- Point your MCP client at the built entrypoint. Example:
{
"mcpServers": {
"forwardemail": {
"command": "node",
"args": ["/absolute/path/to/forwardemail-mcp/dist/index.js"],
"env": {
"MCP_TRANSPORT": "stdio",
"LOG_LEVEL": "info",
"FE_API_URL": "https://api.forwardemail.net",
"FE_API_KEY": "replace-with-api-key",
"FE_CALDAV_URL": "https://caldav.forwardemail.net",
"FE_CARDDAV_URL": "https://carddav.forwardemail.net",
"FE_ALIAS_USER": "alias@example.com",
"FE_ALIAS_PASS": "replace-with-alias-password"
}
}
}
}
MCP_TRANSPORT=stdio is the default, so npm run dev also works for local iteration.
Optional: 1Password SDK Mode
The runtime also supports resolving secrets directly from 1Password via the 1Password SDK.
- Set
AUTH_MODE=1password-sdk. - Export
OP_SERVICE_ACCOUNT_TOKEN. - Replace credential values with
op://vault/item/fieldorop://vault/item/section/fieldreferences.
Example:
AUTH_MODE=1password-sdk
OP_SERVICE_ACCOUNT_TOKEN=ops_xxx
FE_API_URL=op://vault/forwardemail/api-url
FE_API_KEY=op://vault/forwardemail/api-key
FE_CALDAV_URL=op://vault/forwardemail/caldav-url
FE_CARDDAV_URL=op://vault/forwardemail/carddav-url
FE_ALIAS_USER=op://vault/forwardemail/alias-user
FE_ALIAS_PASS=op://vault/forwardemail/alias-pass
If AUTH_MODE=env, the server reads the plain environment variables instead.
Cloudflare Workers Deploy
- Use Node
20.18.1or newer before packaging or deploying the worker.
nvm use
- Build the worker bundle:
npm run build
- Set worker secrets:
wrangler secret put FE_API_URL
wrangler secret put FE_API_KEY
wrangler secret put FE_CALDAV_URL
wrangler secret put FE_CARDDAV_URL
wrangler secret put FE_ALIAS_USER
wrangler secret put FE_ALIAS_PASS
wrangler secret put MCP_AUTH_TOKEN
- Optionally verify the Cloudflare bundle locally without deploying:
npm run cf:deploy:dry
- Deploy:
npm run cf:deploy
- Use the deployed MCP endpoint at your worker URL plus
/mcp.GET /healthcan stay public;/mcpshould stay behind a bearer token.
Connect to Notion Custom Agent
As of March 8, 2026, Notion documents custom MCP connections for Custom Agents on Business and Enterprise plans only, with workspace-admin enablement for custom MCP servers.
- Ask a workspace admin to enable custom MCP servers in
Settings -> Notion AI -> AI connectors. - Open the Custom Agent, then go to
Settings -> Tools & Access. - Choose
Add connection -> Custom MCP server. - Paste your public MCP URL ending in
/mcp. - Set any display name you want.
- Add header-based auth:
Authorization: Bearer <MCP_AUTH_TOKEN>
- Save the connection, then enable the tools you want.
- Keep write tools on
Always askunless you explicitly want automatic writes.
Each Custom Agent needs its own MCP connection.
Troubleshooting
401 Unauthorized: the bearer token sent by the client does not matchMCP_AUTH_TOKEN.404 Not found: use the/mcppath for MCP traffic, not the worker root URL.- No tools show up in Notion: refresh the agent settings page, confirm the server is reachable, and reconnect if needed.
- Calendar or contacts fail: verify
FE_ALIAS_USER,FE_ALIAS_PASS,FE_CALDAV_URL, andFE_CARDDAV_URL. - Mail search feels too large:
email_list_inboxandemail_searchintentionally clamp results and return metadata-only summaries.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。