Description
n8n-nodes-mailcoach
This is an n8n community node that lets you use Mailcoach in your n8n workflows. Mailcoach is a powerful email marketing platform for managing email lists, campaigns, automations, and transactional emails.
n8n is a fair-code licensed workflow automation platform.
Created by Pixel & Process – Your partner for digital marketing, web development, and process automation in LΓΌbeck, Germany. π©πͺ
Table of Contents
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Installation
npm install @pixelandprocess/n8n-nodes-mailcoach
Manual Installation (for development)
- Clone this repository
- Install dependencies:
npm install - Build the node:
npm run build - Link the node:
npm link - Navigate to your n8n installation and link the node:
npm link @pixelandprocess/n8n-nodes-mailcoach
Operations
This node supports the following resources and operations:
Email List
- Get Many: Retrieve all email lists
- Get: Get a specific email list by ID
- Create: Create a new email list
- Update: Update an existing email list
- Delete: Delete an email list
Campaign
- Get Many: Retrieve all campaigns
- Get: Get a specific campaign by ID
- Create: Create a new campaign
- Update: Update an existing campaign
- Delete: Delete a campaign
- Send: Send a campaign to subscribers
- Send Test: Send a test email for a campaign
- Get Opens: Get campaign open statistics
- Get Clicks: Get campaign click statistics
- Get Bounces: Get campaign bounce statistics
- Get Unsubscribes: Get campaign unsubscribe statistics
Subscriber
- Get Many: Retrieve all subscribers from an email list
- Get: Get a specific subscriber by ID
- Create: Add a new subscriber to an email list
- Update: Update an existing subscriber
- Delete: Remove a subscriber
- Confirm: Confirm a subscriber's email address
- Unsubscribe: Unsubscribe a subscriber
- Resubscribe: Resubscribe a previously unsubscribed subscriber
- Resend Confirmation: Resend the confirmation email to a subscriber
- Add Tags: Add tags to a subscriber
- Remove Tags: Remove tags from a subscriber
Tag
- Create: Create a new tag on an email list
- Update: Update an existing tag
- Delete: Delete a tag
Transactional Mail
- Get Many: Retrieve all transactional mails
- Get: Get a specific transactional mail by ID
- Get Templates: Retrieve all transactional mail templates
- Get Template: Get a specific template by ID
- Send: Send a transactional email
Automation
- Trigger: Trigger an automation for specific subscribers
Credentials
To use this node, you need to configure Mailcoach API credentials:
- In n8n, go to Credentials β New
- Search for "Mailcoach API"
- Enter the following information:
- API Endpoint: Your Mailcoach API endpoint (e.g.,
https://yourdomain.mailcoach.app/api) - API Token: Your Mailcoach API token
- API Endpoint: Your Mailcoach API endpoint (e.g.,
Getting Your API Credentials
- Log in to your Mailcoach account
- Go to Settings β API Tokens
- Create a new API token or use an existing one
- Copy the API token and endpoint URL
Compatibility
- Minimum n8n version: 0.180.0
- Tested against n8n version: 1.0.0+
- Mailcoach API: v1 (compatible with Mailcoach v6 and up, including Mailcoach Cloud)
Usage
Example: Create and Send a Campaign
- Add a Mailcoach node to your workflow
- Select Campaign as the resource
- Select Create as the operation
- Configure the campaign:
- Email List ID
- Campaign Name
- Subject
- HTML content or template
- Add another Mailcoach node
- Select Campaign as the resource
- Select Send as the operation
- Use the campaign ID from the previous step
Example: Add Subscriber with Tags
- Add a Mailcoach node to your workflow
- Select Subscriber as the resource
- Select Create as the operation
- Configure the subscriber:
- Email List ID
- Email address
- Additional fields (first name, last name, tags, etc.)
Example: Send Transactional Email
- Add a Mailcoach node to your workflow
- Select Transactional Mail as the resource
- Select Send as the operation
- Configure the email:
- Mail Name (template name)
- From email
- To email
- Replacements (template variables)
Resources
Development
Prerequisites
- Node.js (v18.10.0 or higher)
- npm
- Docker and Docker Compose (for testing)
Setup Development Environment
-
Clone the repository:
git clone https://github.com/Pixel-Process-UG/n8n-nodes-mailcoach.git cd n8n-nodes-mailcoach -
Install dependencies:
npm install -
Build the node:
npm run build -
Start the development environment:
chmod +x scripts/dev.sh ./scripts/dev.shOr manually with Docker Compose:
docker-compose up -d -
Access n8n at http://localhost:5678
- Username:
admin - Password:
admin123
- Username:
Watch Mode
To automatically rebuild on file changes:
npm run dev
Testing the Node
-
Build the node:
npm run build -
Start the test environment:
chmod +x scripts/test.sh ./scripts/test.sh -
In n8n, add the Mailcoach node to a workflow and test the operations
Project Structure
n8n-mailcoach/
βββ credentials/
β βββ MailcoachApi.credentials.ts # API credentials configuration
βββ nodes/
β βββ Mailcoach/
β βββ Mailcoach.node.ts # Main node implementation
β βββ mailcoach.svg # Node icon
βββ scripts/
β βββ dev.sh # Development helper script
β βββ test.sh # Testing helper script
βββ docker-compose.yml # Docker setup for local testing
βββ package.json # Package configuration
βββ tsconfig.json # TypeScript configuration
βββ README.md # This file
Available npm Scripts
npm run build: Build the nodenpm run dev: Watch for changes and rebuild automaticallynpm run format: Format code with Prettiernpm run lint: Lint code with ESLintnpm run lintfix: Auto-fix linting issues
Docker Environment
The project includes a Docker Compose setup for easy local testing:
- n8n: The workflow automation platform (port 5678)
- postgres: PostgreSQL database for n8n (optional, for production-like setup)
To start:
docker-compose up -d
To stop:
docker-compose down
To view logs:
docker-compose logs -f n8n
API Coverage
This node implements all major Mailcoach API endpoints:
β
Email Lists (CRUD operations)
β
Subscribers (CRUD + confirm/unsubscribe/resubscribe)
β
Campaigns (CRUD + send/test + analytics)
β
Tags (CRUD operations)
β
Transactional Mails (send + templates)
β
Automations (trigger)
Based on the official Mailcoach PHP SDK.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for detailed guidelines.
Quick start:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Publishing
Automated Publishing
This project uses GitHub Actions to automatically publish to npm when a new release is created:
- Update version in
package.json - Update
CHANGELOG.mdwith changes - Commit and push changes
- Create a tag:
git tag -a v1.0.1 -m "Release v1.0.1" git push origin v1.0.1 - Create GitHub Release – Publishing to npm happens automatically
GitHub Actions Workflows
- Build & Test – Runs on every push/PR
- Version Check – Ensures version is bumped in PRs
- Publish to npm – Automatic when GitHub release is created
Issues
If you encounter any issues or have questions, please open an issue on GitHub.
License
Author
Pixel Process UG
- Email: info@pixel-process.com
- GitHub: @Pixel-Process-UG
Acknowledgments
- Built on top of n8n
- Integrates with Mailcoach by Spatie
- Based on the Mailcoach PHP SDK
- Created by Pixel & Process – Digital agency for marketing, web development, and automation
About Pixel & Process
Pixel & Process is a digital agency based in LΓΌbeck, Germany, specializing in:
- π Performance Marketing – Google Ads, Meta, LinkedIn
- π¨ Web Design & Development – Next.js, React, modern web technologies
- βοΈ Process Automation – n8n, workflow automation, efficiency optimization
- π Open Source Solutions – GDPR-compliant, sustainable digital transformation
We build tools like this n8n-mailcoach node to help businesses automate their marketing and improve efficiency.
π Website: pixelandprocess.de
π§ Contact: info@pixel-process.com
π Location: LΓΌbeck, Germany
Note: This is a community-created node and is not officially maintained by n8n GmbH or Spatie.