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
Metadata
Release files for dropmail-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dropmail_mcp-0.1.1.tar.gz | 11.5 kB | Without provenance | Details for dropmail_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dropmail_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dropmail_mcp-0.1.1-py3-none-any.whl |
Total release size: 21.7 kB
Release files / dropmail_mcp-0.1.1.tar.gz
| Download URL | dropmail_mcp-0.1.1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0bf9d22634123e0b3b17be1d9e826077494fabbce4781438acd7efd32a21fd7
|
|
BLAKE2b-256 checksum How to use checksums |
e892e76be8fab86d48852bded642bfa7513c44321313b99541196e60525bf799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / dropmail_mcp-0.1.1-py3-none-any.whl
| Download URL | dropmail_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddf6225845371c13aae0aed7e41b2188a347f79c438a52c6b95455d3f229520f
|
|
BLAKE2b-256 checksum How to use checksums |
159a9edb0da40ede2d9bafba15bd6b12f257405b6993453ded1e62ce70898e7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for dropmail-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.