waw-mcp
Gives AI agents a real email identity, OTP reading, autonomous signup, and MCP server registry via a single stdio MCP connection.
README
waw-mcp — World Agentic Web MCP server
Automatic authentication & identity for AI agents over a single stdio MCP connection — so an agent creates its own accounts on third-party services, autonomously. The MCP server of WAW. It gives an agent:
- a real, valid email address as its identity (
mailbox_provision), - the ability to read OTP / verification codes sent to it (
otp_get), - autonomous signup to a website with a real browser (
signup_run), - page perception combining vision + UI tree (
browser_open/browser_observe…), - and discovery / publishing of MCP servers by intent (
registry_search/registry_register).
This package is the standalone, runs-anywhere distribution: one bundled file, started
by node over stdio, configured only by environment variables (no secret ever lives in
the repo). The full source, the HTTP/SMTP gateway that receives email, and the Docker demo
live in the main repo: https://github.com/Revens2/waw.
Validated end-to-end: an agent connects to this published package, provisions an owner-linked identity, signs up on a live site, receives the OTP via a signed webhook, and the account is created — with no human typing a single field. See Autonomous workflow below.
Install
npm install -g waw-mcp # global `waw-mcp` command
# or run without installing:
npx waw-mcp
better-sqlite3 (native) is installed automatically. For signup_run and the browser_*
tools you also need a browser once: npx playwright install chromium.
Configure (environment variables — never commit secrets)
| Variable | Required | Purpose |
|---|---|---|
VAULT_PASSPHRASE (or VAULT_MASTER_KEY) |
yes | Master secret for the encrypted vault. |
MAIL_DOMAIN |
recommended | Domain the agent provisions addresses on (e.g. agents.acme.com). |
DB_PATH |
no | SQLite path. Default ~/.waw/gateway.db. Point it at the WAW gateway's DB to receive real email. |
WEBHOOK_SIGNING_SECRET |
no | Only if pairing with the WAW gateway for inbound email. |
Use from an MCP client (Claude Code, etc.)
Add to your MCP config (e.g. .mcp.json or claude mcp add). Secrets go in the env
block, which lives in your local client config — not in any repo:
{
"mcpServers": {
"waw": {
"command": "waw-mcp",
"env": {
"VAULT_PASSPHRASE": "your-long-random-passphrase",
"MAIL_DOMAIN": "agents.example.com"
}
}
}
}
# CLI equivalent
claude mcp add waw --env VAULT_PASSPHRASE=… --env MAIL_DOMAIN=agents.example.com -- waw-mcp
Tools (15)
| Tool | Purpose |
|---|---|
mailbox_provision / mailbox_list |
Get (or list) a real @MAIL_DOMAIN address. |
mailbox_link_owner |
Link the human operator's real email to a mailbox. |
otp_get / emails_list |
Read the latest OTP / recent emails for a mailbox. |
signup_run |
Resumable, idempotent autonomous signup (Playwright + vault + OTP). |
browser_open / browser_observe / browser_fill / browser_click / browser_close |
Drive a page combining vision (screenshot) + UI tree (elements/refs/selectors). |
registry_search / registry_register / registry_list / registry_get |
Discover or publish MCP servers by intent. |
Autonomous workflow (the point)
An agent authenticates itself and creates an account with zero human form-filling:
1. mailbox_list → empty? run onboarding
2. mailbox_provision { ownerEmail } → identity: you.agent@MAIL_DOMAIN
3. signup_run { targetUrl, email, … } → fills the form with a vaulted password,
waits for the OTP, submits it
└─ OTP arrives via a signed webhook into the shared WAW DB, read back automatically
4. account created ✅ (resumable & idempotent — safe to retry)
5. registry_register { … } → publish the service so other agents find it
Hard sites where fixed selectors break? Swap step 3 for the perception loop:
browser_open → look at the screenshot + element refs → browser_fill/browser_click
by ref → browser_observe to verify → repeat.
First connection — link a human owner
On a fresh connection the agent calls mailbox_list; if it is empty, it asks the human
operator for their real email and provisions its primary identity with ownerEmail set to
it. The agent address is then derived from the owner's, and the ownership is recorded —
every autonomous identity traces back to a real human (accountability + recovery):
owner you@example.com → agent you.agent@MAIL_DOMAIN
The owner email is supplied at runtime by the human; it is never stored in this repo.
Receiving real email
This server reads OTPs from the WAW database. To make real messages land there, pair it
with the WAW gateway (main repo) sharing the same DB_PATH: the gateway exposes a
signed inbound webhook (Mailgun / Postmark / generic) and an optional self-hosted SMTP
server. See https://github.com/Revens2/waw for the gateway, the security model, and a
Dockerized end-to-end demo.
Security
Secrets come only from environment variables; .env is git-ignored and .env.example
carries placeholders. Vault data is AES-256-GCM encrypted at rest, OTP codes are never
returned over the wire, and logs redact sensitive fields. Full threat model in the main
repo's SECURITY.md.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.