Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

MCP server for Forward Email that provides tools to manage email inbox, send mail, calendar events, and contacts.

README.md

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_KEY is used for API-key-only actions such as sending mail.
  • MCP_AUTH_TOKEN is required for both Node.js and Cloudflare Worker HTTP entrypoints and protects /mcp with bearer authentication. GET /health remains public.

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

  1. To pin the current public release:
git checkout v0.1.2
  1. Use Node 20.18.1 or newer. The repo pins 20.18.1 in .nvmrc and requires at least that version in package.json.
nvm use
  1. Install dependencies:
npm install
  1. Create local config from the example and fill in real values:
cp .env.example .env
  1. Build the server:
npm run build
  1. 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.

For the Node.js Streamable HTTP entrypoint, set MCP_TRANSPORT=http and a non-empty MCP_AUTH_TOKEN. The process refuses to start if the token is missing or blank. MCP clients must send Authorization: Bearer <MCP_AUTH_TOKEN> to /mcp; GET /health does not require authentication.

Optional: 1Password SDK Mode

The runtime also supports resolving secrets directly from 1Password via the 1Password SDK.

  1. Set AUTH_MODE=1password-sdk.
  2. Export OP_SERVICE_ACCOUNT_TOKEN.
  3. Replace credential values with op://vault/item/field or op://vault/item/section/field references.

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

  1. Use Node 20.18.1 or newer before packaging or deploying the worker.
nvm use
  1. Build the worker bundle:
npm run build
  1. 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
  1. Optionally verify the Cloudflare bundle locally without deploying:
npm run cf:deploy:dry
  1. Deploy:
npm run cf:deploy
  1. Use the deployed MCP endpoint at your worker URL plus /mcp. As with the Node.js HTTP entrypoint, GET /health is public and /mcp requires Authorization: Bearer <MCP_AUTH_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.

  1. Ask a workspace admin to enable custom MCP servers in Settings -> Notion AI -> AI connectors.
  2. Open the Custom Agent, then go to Settings -> Tools & Access.
  3. Choose Add connection -> Custom MCP server.
  4. Paste your public MCP URL ending in /mcp.
  5. Set any display name you want.
  6. Add header-based auth:
Authorization: Bearer <MCP_AUTH_TOKEN>
  1. Save the connection, then enable the tools you want.
  2. Keep write tools on Always ask unless 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 match MCP_AUTH_TOKEN.
  • 404 Not found: use the /mcp path 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, and FE_CARDDAV_URL.
  • Mail search feels too large: email_list_inbox and email_search intentionally clamp results and return metadata-only summaries.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Communication servers.