GhosterMail Open GhosterMail

GhosterMail MCP server

Give your AI assistant its own private email. It can create mailboxes, read incoming messages, pick up verification codes and send email — without touching your personal inbox.

Server URL https://api.ghostermail.com/mcp

What you can do

Requirements

Without Full Access you can still connect and sign in, but every tool returns a message with a link to the upgrade page instead of a result.

Connect

Add the server URL to your client and sign in with your GhosterMail account when the browser opens. The client receives and refreshes its access tokens on its own — no config files, packages or local processes are needed.

Claude (web, Desktop and mobile)

  1. Open Settings → Connectors and choose Add custom connector.
  2. Name: GhosterMail, URL: https://api.ghostermail.com/mcp.
  3. Select Connect and sign in to GhosterMail.
  4. Enable the connector in a chat from the tools menu.

Claude Code

claude mcp add --transport http ghostermail https://api.ghostermail.com/mcp

Then run /mcp, select ghostermail and choose Authenticate.

ChatGPT

  1. In Settings → Apps & Connectors, enable developer mode under Advanced settings, then choose Create.
  2. Enter https://api.ghostermail.com/mcp, choose OAuth and sign in to GhosterMail.

Cursor

Install in Cursor, or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "ghostermail": { "url": "https://api.ghostermail.com/mcp" }
  }
}

VS Code

Install in VS Code, or add to .vscode/mcp.json:

{
  "servers": {
    "ghostermail": { "type": "http", "url": "https://api.ghostermail.com/mcp" }
  }
}

Other clients

Any client that supports remote MCP servers with OAuth works with the same URL. A generic configuration:

{
  "mcpServers": {
    "ghostermail": { "type": "http", "url": "https://api.ghostermail.com/mcp" }
  }
}

Using an API key instead of signing in

Clients that can send custom headers can use a GhosterMail API key (create one on the API → Keys page). A read-only key allows only the reading tools.

claude mcp add --transport http ghostermail https://api.ghostermail.com/mcp \
  --header "X-API-KEY: <your key>"

Tools

Tool What it does Access
list_accounts Lists your mailboxes with their ids, addresses and folders. Read
list_messages Lists messages in a folder, newest first, with sender, subject and text filters. Read
read_message Returns a full message as clean text with links, or the original HTML. Marks it as read. Write
wait_for_message Waits for a new incoming message (up to the timeout you set) — ideal for codes and links. Read
create_accounts Creates mailboxes by name, or several with random names. Write
send_message Sends an email from one of your mailboxes, optionally scheduled for later. Write
delete_accounts Permanently deletes mailboxes together with their messages. Destructive

Every tool declares MCP annotations, so clients can run reading tools freely and ask you to confirm sending and deleting.

Example prompts

Security & data

Troubleshooting

The tools say Full Access is required

MCP tools work only with Full Access. Upgrade on the Payments page, then reconnect the client so it gets a fresh token.

The sign-in window does not open or fails

Remove the connector, add it again and complete the sign-in in the same browser. Make sure pop-ups are allowed.

“401 Unauthorized” with an API key

Check that the key is active, not expired, belongs to an account with Full Access and is sent in the X-API-KEY header without extra spaces.

Sending or deleting does not work with an API key

Read-only keys allow only listing and reading. Create a key without the read-only option for write tools.

Support

Questions or problems? Write to info@ghostermail.com or use the contact form.