Instantly邮件自动化
STDIO管理邮件营销和数据分析的MCP服务器
管理邮件营销和数据分析的MCP服务器
Streamlined MCP server for Instantly.ai v2 API with HTML paragraph formatting - Professional email campaigns with automatic HTML conversion, bulletproof creation workflow, and complete pagination. Perfect for AI-powered email automation and cold outreach.
Transform plain text into professional email formatting automatically:
\n\n
(double line breaks) → HTML <p>
paragraph tags\n
line breaks → <br>
tags within paragraphs{{firstName}}
, {{companyName}}
maintainedBefore (Plain Text):
Hi {{firstName}},
Welcome to our newsletter!
Best regards,
The Team
After (HTML Paragraphs):
<p>Hi {{firstName}},</p> <p>Welcome to our newsletter!</p> <p>Best regards,<br>The Team</p>
The Instantly MCP Server v1.0.0 brings Instantly.ai's email automation capabilities directly into Claude and other AI assistants with professional HTML formatting. This enables reliable AI-powered management of:
Perfect for sales teams, marketers, and developers who want professional-looking email campaigns with automatic formatting.
Add to your MCP settings configuration:
{ "mcpServers": { "instantly": { "command": "npx", "args": ["instantly-mcp", "--api-key", "YOUR_INSTANTLY_API_KEY"] } } }
npm install npm run build
{ "mcpServers": { "instantly": { "command": "node", "args": ["/path/to/instantly-mcp/dist/index.js", "--api-key", "YOUR_INSTANTLY_API_KEY"] } } }
list_campaigns
- List all campaigns with optional filters and paginationget_campaign
- Get details of a specific campaigncreate_campaign
- 🎨 HTML FORMATTING! Create campaigns with automatic HTML paragraph conversionupdate_campaign
- Update an existing campaignactivate_campaign
- Activate a campaignget_campaign_analytics
- Get analytics for campaignsget_campaign_analytics_overview
- Get analytics overview for all campaignslist_accounts
- 🔑 PREREQUISITE! List sending accounts (required before creating campaigns)create_account
- Create a new sending accountupdate_account
- Update a sending accountget_warmup_analytics
- Get warmup analytics for an accountlist_leads
- List leads with filters and paginationcreate_lead
- Create a new leadupdate_lead
- Update a leadmove_leads
- Move leads between campaigns or listslist_lead_lists
- List all lead lists with paginationcreate_lead_list
- Create a new lead listsend_email
- Send a single emaillist_emails
- List emails with filters and paginationverify_email
- Verify if an email address is validlist_api_keys
- List all API keyscreate_api_key
- Create a new API keyNEW in v1.0.0! Create campaigns with automatic HTML paragraph formatting for superior visual rendering:
# Step 1: Get available sending accounts (REQUIRED) list_accounts { "limit": 100 } # Step 2: Create campaign with automatic HTML conversion create_campaign { "name": "Q2 2025 Outreach Campaign", "subject": "Quick question about {{companyName}}", "body": "Hi {{firstName}},\n\nI noticed {{companyName}} is expanding rapidly.\n\nWould you be interested in:\n- Streamlining your processes\n- Reducing operational costs\n- Improving team efficiency\n\nBest regards,\nThe Team", "email_list": ["[email protected]", "[email protected]"] }
✨ Automatic HTML Conversion Result:
<p>Hi {{firstName}},</p> <p>I noticed {{companyName}} is expanding rapidly.</p> <p>Would you be interested in:<br>- Streamlining your processes<br>- Reducing operational costs<br>- Improving team efficiency</p> <p>Best regards,<br>The Team</p>
✅ Professional Email Formatting - Automatic HTML paragraph conversion
✅ Superior Visual Rendering - Clear paragraph separation in Instantly interface
✅ 100% API Success Rate - Comprehensive validation prevents errors
✅ Personalization Preserved - All {{variables}}
maintained perfectly
✅ Backward Compatible - Existing plain text workflows enhanced automatically
✅ Security First - Safe HTML tags only, unsafe content blocked
Once configured, you can use natural language to interact with Instantly. All campaigns automatically get professional HTML paragraph formatting:
Input: "Create a campaign with this message: Hi {{firstName}}, Welcome to our newsletter! We have exciting updates. Best regards, The Team"
Result: Automatically converted to professional HTML paragraphs with proper <p>
tags and <br>
line breaks for optimal visual rendering in Instantly.
\n\n
→ <p>
tags, \n
→ <br>
tags<p>
, <br>
, <br/>
) allowed{{firstName}}
, {{companyName}}
variables maintained<p>
- Paragraph tags for proper text separation<br>
- Line break tags within paragraphs<br/>
- Self-closing line break tags# Install dependencies npm install # Run in development mode npm run dev -- --api-key YOUR_API_KEY # Build for production npm run build
# Install dependencies npm install # Run the test script tsx test-endpoints.ts --api-key YOUR_API_KEY
# Build the project npm run build # Test with MCP Inspector npx @modelcontextprotocol/inspector dist/index.js -- --api-key YOUR_API_KEY
{ "mcpServers": { "instantly": { "command": "node", "args": ["/absolute/path/to/dist/index.js", "--api-key", "YOUR_API_KEY"] } } }
The MCP server includes all major Instantly v2 API endpoints:
For full API documentation, visit: https://developer.instantly.ai/
MIT
See CHANGELOG.md for complete version history.
Pull requests are welcome! Please ensure all tests pass and follow the existing code style.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This package is automatically published to npm when a new version tag is pushed:
npm version patch|minor|major git push --tags
See CHANGELOG.md for a list of changes.
Created by bcharleson