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

No install needed if you use uvx:

uvx dropmail-mcp --token YOUR_TOKEN

Or install globally:

pip install dropmail-mcp
dropmail-mcp --token YOUR_TOKEN

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": "uvx",
      "args": ["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": "uvx",
      "args": ["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": "uvx",
      "args": ["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"
  • "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.0.tar.gz (10.7 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.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dropmail_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 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.0.tar.gz
Algorithm Hash digest
SHA256 1bbe213936f337cccf2043ca87561931c89aab3b19cee52e3c95915d4b78bb05
MD5 121ce3736eb697fd77ef242e3e8e6275
BLAKE2b-256 9f320caf8001090ae04a89d0397bbb03c04f71509a47a84f1e018fdf613fce91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dropmail_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4406d698d12d02616bc4288fbd2f695e0819f8dacbccd08ce6ffbde614cf15
MD5 0a41c6b1a30ee3fca3cef64b98f45d6f
BLAKE2b-256 e45c8e99a0c68663284c21b95602857ec16d5731a0dac49ec06d763815c39412

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