DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to have an AI agent draft and review a newsletter issue with Mailcheap

Let Claude Code, Codex or Cursor write an issue through the MCP server and fix review warnings before you approve a send.

  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor

Authorization notice. Mailcheap is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Credentials. An API key given to an agent lets it act on your newsletter account, so use the narrowest key you can and rotate it after the session.

Who it is forA newsletter writer who already works in an AI coding or chat agent and wants to draft issues from notes without leaving it.

The problemWriting each issue by hand in a separate dashboard, then fixing review warnings one by one, slows down a weekly newsletter.

The outcomeA drafted issue that passes the review checklist, ready for you to approve, with the send step still under your control.

What you need first

  • A MailCheap Cloud account at mailcheap.ai, or a server with Node.js 22+ and a MongoDB database for self-hosting
  • For self-hosting: an Amazon SES or PostShiba account, plus Upstash QStash for background sending
  • A list of contacts with consent to email them, or an export CSV from beehiiv, Substack, Mailchimp or another supported tool
  • An AI agent or API key if you want an agent to write or send issues

Steps

  1. Create an API key in your MailCheap account and connect Claude Code, Codex or Cursor to the MCP server with it.
  2. Give the agent your notes and the newsletter it should write for.
  3. Ask the agent to run the review checks and fix subject, preview text, unsubscribe link, Gmail's 100 KB clip, postal address and sender.
  4. Read the draft in the dashboard and confirm the content is yours before anything else happens.
  5. Approve the send yourself. MCP marks sending as an action that can't be undone, so the agent asks you first.

Prompt for your agent

Using the marclou/mailcheap MCP server with my API key and my notes in <notes file>, draft an issue for the newsletter <newsletter name>. Fix all review warnings and report the remaining ones. Do not send it. Verify that the draft exists in the dashboard and that the review list is empty or explained.

Caveat. The agent can prepare and check an issue, but the README says sending is an action agents must confirm with you, so keep that approval step in place.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page