# Mailgent

> Mailgent provides AI agents with a real email address, encrypted vault, calendar, verifiable DID identity, and USDC wallet — all provisioned with a single API call.

Mailgent gives AI agents a complete operational identity: a real inbox, an encrypted credential vault, 2FA/TOTP support, a calendar, a decentralized identifier (DID), and a USDC wallet — all provisioned in one API call. It is designed for developers building autonomous agents on frameworks like LangChain, CrewAI, LlamaIndex, and MCP-compatible clients such as Claude and Cursor.

## What It Is

Mailgent is an API-first identity and communication platform built specifically for AI agents. Rather than requiring developers to wire together separate email providers, secret managers, and payment systems, Mailgent bundles six capabilities under a single agent identity: mail, vault, 2FA/TOTP, calendar, a did:web decentralized identity with Ed25519 signing, and a USDC wallet on Base. The platform exposes these capabilities as REST endpoints and as ready-made MCP tools, so agents can send mail, store credentials, generate one-time codes, book calendar events, sign requests, and pay for x402-priced APIs without any human in the loop.

## Six Capabilities, One Identity

Mailgent's architecture treats identity as the root of trust and hangs all other capabilities off it:

- **Mail** — A real inbox at `name@mailgent.dev` with DKIM-verified sending, threading, and labeling over a clean API or MCP.
- **Vault** — An encrypted credential store for API keys, tokens, and secrets, retrieved per-scope and never logged.
- **2FA / TOTP** — Time-based one-time codes the agent can generate to pass 2FA gates, with backup codes stored in the vault.
- **Calendar** — Event creation, availability management, and iCal feed sharing so agents can coordinate time.
- **Identity (DID)** — A `did:web` identity with an Ed25519 keypair for signing requests and proving provenance.
- **USDC Wallet** — A funded wallet on Base that lets agents pay x402-priced URLs per call under spending mandates set by the developer.

## Developer Workflow

Provisioning follows a three-step pattern the docs describe as "provision, connect, operate." A single `POST` to `https://api.mailgent.dev/v0/agent-signup` returns a platform key and an agent identity object containing an email address, a raw API key, and a full set of scopes (`mail:send`, `vault:read`, `calendar:write`, `identity:sign`, `payments:spend`, and more). The agent key is then plugged into the MCP server via `npx -y @mailgent-dev/mcp`, instantly exposing tools like `mail_send`, `vault_store`, `calendar_create`, and `identity_sign`. Every tool is scope-gated by the agent's key, enforcing least-privilege access by default. The MCP server can be used hosted at `api.mailgent.dev/mcp` or run locally.

## Integrations and Target Frameworks

Mailgent explicitly targets agents built on Claude, OpenAI, Gemini, LangChain, CrewAI, LlamaIndex, MCP, Cursor, n8n, and Vercel. The platform is MCP-native, meaning it works in any MCP client without additional glue code. A CLI and SDK are also available for shell agents, cron jobs, and custom code.

## Use Cases

The platform's use-case page lists twelve agent archetypes that benefit from an inbox and identity:

- Personal assistant agents that triage mail and manage calendars
- Finance and procurement agents that receive invoices and make payouts under spending limits
- QA agents that receive verification emails and read 2FA codes to test full signup flows
- Research agents that sign up for sources and pay for what they read
- Customer support and community manager agents that reply in-thread from an address they own
- Recruiting agents that email candidates and schedule interviews
- Sales outreach agents that send, catch replies, and book demos
- DevOps on-call agents that catch alert emails and pull credentials

## Current Status

Mailgent is actively available with a self-serve free tier requiring no credit card. The pricing page shows a monthly/yearly billing toggle with a "2 months free" annual offer, and the console is live at `console.mailgent.dev`. The GitHub organization at `github.com/mailgent-dev` hosts the public MCP server package (`@mailgent-dev/mcp`). The product is positioned as production-ready for individual developers and scales to fleet deployments for startups and enterprises.

## Features
- Real email inbox at name@mailgent.dev with DKIM-verified sending
- Encrypted credential vault for API keys and secrets
- 2FA/TOTP code generation for passing authentication gates
- Calendar creation, availability management, and iCal feed
- did:web decentralized identity with Ed25519 keypair for signing
- USDC wallet on Base for x402 per-call payments
- Single API call provisioning of full agent identity
- MCP-native tools: mail_send, vault_store, calendar_create, identity_sign
- Scope-gated least-privilege access per agent key
- Hosted MCP server or local self-hosted option
- CLI and SDK for shell agents and cron jobs
- Spending mandates for agent wallet controls
- Audit logs for agent actions
- Agent cards for fleet management

## Integrations
Claude, OpenAI, Gemini, LangChain, CrewAI, LlamaIndex, MCP, Cursor, n8n, Vercel

## Platforms
WEB, API, CLI, DEVELOPER_SDK

## Pricing
Freemium — Free tier available with paid upgrades

## Links
- Website: https://mailgent.dev
- Documentation: https://docs.mailgent.dev/
- Repository: https://github.com/mailgent-dev
- EveryDev.ai: https://www.everydev.ai/tools/mailgent
