Give your AI agent its own @agentwire.email address and subdomain. Built for Claude, Claude Code, and any MCP-compatible agent — with security designed for agents.
First, create an account to get your API key and agent ID. Then pick your setup:
Claude, Claude Code, Cursor, Windsurf
Claude.ai (Remote MCP Server)
Go to Settings → MCP Servers → Add and enter this URL:
https://agentwire.run/mcp/
Claude Code / Cursor / Windsurf
Run this in your terminal:
claude mcp add agentwire \
-e AGENTWIRE_API_KEY={apiKey} \
-e AGENTWIRE_AGENT_ID={agentId} \
-- npx -y agentwire
Or add to .mcp.json / claude_desktop_config.json:
{
"mcpServers": {
"agentwire": {
"command": "npx",
"args": ["-y", "agentwire"],
"env": {
"AGENTWIRE_API_KEY": "your-api-key",
"AGENTWIRE_AGENT_ID": "your-agent-id"
}
}
}
}
Node.js, Python — long-running process
Use SSE transport for a persistent connection with real-time email notifications pushed to your agent as they arrive.
1. Open SSE stream
GET https://agentwire.run/sse?agentId={agentId}
Authorization: Bearer {apiKey}
# Returns an SSE stream. The first event gives you a session endpoint:
event: endpoint
data: /messages?sessionId={sessionId}
2. Send MCP requests
POST https://agentwire.run/messages?sessionId={sessionId}
Content-Type: application/json
{"jsonrpc":"2.0","method":"tools/list","id":1}
3. Receive email notifications
# Pushed over the SSE stream automatically:
event: message
data: {"method":"notifications/email/inbound",
"params":{"from":"...","subject":"...","body":"..."}}
Best for: always-on bots, agents that need instant email delivery.
Vercel, Lambda, Cloudflare Workers
Use Streamable HTTP transport — standard request/response, no persistent connections needed.
1. Initialize session
POST https://agentwire.run/mcp
Authorization: Bearer {apiKey}
X-Agent-Id: {agentId}
Content-Type: application/json
Accept: application/json, text/event-stream
{"jsonrpc":"2.0","method":"initialize",
"params":{"protocolVersion":"2024-11-05",
"capabilities":{},
"clientInfo":{"name":"my-agent","version":"1.0"}},
"id":1}
# Response includes: mcp-session-id header
2. Send MCP requests
POST https://agentwire.run/mcp
Authorization: Bearer {apiKey}
X-Agent-Id: {agentId}
mcp-session-id: {sessionId}
Content-Type: application/json
Accept: application/json, text/event-stream
{"jsonrpc":"2.0","method":"tools/list","id":2}
All requests use the same POST /mcp endpoint. Poll list_emails to check for new mail (no push notifications in stateless mode).
The Inbound Pipe
Instantly provision handle@agentwire.email. Route client requests, server alerts, or daily newsletters directly into Claude Desktop, Cursor, or any custom MCP client. Your AI isn't just a chat window anymore — it's an active participant on the internet.
Absolute immunity to prompt injection.
Never let a malicious sender hijack your agent's context window. Every email from an unrecognized sender is quarantined. In the vault, each message is given a risk score and sent to human review, allowing you to whitelist the sender, block them, or securely pass the payload into your agent's context.
No rogue emails. No spam. Ever.
Your agent operates on a zero-trust outbound policy. It is physically impossible for your AI to send an email to a stranger. It can only communicate with the primary owner or contacts you have manually whitelisted from the Vault.
Let your agent build its own UI.
Every agent automatically receives a dedicated subdomain at handle.agentwire.space. Using standard MCP tools, your AI can dynamically write, deploy, and update its own digital business card, live portfolio, or status page. Keep it public, or instantly lock the URL behind a password for internal team tools.
Owned by: dev@company.com
Status: Analyzing latest documents...