Instantly-MCP
The Instantly MCP Server allows the integration of Instantly.ai's email automation features into AI assistants using Model Context Protocol. It simplifies the management of email campaigns, contacts, and analytics, which is beneficial for sales and marketing teams.
Instantly MCP Server
MCP server for Instantly.ai v2 API - Manage email campaigns, accounts, leads, and analytics through Claude AI. Perfect for email automation and cold outreach campaigns.
Overview
The Instantly MCP Server is a powerful integration that brings Instantly.ai's email automation capabilities directly into Claude and other AI assistants through the Model Context Protocol. This enables AI-powered management of:
- 📧 Email campaigns and sequences
- 👥 Account management and warmup
- 📊 Analytics and performance tracking
- 🎯 Lead management and segmentation
- ✉️ Email sending and verification
- 🔑 API key management
Perfect for sales teams, marketers, and developers who want to automate their cold outreach workflows using AI.
Quick Start
Using with npx (no installation required)
Add to your MCP settings configuration:
{
"mcpServers": {
"instantly": {
"command": "npx",
"args": ["instantly-mcp", "--api-key", "YOUR_INSTANTLY_API_KEY"]
}
}
}
Local Installation
- Clone and install:
npm install
npm run build
- Add to your MCP settings:
{
"mcpServers": {
"instantly": {
"command": "node",
"args": ["/path/to/instantly-mcp/dist/index.js", "--api-key", "YOUR_INSTANTLY_API_KEY"]
}
}
}
Getting Your API Key
- Log in to Instantly.ai
- Navigate to Settings > Integrations > API
- Generate or copy your API key
Available Tools
Campaign Management
list_campaigns
- List all campaigns with optional filters and paginationget_campaign
- Get details of a specific campaigncreate_campaign
- Create a new email campaignupdate_campaign
- Update an existing campaignactivate_campaign
- Activate a campaign
Analytics
get_campaign_analytics
- Get analytics for campaignsget_campaign_analytics_overview
- Get analytics overview for all campaigns
Account Management
list_accounts
- List all sending accounts with paginationcreate_account
- Create a new sending accountupdate_account
- Update a sending accountget_warmup_analytics
- Get warmup analytics for an account
Lead Management
list_leads
- List leads with filters and paginationcreate_lead
- Create a new leadupdate_lead
- Update a leadmove_leads
- Move leads between campaigns or lists
Lead Lists
list_lead_lists
- List all lead lists with paginationcreate_lead_list
- Create a new lead list
Email Operations
send_email
- Send a single emaillist_emails
- List emails with filters and pagination
Email Verification
verify_email
- Verify if an email address is valid
API Key Management
list_api_keys
- List all API keyscreate_api_key
- Create a new API key
Example Usage
Once configured, you can use natural language to interact with Instantly:
- "List all my active campaigns"
- "Show me the analytics for campaign XYZ"
- "Create a new campaign called 'Summer Sale'"
- "List all my sending accounts"
Development
# Install dependencies
npm install
# Run in development mode
npm run dev -- --api-key YOUR_API_KEY
# Build for production
npm run build
Testing
Local Testing
- Test the API endpoints directly:
# Install dependencies
npm install
# Run the test script
tsx test-endpoints.ts --api-key YOUR_API_KEY
- Test with MCP Inspector:
# Build the project
npm run build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector dist/index.js -- --api-key YOUR_API_KEY
- Test with Claude Desktop: Add to your Claude Desktop configuration:
{
"mcpServers": {
"instantly": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js", "--api-key", "YOUR_API_KEY"]
}
}
}
Endpoint Documentation
The MCP server includes all major Instantly v2 API endpoints:
- Campaigns: Create, list, update, activate campaigns
- Analytics: Get campaign analytics and overview
- Accounts: Manage sending accounts and warmup
- Leads: Create, list, update, move leads
- Lead Lists: Create and manage lead lists
- Emails: Send emails and list email history
- Email Verification: Verify email addresses
- API Keys: Manage API keys
For full API documentation, visit: https://developer.instantly.ai/
License
MIT
Features
- 🚀 Full Instantly v2 API coverage
- 📄 Pagination support for all list endpoints
- ⚡ Rate limiting with informative messages
- 🔧 Comprehensive error handling
- 📝 TypeScript support
- 🔐 Secure API key handling
- 📚 Example scripts included
Recent Updates
v2.0.13 (Latest)
- Fixed campaign creation with improved field structure
- Added timezone and days configuration for campaigns
- Enhanced debug logging for troubleshooting
- Fallback mechanism for different API structures
See for complete version history.
Known Issues
- Campaign creation may require specific account configuration
- Some endpoints return empty results despite data existing (working on fixes)
- Email sending requires verified sender accounts
Contributing
Pull requests are welcome! Please ensure all tests pass and follow the existing code style.
- 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
Support
- Issues: GitHub Issues
- Documentation: Instantly API Docs
- MCP Protocol: Model Context Protocol
Publishing
This package is automatically published to npm when a new version tag is pushed:
npm version patch|minor|major
git push --tags
Support
- For issues or questions, please open an issue on GitHub
- For Instantly API documentation, visit: https://developer.instantly.ai/
Changelog
See for a list of changes.
Author
Created by bcharleson