Overview
Two integration patterns:- Trigger Zaps from Heroku events - When an app crashes, scales, or deploys, trigger a Zap
- Use Heroku tools in Zaps - Call Heroku MCP tools from Zapier workflows
Pattern 1: Trigger Zaps from Heroku Events
Set Up Webhook Trigger
Create a Zap with a Webhook trigger:- In Zapier, create a new Zap
- Choose Webhooks by Zapier as the trigger
- Select Catch Hook
- Copy the webhook URL
Configure Heroku Log Drain
Send Heroku events to your Zapier webhook:Parse Events in Zapier
Use a Code step to parse Heroku log events:Example: Alert on App Crashes
Create a Zap that sends Slack alerts when your app crashes:- Trigger: Webhooks by Zapier (Catch Hook)
- Filter: Only continue if
isErroris true - Action: Slack - Send Channel Message
- Channel: #alerts
- Message: “Heroku Alert: “
Pattern 2: Call Heroku MCP from Zapier
Create a Proxy API
Deploy a simple API that Zapier can call to execute MCP tools:Use in Zapier Workflow
- Action: Webhooks by Zapier - POST
- URL:
https://my-mcp-proxy.herokuapp.com/mcp/heroku_scale_app - Headers:
- Content-Type: application/json
- X-Zapier-Secret: your-zapier-secret
- Data:
Example Workflows
Auto-Scale on Slack Command
When someone posts/scale my-app 3 in Slack:
- Trigger: Slack - New Message in Channel (matching /scale pattern)
- Action: Code - Parse the command
- Action: Webhooks - POST to MCP proxy
- Action: Slack - Reply with result
Daily Backup Report
Generate a daily report of all your Heroku apps:- Trigger: Schedule - Every day at 9am
- Action: Webhooks - POST to MCP proxy (
heroku_list_apps) - Action: Code - Format the response
- Action: Email - Send digest
Deploy on GitHub Release
When a GitHub release is published:- Trigger: GitHub - New Release
- Filter: Only if release is not a pre-release
- Action: Webhooks - POST to MCP proxy (
heroku_deploy) - Action: Slack - Notify #deployments channel