> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs & Libraries

> Official Mailofly tools for every language. Install once, send forever.

# SDKs & Dev Tools 🛠️

Don't want to deal with raw HTTP requests? Fair enough. We've got official libraries for all the popular languages. Install, plug in your API key, and start sending.

***

## Pick your language

> [card] [Node.js & TypeScript](/docs/sdks/typescript)
>
> Full TypeScript support, autocomplete for everything, ESM and CommonJS builds.
>
> ```bash theme={null}
> npm install @mailofly/node
> ```

> [card] [AI / MCP Server](/docs/mcp-server/introduction.md)
>
> Connect Cursor, Claude, or any AI assistant directly to Mailofly with no setup.
>
> ```bash theme={null}
> npx -y @mailofly/mcp
> ```

> [card] [Python](/docs/sdks/python)
>
> Works with async and sync code. Pydantic validation included.
>
> ```bash theme={null}
> pip install mailofly
> ```

> [card] [Go](/docs/sdks/go)
>
> Fast, idiomatic Go client built for concurrent workloads.
>
> ```bash theme={null}
> go get github.com/teamredevs/mailofly-go
> ```

> [card] [PHP](/docs/sdks/php)
>
> PSR-compliant, works seamlessly with Laravel and Symfony.
>
> ```bash theme={null}
> composer require mailofly/mailofly
> ```

> [card] [Dart & Flutter](/docs/sdks/dart)
>
> Runs on mobile (Flutter) and server-side Dart.
>
> ```bash theme={null}
> dart pub add mailofly
> ```

***

## All SDKs come with

> [card] Full type safety
>
> Request, response, and error types — no guessing what fields exist.

> [card] Smart routing
>
> Multi-account support and automatic identity selection built right in.

> [card] Auto-retry
>
> Transient failures and rate limits are retried automatically with backoff.

***

## Quick comparison

| Language | Package | Where to get it | Minimum version |
| :- | :- | :- | :- |
| Node.js / TypeScript | `@mailofly/node` | [npm](https://www.npmjs.com/package/@mailofly/node) | Node 18+ |
| AI / MCP Server | `@mailofly/mcp` | [npm](https://www.npmjs.com/package/@mailofly/mcp) | Node 18+ |
| Python | `mailofly` | [PyPI](https://pypi.org/project/mailofly/) | Python 3.8+ |
| Go | `mailofly-go` | [GitHub](https://github.com/teamredevs/mailofly-go) | Go 1.20+ |
| PHP | `mailofly/mailofly` | [Packagist](https://packagist.org/packages/mailofly/mailofly) | PHP 8.1+ |
| Dart / Flutter | `mailofly` | [pub.dev](https://pub.dev/packages/mailofly) | Dart 3.0+ |

***

## Using a language we don't have an SDK for yet?

No problem — you can hit our REST API directly with any HTTP client:

```bash theme={null}
curl -X POST https://api.mailofly.com/emails \
  -H "Authorization: Bearer mfly_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@yourdomain.com",
    "to": ["user@example.com"],
    "subject": "Hello from Mailofly!",
    "html": "<p>It works! 🎉</p>"
  }'
```

Check the [API Reference](/docs/api/emails.md) for all available endpoints.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.