New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

sendhustle-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sendhustle-mcp

SendHustle MCP server — give your AI agent native access to the SendHustle email API over the Model Context Protocol (stdio + HTTP).

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

sendhustle-mcp

The official SendHustle MCP server. It gives your AI agent native access to the SendHustle email API over the Model Context Protocol — send and manage emails, domains, contacts, audiences, and campaigns using natural language.

Supports both stdio (default) and HTTP (Streamable HTTP) transports, and runs with npx in any MCP client.

Install

No install needed — run it on demand with npx:

npx -y sendhustle-mcp

Prerequisites

Configuration

Set your API key via the SENDHUSTLE_API_KEY environment variable. Add the server to your MCP client of choice:

Claude Code

claude mcp add sendhustle -e SENDHUSTLE_API_KEY=sh_xxxxxxxxx -- npx -y sendhustle-mcp

Codex

codex mcp add sendhustle --env SENDHUSTLE_API_KEY=sh_xxxxxxxxx -- npx -y sendhustle-mcp

Cursor / Claude Desktop / Windsurf / Gemini CLI

{
  "mcpServers": {
    "sendhustle": {
      "command": "npx",
      "args": ["-y", "sendhustle-mcp"],
      "env": {
        "SENDHUSTLE_API_KEY": "sh_xxxxxxxxx"
      }
    }
  }
}

VS Code Copilot

Add to your VS Code settings.json:

{
  "mcp": {
    "servers": {
      "sendhustle": {
        "command": "npx",
        "args": ["-y", "sendhustle-mcp"],
        "env": { "SENDHUSTLE_API_KEY": "sh_xxxxxxxxx" }
      }
    }
  }
}

OpenCode

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "sendhustle": {
      "type": "local",
      "command": ["npx", "-y", "sendhustle-mcp"],
      "enabled": true,
      "environment": { "SENDHUSTLE_API_KEY": "sh_xxxxxxxxx" }
    }
  }
}

HTTP transport

Run the server over HTTP for remote or web-based integrations. In HTTP mode, each client authenticates by passing its SendHustle API key as a Bearer token.

npx -y sendhustle-mcp --http --port 3000

The server listens on http://127.0.0.1:3000 and exposes the MCP endpoint at POST /mcp (one JSON-RPC request per POST). You can also set the port with MCP_PORT.

claude mcp add sendhustle --transport http http://127.0.0.1:3000/mcp \
  --header "Authorization: Bearer sh_xxxxxxxxx"
{
  "mcpServers": {
    "sendhustle": {
      "url": "http://127.0.0.1:3000/mcp",
      "headers": { "Authorization": "Bearer sh_xxxxxxxxx" }
    }
  }
}

Options

FlagDescription
--httpUse Streamable HTTP transport instead of stdio (default: stdio).
--port <n>HTTP port when using --http (default: 3000, or MCP_PORT).
--key <key>SendHustle API key (stdio mode; HTTP mode uses the client Bearer token).
--sender <email>Default sender address from a verified domain.
--reply-to <email>Default reply-to address (repeatable).
-h, --helpShow usage and the tool list.
-v, --versionPrint the version.

Environment variables

