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

# MCP Server

> Connect your AI coding assistants and autonomous agents to Mailofly using the Model Context Protocol.

# Mailofly MCP Server

Connect your AI coding assistants (Claude Desktop, Cursor, Antigravity IDE) and autonomous AI agents directly to Mailofly using the **Model Context Protocol (MCP)**.

***

## What Can AI Agents Do With Mailofly MCP?

With the Mailofly MCP server installed, your AI assistant can:

* **Send Emails**: *"Send an invitation to [alex@example.com](mailto:alex@example.com) using the beta-invite template."*
* **Inspect Logs**: *"Why did the email to [support@acme.com](mailto:support@acme.com) bounce 10 minutes ago?"*
* **Verify Domains**: *"Check if the DNS DKIM records for staging.acme.com have propagated."*
* **Manage Templates**: *"List all email templates and display the variables needed for the invoice template."*

***

## Installation

### Claude Desktop Configuration

Add the Mailofly server to your `claude_desktop_config.json`:

```json theme={null}
{
  "mcpServers": {
    "mailofly": {
      "command": "npx",
      "args": ["-y", "@mailofly/mcp-server"],
      "env": {
        "MAILOFLY_API_KEY": "mfly_live_your_api_key"
      }
    }
  }
}
```

***

## Available MCP Tools

| Tool               | Description                                                        |
| :----------------- | :----------------------------------------------------------------- |
| `send_email`       | Send a transactional email with HTML, text, or template variables. |
| `get_email_status` | Retrieve the delivery status and timeline for a message ID.        |
| `list_domains`     | View all domains and their DNS verification status.                |
| `verify_domain`    | Trigger an immediate DNS verification check for a domain.          |
| `list_templates`   | Fetch available templates and parameter schemas.                   |
| `query_logs`       | Search activity logs with status and recipient filters.            |


## Related topics

- [AI onboarding](/getting-started/ai-onboarding.md)
- [What sending feature to use?](/guides/sending/what-sending-feature-to-use.md)
- [Introduction](/sending/introduction.md)
- [Integrations](/integrations/index.md)
- [TLS](/domains/tls.md)
