Skip to main content

MCP server for the DropMail temporary email service

Project description

dropmail-mcp

MCP server for DropMail — gives AI assistants tools to create temporary email addresses and receive mail automatically.

Installation

Install with pip or pipx (recommended for use in MCP client configs):

pip install dropmail-mcp
# or
pipx install dropmail-mcp

You can also run without installing using uvx — handy for a quick test in the terminal:

uvx dropmail-mcp --token YOUR_TOKEN

Note: uvx may not work reliably when launched as a subprocess by MCP clients (Claude Desktop, VS Code, Copilot CLI). If your client shows "Connection closed", use pip/pipx instead.

Configuration

Variable Flag Default Description
DROPMAIL_TOKEN --token Required. Obtain at dropmail.me/api
DROPMAIL_BASE_URL --base-url https://dropmail.me/api/graphql GraphQL endpoint
DROPMAIL_LOG_LEVEL --log-level NONE Log level: DEBUG INFO WARNING ERROR NONE
DROPMAIL_LOG_FILE --log-file stderr Path to log file (default: stderr)

To use the public service, no DROPMAIL_BASE_URL override is needed — it defaults to https://dropmail.me/api/graphql.

DEBUG log level records the full GraphQL request (minified query + variables) and response body after each call — useful for troubleshooting.

Claude Desktop setup

{
  "mcpServers": {
    "dropmail": {
      "command": "dropmail-mcp",
      "env": {
        "DROPMAIL_TOKEN": "your-token-here"
      }
    }
  }
}

VS Code / GitHub Copilot IDE setup

Add to .vscode/mcp.json in your workspace (VS Code 1.99+, agent mode):

{
  "servers": {
    "dropmail": {
      "type": "stdio",
      "command": "dropmail-mcp",
      "env": {
        "DROPMAIL_TOKEN": "${input:dropmail-token}"
      }
    }
  },
  "inputs": [
    {
      "id": "dropmail-token",
      "type": "promptString",
      "description": "DropMail API token (obtain at dropmail.me/api/)",
      "password": true
    }
  ]
}

VS Code will prompt for the token securely — it is never stored in plain text.

GitHub Copilot CLI setup

Edit ~/.copilot/mcp-config.json (create if it doesn't exist):

{
  "mcpServers": {
    "dropmail": {
      "command": "dropmail-mcp",
      "env": {
        "DROPMAIL_TOKEN": "${DROPMAIL_TOKEN}"
      }
    }
  }
}

Set DROPMAIL_TOKEN in your shell profile (~/.bashrc, ~/.zshrc, etc.), or run /mcp add inside the Copilot CLI session to configure it interactively.

Tools

Tool What it does
list_domains List available @domain options
create_session Create a session and get a temporary address
get_session Check session state, addresses, and mail count
get_inbox List received emails with subject and text preview
wait_for_email Block until a new email arrives (up to 180 s)
read_email Read full email: text body, attachments, download URLs
add_address Add a second address to an existing session
restore_address Restore an old address using its restore key
delete_address Remove an address from a session

Example prompts

  • "Give me a temp email and wait for the confirmation from example.com"
  • "Sign me up for the newsletter at example.com using a throwaway address"
  • "I need to sign up for a product trial on example.com — give me a .com temp email, wait for their email, and pull out the activation code"
  • "Check if the password reset email has arrived and give me the link"

Running tests

cd mcp
pip install -e ".[dev]"

# Unit tests only
pytest tests/test_client.py tests/test_tools.py

# Integration tests (requires a running DropMail instance)
DROPMAIL_TOKEN=mytoken pytest tests/test_integration.py

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dropmail_mcp-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dropmail_mcp-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file dropmail_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: dropmail_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dropmail_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a0bf9d22634123e0b3b17be1d9e826077494fabbce4781438acd7efd32a21fd7
MD5 df4bfae9cdc83519772519108ebae065
BLAKE2b-256 e892e76be8fab86d48852bded642bfa7513c44321313b99541196e60525bf799

See more details on using hashes here.

File details

Details for the file dropmail_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dropmail_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dropmail_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf6225845371c13aae0aed7e41b2188a347f79c438a52c6b95455d3f229520f
MD5 4db3a648d823d7d2eba1a34d3a9f3a22
BLAKE2b-256 159a9edb0da40ede2d9bafba15bd6b12f257405b6993453ded1e62ce70898e7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page