Connect OpenCode to MailChannels
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in MailChannels
A preset of real MailChannels operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect MailChannels
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
MailChannels
14 toolsSend an email, or preview it with dry run.
Queue an email and return its request ID.
Read the connected account's monthly usage and sending limit.
Check DKIM, SPF and Domain Lockdown for a sender domain.
Find suppressed recipients by source or creation time.
Add one or more recipients to the account's suppression list.
Remove a suppression entry for a recipient, optionally by source.
Read email sending volume over time.
Read delivery and bounce performance over time.
Read engagement metrics, including opens and clicks.
Read recipient behaviour metrics.
List custom click, open or unsubscribe tracking domains.
Register a custom tracking domain and get any required DNS setup.
List enrolled delivery webhook endpoints for this account.
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use MailChannels with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with MailChannels wired in as tools. Connect your account and run.