SalesHandy MCP Server
A Model Context Protocol (MCP) server for SalesHandy API integration. This server provides tools for managing campaigns, templates, contacts, and more through the SalesHandy API.
Features
The server provides several tools for managing SalesHandy resources:
User Profile Management
Get current user profile information
Campaign Management
List all campaigns with filtering
Create new campaigns
Update campaign status
Template Management
List all email templates
Create new email templates
Contact Management
List all contacts
Create new contacts
Update existing contacts
Installation
Clone this repository
Install dependencies:
npm installBuild the project:
npm run build
Configuration
The server requires the following configuration:
API Key: Your SalesHandy API key
Get it from your SalesHandy account settings
Required for all API operations
Base URL (optional):
Default: https://api.saleshandy.com/api/v1
Can be overridden if needed
Usage
Start the server:
npm startConnect to the server using an MCP client:
const client = new McpClient({ config: { apiKey: "your-saleshandy-api-key" } });Use the available tools:
// Get user profile const profile = await client.tools.getUserProfile(); // List campaigns const campaigns = await client.tools.listCampaigns({ status: "running", page: 1, limit: 10 });
Development
Install development dependencies:
npm installStart development server with hot reload:
npm run dev
Deployment
The server can be deployed using Smithery:
Ensure your
smithery.yamlis properly configuredDeploy using Smithery's deployment tools
Provide the required configuration (API key) during deployment
API Reference
Tools
getUserProfile
Get current user profile information.
listCampaigns
List all campaigns with optional filtering.
Parameters:
status: Campaign status (draft, scheduled, running, paused, completed)
page: Page number
limit: Items per page
search: Search term
createCampaign
Create a new campaign.
Parameters:
name: Campaign name
subject: Email subject
templateId: Template ID
scheduleTime: Schedule time (ISO format)
contacts: List of contact IDs
updateCampaignStatus
Update campaign status.
Parameters:
campaignId: Campaign ID
status: New status
listTemplates
List all email templates.
Parameters:
page: Page number
limit: Items per page
createTemplate
Create a new email template.
Parameters:
name: Template name
subject: Email subject
body: Email body (HTML)
listContacts
List all contacts.
Parameters:
page: Page number
limit: Items per page
search: Search term
createContact
Create a new contact.
Parameters:
email: Contact email
firstName: First name
lastName: Last name
company: Company name
tags: Contact tags
updateContact
Update an existing contact.
Parameters:
contactId: Contact ID
email: Contact email
firstName: First name
lastName: Last name
company: Company name
tags: Contact tags
License
MIT
This server cannot be installed