Skip to content
Mailcycle
Get started
Email SDKs

An email SDK for the language you already write.

Each Mailcycle email SDK is a library over one email API. Create email addresses, receive and read mail, send replies, verify webhooks and stream events, from Python, TypeScript, Go, Rust, Java, C#, PHP, Ruby or Swift. Every SDK does the encryption on your machine, so mail is encrypted on arrival with your own keys and opened in your code.

  • Nine languages
  • Apache 2.0
  • Free tier, no card
Pick a language

Install, sign in, receive mail.

Each page has a quickstart, a webhook handler for that language's web frameworks, and how to test email verification with its test runner.

TypeScript email SDK

mailcycle-sdk on npm

Node.js 20 or later

npm install mailcycle-sdk

Python email SDK

mailcycle on PyPI

Python 3.10 or later

pip install mailcycle

Go email SDK

mailcycle.email/go on the Go module proxy

Go 1.26 or later

go get mailcycle.email/go

Rust email SDK

mailcycle on crates.io

Rust 1.75 or later

cargo add mailcycle --features events

Java email SDK

email.mailcycle:mailcycle on Maven Central

Java 17 or later

implementation("email.mailcycle:mailcycle:0.5.1")

.NET email SDK

Mailcycle on NuGet

.NET 8 or later

dotnet add package Mailcycle

PHP email SDK

mailcycle/mailcycle on Mailcycle's Composer repository

PHP 8.1 or later

composer require mailcycle/mailcycle+1 step

Ruby email SDK

mailcycle on RubyGems

Ruby 3.1 or later

gem install mailcycle

Swift email SDK

Mailcycle on Swift Package Manager

Swift 5.9 or later

.package(url: "https://mailcycle.email/swift/mailcycle.git", from: "0.5.0")
Not writing code?Use the email MCP server
One API, nine languages

The same calls, in each language's own idiom.

Every SDK covers the whole API: email addresses, inbound mail, sending with attachments, webhooks and their signatures, the live event stream, API keys, sessions and device pairing. Method names follow the language, so it is wait_for in Python and WaitForAsync in C#.

The loop every SDK runs
sign in            the recovery phrase, or an API key
create an address  receives mail at once, sealed to your key
wait for mail      the event stream, or a webhook
read it            text, HTML, attachments, decrypted locally
reply              threaded under the original
AI agents

Use the MCP server.

An AI agent in Claude, Cursor, Codex, VS Code or any other MCP client gets an inbox of its own through MCP, with tools to wait for, read and reply to mail.

The email MCP server
Questions

About the SDKs.

A library that wraps an email API in your own language, so you call functions rather than writing HTTP requests. Mailcycle's SDKs create email addresses, receive and read the mail that arrives, send and reply, verify webhooks and listen for events, and do the decryption on your machine.

Nine: Python, JavaScript and TypeScript, Go, Rust, Java, C# and .NET, PHP, Ruby and Swift. Each is published to its language's usual registry and documented with a guide.

Yes. The Go email library is the module mailcycle.email/go, installed with go get. It wraps the whole Mailcycle email API in plain structs and errors: create an address, block until the next message arrives with WaitFor, read its text and attachments, and reply in the thread. It needs Go 1.26 or later, and the Go SDK page has a quickstart.

Yes. One call to the Mailcycle API, or one SDK method such as mc.addresses.create(), creates a new email address on a shared domain or on your own domain, and it receives mail at once. Each address has its own key, mail to it is stored encrypted, and deleting it frees its place on your plan.

Yes. They share one published encryption format, so an address created from Python can be read from Go, a message sent from Ruby shows up in the app, and a team can mix languages on one account.

Yes. The API is JSON over HTTPS, so any language can call it, and the encryption format and its test vectors are published, so a client can be written against them. For an AI agent, the MCP server needs no SDK at all.

Yes. Every SDK is open source under the Apache 2.0 licence. The Free plan needs no card and receives mail on 3 addresses; sending starts on Personal, API keys and webhooks on Operator, and sending from an API key on Scale.

Give your code an address of its own.

Create an account, create an address, and read what arrives. The free tier needs no card.