VariableDescription
SENDHUSTLE_API_KEYYour API key. Required for stdio; optional for HTTP (clients pass it via Bearer token).
SENDHUSTLE_BASE_URLAPI base URL (default: https://api.sendhustle.com).
SENDER_EMAIL_ADDRESSDefault sender address from a verified domain (optional).
REPLY_TO_EMAIL_ADDRESSESComma-separated default reply-to addresses (optional).
MCP_PORTHTTP port when using --http (optional).

If you do not provide a sender, the send_email and create_campaign tools require a from argument on each call.

Tools

The server exposes 79 tools covering the full SendHustle API.

Emails

ToolDescription
send_emailSend a single email (HTML/text, CC/BCC, reply-to, scheduling, attachments, tags, idempotency key).
send_batch_emailsSend up to 100 emails in one request.
retrieve_emailRetrieve a sent email and its events by id.
list_emailsList sent emails with cursor pagination.
update_emailReschedule a scheduled email.
cancel_emailCancel a scheduled email before it sends.
list_email_attachmentsList a sent email's attachments.
get_email_attachmentRetrieve metadata + download URL for one attachment.

Received (inbound) emails

ToolDescription
list_received_emailsList inbound emails.
get_received_emailRetrieve a received email by id.
forward_received_emailForward a received email to other recipients.

Domains

ToolDescription
create_domainCreate a sender domain (returns DNS records to add).
list_domainsList sender domains.
get_domainRetrieve a domain and its DNS/verification status.
update_domainUpdate tracking / TLS / capabilities settings.
verify_domainTrigger domain verification.
delete_domainDelete a domain.
claim_domainClaim a domain verified elsewhere.

Audiences

ToolDescription
create_audienceCreate an audience (a named contact list).
list_audiencesList audiences.
get_audienceRetrieve an audience by id.
delete_audienceDelete an audience and its contacts.

Contacts

ToolDescription
create_contactCreate a contact within an audience.
list_contactsList contacts in an audience.
get_contactRetrieve a contact by id or email.
update_contactUpdate a contact by id or email.
delete_contactDelete a contact.
add_contact_to_segmentAdd a contact to a segment.
remove_contact_from_segmentRemove a contact from a segment.
get_contact_topicsGet a contact's topic subscriptions.
update_contact_topicsUpdate a contact's topic subscriptions.

Contact properties

ToolDescription
create_contact_propertyCreate a custom contact property / merge tag.
list_contact_propertiesList contact properties.
get_contact_propertyRetrieve a contact property by id.
update_contact_propertyUpdate a contact property's fallback value.
delete_contact_propertyDelete a contact property.

Segments

ToolDescription
create_segmentCreate a saved filter over an audience.
list_segmentsList segments.
get_segmentRetrieve a segment by id.
list_segment_contactsPreview the contacts a segment resolves to.
update_segmentUpdate a segment's name or filter.
delete_segmentDelete a segment.

Topics

ToolDescription
create_topicCreate a subscription topic.
list_topicsList topics.
get_topicRetrieve a topic by id.
update_topicUpdate a topic.
delete_topicDelete a topic.

Campaigns

ToolDescription
create_campaignCreate a campaign.
send_campaignSend a campaign now, or schedule it.
get_campaignRetrieve a campaign by id.
list_campaignsList campaigns.
update_campaignUpdate a draft campaign's content/targeting.
cancel_campaignCancel a scheduled campaign (return to draft).
delete_campaignDelete a campaign.

Templates

ToolDescription
create_templateCreate a reusable email template.
list_templatesList templates.
get_templateRetrieve a template by id.
update_templateUpdate a template.
duplicate_templateDuplicate a template.
publish_templatePublish a template's latest draft.
delete_templateDelete a template.

Automations

ToolDescription
create_automationCreate an automation (optionally with an inline step graph).
list_automationsList automations.
get_automationRetrieve an automation and its step graph.
add_automation_stepAppend a step to an automation.
list_automation_runsList an automation's runs.
stop_automationStop an automation (no new runs).
delete_automationDelete an automation.

Webhooks

ToolDescription
create_webhookCreate a webhook endpoint (signing secret returned once).
list_webhooksList webhooks.
get_webhookRetrieve a webhook by id.
update_webhookUpdate a webhook's endpoint/events/status.
delete_webhookDelete a webhook.

Logs, events & API keys

ToolDescription
list_logsList API request logs.
get_logRetrieve a single log entry with request/response bodies.
send_eventSend a custom event automations can trigger on.
create_api_keyCreate an API key (token returned once).
list_api_keysList API keys.
delete_api_keyDelete (revoke) an API key.

Local development

git clone https://github.com/Achlesha/SendHustle.git
cd SendHustle/packages/sendhustle-mcp
npm install
npm run build
npm test

Then point your client at the built entry file:

claude mcp add sendhustle -e SENDHUSTLE_API_KEY=sh_xxxxxxxxx -- node /ABSOLUTE/PATH/dist/cli.js

Testing with MCP Inspector

export SENDHUSTLE_API_KEY=mb_your_key_here
npm run inspector

License

MIT

Keywords

sendhustle

FAQs

Package last updated on 17 Sep 2026

Related posts