# How to integrate MailChannels MCP with Atomic Agent

```json
{
  "title": "How to integrate MailChannels MCP with Atomic Agent",
  "toolkit": "MailChannels",
  "toolkit_slug": "mail_channels",
  "framework": "Atomic Agent",
  "framework_slug": "atomic-agent",
  "url": "https://composio.dev/toolkits/mail_channels/framework/atomic-agent",
  "markdown_url": "https://composio.dev/toolkits/mail_channels/framework/atomic-agent.md",
  "updated_at": "2026-11-17T05:39:08.798Z"
}
```

## Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including MailChannels.
This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a MailChannels account. See the [Atomic Agent documentation](https://atomicagent.io/docs/?cta_placement=atomic-agent-docs) for installation instructions.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/mail_channels).

## Also integrate MailChannels with

- [ChatGPT](https://composio.dev/toolkits/mail_channels/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/mail_channels/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/mail_channels/framework/hermes-agent)

## TL;DR

### How Atomic Agent connects to MailChannels
Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.
Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

## Connect MailChannels to Atomic Agent

### Connect MailChannels to Atomic Agent
- Sign up or sign in to the [Composio dashboard](https://dashboard.composio.dev/?cta_placement=atomic-agent-api-key). Copy your API key.
- In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
- Ask Atomic Agent to do something in MailChannels. It searches Composio for the right tool.
- On first use, open the sign-in link returned in the chat. Connect your MailChannels account, then return to Atomic Agent to continue.
### Headless setup
Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

```bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
```

## What is the MailChannels MCP server, and what's possible with it?

The MailChannels MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your MailChannels account. It provides structured and secure access to transactional email delivery, domain authentication, DKIM management, sub-accounts, suppression lists, usage reporting, metrics, and webhooks, so your agent can send email, manage sending domains and credentials, monitor delivery performance, and handle webhook events on your behalf.
- Transactional email delivery: Have your agent send email to specified recipients or queue messages for asynchronous delivery.
- Domain and DKIM management: Direct your agent to check domain authentication, create or list DKIM keys, rotate active keys, and register custom tracking domains.
- Sub-account administration: Let the agent create, suspend, activate, and delete sub-accounts, set monthly sending limits, and manage their API keys and SMTP passwords.
- Suppression list control: Instruct your agent to add recipients to suppression lists, review suppression entries, or remove suppression protection for a recipient.
- Delivery reporting and webhooks: Have your agent retrieve usage, volume, performance, engagement, recipient behavior, and sender metrics, then enroll webhooks and review or resend webhook deliveries.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `MAIL_CHANNELS_ACTIVATE_SUB_ACCOUNT` | Activate Sub-account | Reactivate a suspended sub-account, restoring its ability to send email. |
| `MAIL_CHANNELS_CHECK_DOMAIN_AUTHENTICATION` | Check Domain Authentication | Check a sending domain's DKIM, SPF, sender-domain DNS, and Domain Lockdown configuration without changing it. |
| `MAIL_CHANNELS_CREATE_DKIM_KEY` | Create DKIM Key | Create a MailChannels-managed DKIM key pair and return the public key and DNS record that must be published. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT` | Create Sub-account | Create a sub-account under the connected parent account. This creates persistent tenant state but no API or SMTP credential. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT_API_KEY` | Create Sub-account API Key | Explicitly create a sensitive API credential for a sub-account. The returned secret may be shown only once; store it securely because tool or application logs can expose it. This provider-created credential is output for the sub-account and is never connection authentication for this action. |
| `MAIL_CHANNELS_CREATE_SUB_ACCOUNT_SMTP_PASSWORD` | Create Sub-account SMTP Password | Explicitly create a sensitive SMTP credential for a sub-account. The returned password may be shown only once; store it securely because tool or application logs can expose it. This provider-created credential is output for SMTP use and is never connection authentication for this action. |
| `MAIL_CHANNELS_CREATE_SUPPRESSION_ENTRIES` | Create Suppression Entries | Atomically add one or more recipients to the connected account's suppression list, optionally also applying them to all associated sub-accounts. |
| `MAIL_CHANNELS_DELETE_ALL_WEBHOOKS` | Delete All Webhooks | Permanently remove every webhook endpoint enrolled for the connected MailChannels account. This destructive action has no endpoint selector and must not be used when any existing webhook configuration should be retained. |
| `MAIL_CHANNELS_DELETE_CUSTOM_TRACKING_DOMAIN` | Delete Custom Tracking Domain | Permanently delete one custom tracking domain by exact hostname and scope. This destructive action immediately breaks tracking and unsubscribe URLs in previously sent messages that use the domain. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT` | Delete Sub-account | Permanently and irreversibly delete one MailChannels sub-account by its exact handle. This destructive action cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_API_KEY` | Delete Sub-account API Key | Permanently revoke one sub-account API key by exact sub-account handle and key ID. This explicit destructive credential deletion cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_LIMIT` | Delete Sub-account Limit | Delete a sub-account's explicit monthly send limit. This destructive quota reset makes the sub-account inherit the parent account's remaining send capacity. |
| `MAIL_CHANNELS_DELETE_SUB_ACCOUNT_SMTP_PASSWORD` | Delete Sub-account SMTP Password | Permanently revoke one sub-account SMTP password by exact sub-account handle and password ID. This explicit destructive credential deletion cannot be undone. |
| `MAIL_CHANNELS_DELETE_SUPPRESSION_ENTRY` | Delete Suppression Entry | Destructively remove one source, or every source, of suppression protection for a recipient. This permits future matching email delivery to that recipient. |
| `MAIL_CHANNELS_ENROLL_WEBHOOK` | Enroll Webhook | Enroll the account's single external endpoint for MailChannels event callbacks. This changes the webhook configuration and causes future events to be sent to that endpoint; delete the existing enrollment before replacing it. |
| `MAIL_CHANNELS_GET_ENGAGEMENT_METRICS` | Get Engagement Metrics | Retrieve account message open and click metrics, optionally filtered by time range and campaign. |
| `MAIL_CHANNELS_GET_PERFORMANCE_METRICS` | Get Performance Metrics | Retrieve account processed, delivered, hard-bounced, and complaint metrics. |
| `MAIL_CHANNELS_GET_RECIPIENT_BEHAVIOUR_METRICS` | Get Recipient Behaviour Metrics | Retrieve account recipient unsubscribe metrics, optionally filtered by time range and campaign. |
| `MAIL_CHANNELS_GET_SUB_ACCOUNT_LIMIT` | Get Sub-account Limit | Return a sub-account's configured monthly send limit; -1 means it inherits the parent account's remaining capacity. |
| `MAIL_CHANNELS_GET_SUB_ACCOUNT_USAGE` | Get Sub-account Usage | Return a sub-account's usage, effective monthly limit, and current billing-period dates. |
| `MAIL_CHANNELS_GET_USAGE` | Get Usage | Return the connected account's usage, effective monthly limit, and current billing-period dates. |
| `MAIL_CHANNELS_GET_VOLUME_METRICS` | Get Volume Metrics | Retrieve account processed, delivered, and dropped message volume metrics. |
| `MAIL_CHANNELS_GET_WEBHOOK_PUBLIC_KEY` | Get Webhook Public Key | Retrieve the MailChannels public key identified by a webhook's Signature-Input header for signature verification. |
| `MAIL_CHANNELS_LIST_CUSTOM_TRACKING_DOMAINS` | List Custom Tracking Domains | Return one page of custom domains registered for click tracking, open tracking, or unsubscribe links. |
| `MAIL_CHANNELS_LIST_DKIM_KEYS` | List DKIM Keys | Return one page of DKIM keys for a domain, optionally filtered by selector or lifecycle status. |
| `MAIL_CHANNELS_LIST_SENDER_METRICS` | List Sender Metrics | Return one page of campaign or sub-account delivery metrics sorted by message volume. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNT_API_KEYS` | List Sub-account API Keys | Return one page of API-key metadata for a sub-account. MailChannels redacts the key values. Returned provider-created keys are sub-account credentials, not connection authentication for this action. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNTS` | List Sub-accounts | Return one page of sub-accounts owned by the connected parent account, including handle, company name, and enabled state. |
| `MAIL_CHANNELS_LIST_SUB_ACCOUNT_SMTP_PASSWORDS` | List Sub-account SMTP Passwords | List SMTP-password metadata for a sub-account. MailChannels returns only IDs and partially redacted passwords. These provider-created passwords are sub-account credentials, not connection authentication for this action. |
| `MAIL_CHANNELS_LIST_SUPPRESSION_ENTRIES` | List Suppression Entries | Return one page of suppression entries for the connected account, optionally filtered by recipient, source, or creation date range. |
| `MAIL_CHANNELS_LIST_WEBHOOK_BATCHES` | List Webhook Batches | Return one page of webhook delivery batches, optionally filtered by creation time, response category, or endpoint. If no time filters are supplied, MailChannels uses the last three days. |
| `MAIL_CHANNELS_LIST_WEBHOOKS` | List Webhooks | List all webhook endpoints enrolled for the connected MailChannels account. |
| `MAIL_CHANNELS_REGISTER_CUSTOM_TRACKING_DOMAIN` | Register Custom Tracking Domain | Register an owner-controlled hostname for click tracking, open tracking, or unsubscribe links. DNS TXT ownership verification and a CNAME to links.mailchannels.net may be required before registration completes. |
| `MAIL_CHANNELS_RENDER_EMAIL` | Render Email | Render email content without delivering a message to any recipient. This action always uses MailChannels dry-run mode and has no delivery effect. |
| `MAIL_CHANNELS_RESEND_WEBHOOK_BATCH` | Resend Webhook Batch | Synchronously create one new external delivery attempt for an existing webhook batch. This sends events again to the batch's webhook endpoint. A successful action response means MailChannels completed the attempt, not that the endpoint returned a 2xx status; inspect status_code. |
| `MAIL_CHANNELS_ROTATE_DKIM_KEY` | Rotate DKIM Key | Irreversibly rotate an active DKIM key: mark the existing key as rotated and create a replacement key. Publish the returned replacement DNS record before the old key's signing grace period expires or DKIM validation may fail. |
| `MAIL_CHANNELS_SEND_EMAIL` | Send Email | Deliver email to the specified recipients. This action always performs real, irreversible delivery and consumes recipient quota; use RENDER_EMAIL to preview without delivery. |
| `MAIL_CHANNELS_SEND_EMAIL_ASYNCHRONOUS` | Send Email Asynchronously | Queue email for real, irreversible external delivery to the specified recipients. A successful response confirms queue acceptance only, not eventual delivery, and the operation consumes recipient quota. |
| `MAIL_CHANNELS_SET_SUB_ACCOUNT_LIMIT` | Set Sub-account Limit | Set a sub-account's monthly send limit; setting zero prevents it from sending. |
| `MAIL_CHANNELS_SUSPEND_SUB_ACCOUNT` | Suspend Sub-account | Suspend a sub-account and immediately prevent it from sending email until it is explicitly reactivated. This is a service-affecting operation. |
| `MAIL_CHANNELS_UPDATE_CUSTOM_TRACKING_DOMAIN` | Update Custom Tracking Domain | Change the label or active status of one custom tracking domain identified by its exact hostname and event scope. At least one of name or status is required. Reactivation may require DNS verification. |
| `MAIL_CHANNELS_UPDATE_DKIM_KEY_STATUS` | Update DKIM Key Status | Irreversibly revoke, retire, or begin rotating an existing DKIM key. This changes which key can sign mail and may require coordinated DNS changes. |
| `MAIL_CHANNELS_VALIDATE_ALL_WEBHOOKS` | Validate All Webhooks | Create and send a test callback to every enrolled webhook endpoint, then report whether each endpoint returned a 2xx response. This has an external side effect: every enrolled endpoint receives a test event. |

## Supported Triggers

None listed.

## Troubleshooting

### Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

### Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

### Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See [Composio pricing](/pricing/platform) for the current limits that apply to your connection.

## Complete Code

None listed.

## Conclusion

### Use MailChannels from Atomic Agent
With your account connected, ask Atomic Agent to work with MailChannels in natural language. You can connect more apps through the same Composio integration as you need them.
Visit the [Atomic Agent website](https://atomicagent.io/?cta_placement=atomic-agent-site) or inspect the [Atomic Agent source code](https://github.com/AtomicBot-ai/atomic-agent?cta_placement=atomic-agent-repo).

## How to build MailChannels MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/mail_channels/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/mail_channels/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/mail_channels/framework/hermes-agent)

## Related Toolkits

- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Codeinterpreter](https://composio.dev/toolkits/codeinterpreter) - Codeinterpreter is a Python-based coding environment with built-in data analysis and visualization. It lets you instantly run scripts, plot results, and prototype solutions inside supported platforms.
- [GitHub](https://composio.dev/toolkits/github) - GitHub is a code hosting platform for version control and collaborative software development. It streamlines project management, code review, and team workflows in one place.
- [1password](https://composio.dev/toolkits/_1password) - 1Password is a password manager and digital vault for storing logins, secrets, notes, and secure documents. It helps individuals and teams protect credentials, share access safely, and reduce password risk.
- [Ably](https://composio.dev/toolkits/ably) - Ably is a real-time messaging platform for live chat and data sync in modern apps. It offers global scale and rock-solid reliability for seamless, instant experiences.
- [Abuselpdb](https://composio.dev/toolkits/abuselpdb) - Abuselpdb is a central database for reporting and checking IPs linked to malicious online activity. Use it to quickly identify and report suspicious or abusive IP addresses.
- [Alchemy](https://composio.dev/toolkits/alchemy) - Alchemy is a blockchain development platform offering APIs and tools for Ethereum apps. It simplifies building and scaling Web3 projects with robust infrastructure.
- [Algolia](https://composio.dev/toolkits/algolia) - Algolia is a hosted search API that powers lightning-fast, relevant search experiences for web and mobile apps. It helps developers deliver instant, typo-tolerant, and scalable search without complex infrastructure.
- [Anakin](https://composio.dev/toolkits/anakin_io) - Anakin is a web automation platform offering scraping, crawling, search, and browser automation. Use it to extract structured data, automate site tasks, and monitor web changes reliably.
- [Anchor browser](https://composio.dev/toolkits/anchor_browser) - Anchor browser is a developer platform for AI-powered web automation. It transforms complex browser actions into easy API endpoints for streamlined web interaction.
- [AnyAPI](https://composio.dev/toolkits/anyapi) - AnyAPI is a marketplace of utility APIs for validation, currency conversion, holidays, documents, and web data. It brings common application workflows together through one practical API platform.
- [Apiflash](https://composio.dev/toolkits/apiflash) - Apiflash is a website screenshot API for programmatically capturing web pages. It delivers high-quality screenshots on demand for automation, monitoring, or reporting.
- [Apiverve](https://composio.dev/toolkits/apiverve) - Apiverve delivers a suite of powerful APIs that simplify integration for developers. It's designed for reliability and scalability so you can build faster, smarter applications without the integration headache.
- [Appcircle](https://composio.dev/toolkits/appcircle) - Appcircle is an enterprise-grade mobile CI/CD platform for building, testing, and publishing mobile apps. It streamlines mobile DevOps so teams ship faster and with more confidence.
- [Appdrag](https://composio.dev/toolkits/appdrag) - Appdrag is a cloud platform for building websites, APIs, and databases with drag-and-drop tools and code editing. It accelerates development and iteration by combining hosting, database management, and low-code features in one place.
- [Appveyor](https://composio.dev/toolkits/appveyor) - AppVeyor is a cloud-based continuous integration service for building, testing, and deploying applications. It helps developers automate and streamline their software delivery pipelines.
- [Authyo](https://composio.dev/toolkits/authyo) - Authyo is a REST API service for passwordless authentication, OTP verification, session management, and transactional notifications. Use it to add secure login flows and user verification without building auth infrastructure from scratch.
- [AWS Marketplace MCP](https://composio.dev/toolkits/aws_marketplace_mcp) - AWS Marketplace MCP provides MCP access to AWS Marketplace's cloud software, data, and services catalog. Use it to discover, compare, and evaluate 30K+ AWS Marketplace listings faster.
- [Azure Monitor Activity Log](https://composio.dev/toolkits/azure_monitor_activity_log) - Azure Monitor Activity Log is Azure's service that records management and control-plane events for a subscription. Use it to audit changes, troubleshoot issues, and track resource operations across your Azure resources.
- [Backendless](https://composio.dev/toolkits/backendless) - Backendless is a backend-as-a-service platform for mobile and web apps, offering database, file storage, user authentication, and APIs. It helps developers ship scalable applications faster without managing server infrastructure.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and MailChannels MCP?

With a standalone MailChannels MCP server, the agents and LLMs can only access a fixed set of MailChannels tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from MailChannels and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Atomic Agent?

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right MailChannels tools.

### Can I manage the permissions and scopes for MailChannels while using Tool Router?

Yes, absolutely. You can configure which MailChannels scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your MailChannels data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
