MCP Hey logo

MCP Hey

by Sealjay

Local stdio MCP access to Hey.com email for reading, searching, sending, triage, labels, drafts, and screener management.

Install MCP Hey

Run the project’s own setup commands, in order.

Setup steps from the project

Sealjay/mcp-hey installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/Sealjay/mcp-hey.git
    
  2. 2. Run
    cd mcp-hey
    
  3. 3. Install
    bun install
    
  4. 4. Install
    uv pip install -r auth/requirements.txt
    
  5. 5. Sign in
    bun run dev   # first run: log in to Hey in the webview, then Ctrl+C
    
  6. 6. Add to Claude Code
    claude mcp add --transport stdio hey --scope user -- bun run /absolute/path/to/mcp-hey/src/index.ts
    

Overview

Sealjay/mcp-hey connects MCP clients to a Hey.com inbox through a local Bun/TypeScript process and Hey web endpoints. It uses a Python webview helper to capture session cookies, stores them locally, and exposes 37 tools over stdio for email, drafts, triage, labels, collections, search, and screener actions. Reach for it when an agent needs read/write access to one Hey account without a cloud relay. Because it relies on Hey's unofficial web interface, access can break after changes to the service.

Use cases

  • Read and search a Hey.com inbox from an MCP client
  • Send, reply to, forward, and draft email
  • Triage messages with Hey-specific inbox actions
  • Organize mail with labels and collections
  • Manage Hey's screener and sender groups

Key features

  • 37 stdio MCP tools for Hey.com email
  • Local webview authentication with cached session cookies
  • SQLite message, thread, and full-text search cache
  • Support for labels, collections, drafts, and screener actions
  • Sender-group filtering and tagging
  • Local-only operation without a network listener or telemetry

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/16 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Hey works

What Sealjay/mcp-hey does

Sealjay/mcp-hey gives an MCP-compatible agent local access to a Hey.com mailbox. Its 37 tools cover inbox-style folders, the feed, paper trail, trash, spam, drafts, sent mail, set-aside messages, reply-later items, the screener, labels, collections, search, and cached mailbox data.

Write operations include sending, replying, forwarding, saving and editing drafts, deleting drafts, changing message status, moving messages, muting threads, and marking messages seen or unseen. Additional tools handle Hey-specific actions such as bubbling messages up, screening senders, and retrieving calendar invites or attachments.

How it works

The MCP process is implemented in Bun and TypeScript and communicates through stdio. A Python helper using the system webview opens Hey's own login page when a valid session is unavailable. It saves session cookies in data/hey-cookies.json with restrictive file permissions, then reuses them on later runs until they expire.

A local SQLite cache stores messages and threads and supports full-text search. Returned messages include a sender_group value describing where Hey normally delivers mail from that sender. Several listing and search tools can optionally filter by sender group. The HEY_SENDER_GROUPS setting controls whether sender groups are filtered from the cache, looked up during each request, or omitted.

Requests use browser-like headers, write actions obtain a fresh CSRF token, and the client backs off when Hey reports rate limiting. The server can start and advertise its tools before login; the first operation that needs Hey triggers authentication when required.

Setup and configuration

Install Bun 1.1 or newer, Python 3.10 or newer, and a Hey.com account. After cloning the project, install JavaScript dependencies with bun install and the authentication helper's dependencies with uv pip install -r auth/requirements.txt.

Register the server as a stdio MCP process using an absolute path to src/index.ts:

config.json
{
  "mcpServers": {
    "hey": {
      "command": "bun",
      "args": ["run", "/absolute/path/to/mcp-hey/src/index.ts"]
    }
  }
}

Claude Desktop, Cursor, and Claude Code are documented client targets. GUI applications may not inherit the shell's executable path, so use Bun's absolute path if the client cannot spawn bun. Docker can run the server, but the container does not include the login helper; mount an existing data/hey-cookies.json file instead.

Tools and capabilities

The tool surface includes:

  • Reading email lists, summaries, individual messages, attachments, and calendar invites.
  • Searching cached mail and checking cache status.
  • Listing and applying labels and collections.
  • Sending, replying, forwarding, and managing drafts.
  • Setting aside messages, scheduling reply-later status, moving mail, changing read status, and muting threads.
  • Bubbling messages up or removing them from the bubble-up view.
  • Screening senders and managing Hey's screener.

Limitations and notes

Hey.com has no public API, so the server uses web endpoints and browser-shaped requests. Changes to Hey's site or session behavior may require fixes, and unusual request patterns can trigger anti-abuse controls. Reduce concurrent calls or wait if sustained 429 responses occur.

The server handles one account per instance and provides no calendar event creation, attachment uploads, or real-time notifications. It parses English Hey interface text, so a non-English Hey locale is unsupported. The locally stored session cookie is sensitive, and email content can contain prompt injection; review agent-proposed external or destructive actions before approving them.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Hey

Sealjay/mcp-hey is an MCP server that connects AI clients to a Hey.com inbox through local web endpoints. Its main tools read, search, send, reply to, forward, draft, label, triage, and screen email, while a local webview captures session cookies for authentication without a cloud relay.

Install Bun 1.1+, Python 3.10+, and the project dependencies, then register `src/index.ts` as a stdio MCP server using an absolute path. Run `bun install` and install `auth/requirements.txt` with uv before starting it.

It authenticates through Hey's own page in a Python system webview and stores session cookies locally in `data/hey-cookies.json`. The helper runs when cookies are missing or expired, and later server runs reuse the saved session until it expires.

Yes, Cursor is a documented client for Sealjay/mcp-hey. Add the server to Cursor's `~/.cursor/mcp.json` configuration and use an absolute path; if Cursor cannot find Bun, configure the executable's absolute path as well.

It can read and search messages, send or reply to email, manage drafts, apply labels, work with collections, triage messages, download attachments, retrieve calendar invites, and manage the screener. It does not create calendar events or upload attachments.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Hey AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sealjay-mcp-hey?style=directory)](https://allmcps.com/mcp/sealjay-mcp-hey)
HTML Embed
<a href="https://allmcps.com/mcp/sealjay-mcp-hey"><img src="https://allmcps.com/api/badge/sealjay-mcp-hey?style=directory" alt="MCP Hey on AllMCPs" /></a>