Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI agents to send SMS/iMessage and check replies via Sendblue API using secure polling (no webhooks).

README.md

Sendblue MCP

SMS/iMessage for AI agents — secure, polling-based, no webhooks required.

Your agent needs to send campaign messages and check for replies. Traditional webhook approaches expose your local machine to the internet. Sendblue MCP uses API polling instead — zero attack surface, zero infrastructure, zero security risk.

# Send a message
send_sms(number="+15551234567", content="Campaign message here")

# Check for replies (no webhooks needed)
list_messages(is_outbound=False, limit=10)

47 messages later, across sessions, your agent remembers the conversation context.

About Sendblue

Sendblue is the SMS/iMessage API that powers this server. They handle message delivery, phone number management, iMessage detection, and delivery status tracking. This MCP server is a wrapper — it connects your AI agent to Sendblue's REST API using polling instead of webhooks.

You'll need a Sendblue account and API credentials to use this tool. Sign up at sendblue.co and get your keys from the dashboard.

This project is not affiliated with Sendblue. It's an independent open-source MCP server built on their public API.

End-to-end: what this actually looks like

Monday — Campaign launch. Your agent sends 50 outreach messages:

for contact in campaign_list:
    send_sms(number=contact.phone, content=personalized_message)

Tuesday — Check responses. Different session, different agent:

replies = list_messages(is_outbound=False, limit=50)
# Agent sees: 12 replies, 3 interested, 9 opt-outs

No webhook setup. No public endpoints. No ngrok. Just secure API polling.

Why polling beats webhooks for campaigns:

  • ✅ No exposed services on your machine
  • ✅ No infrastructure to maintain
  • ✅ Campaign responses aren't real-time anyway
  • ✅ Zero security risk to genesis station
  • ✅ Works from anywhere (no static IP needed)

Works with everything

Windsurf, Claude Desktop, any MCP-compatible client. One Poetry environment. No runtime dependencies beyond Python 3.11+.

Install

1. Clone and install:

git clone https://github.com/jackccrawford/sendblue-mcp.git
cd sendblue-mcp
poetry install --no-root

2. Configure credentials:

Create ~/.keys/sendblue.json:

{
  "api_key": "your_sendblue_api_key",
  "secret_key": "your_sendblue_secret_key",
  "from_number": "+15559876543",
  "contacts": {
    "alice": "+15551234567",
    "bob": "+15559998888"
  }
}

Get your credentials from Sendblue Dashboard.

3. Add to MCP config:

Windsurf (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "sendblue": {
      "command": "/Users/YOUR_USERNAME/.local/bin/poetry",
      "args": [
        "-C",
        "/Users/YOUR_USERNAME/Dev/sendblue-mcp",
        "run",
        "python",
        "src/server.py"
      ],
      "env": {
        "FASTMCP_BANNER": "0",
        "PYTHONWARNINGS": "ignore"
      }
    }
  }
}

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "sendblue": {
      "command": "poetry",
      "args": ["-C", "/path/to/sendblue-mcp", "run", "python", "src/server.py"]
    }
  }
}

4. Restart your MCP client (Windsurf, Claude Desktop, etc.)

What it looks like

Send a message:

send_sms(
    number="+15551234567",
    content="Test from Sendblue MCP! 🚀"
)
# Returns: {"status": "QUEUED", "message_handle": "...", "from_number": "+15559876543"}

Check for replies:

list_messages(is_outbound=False, limit=10)
# Returns: [{"content": "Interested!", "from_number": "+15551234567", ...}, ...]

Get your contacts:

get_contacts()
# Returns: [{"name": "alice", "number": "+15551234567"}, {"name": "bob", "number": "+15559998888"}]

Check if a number supports iMessage:

evaluate_service_type(number="+15551234567")
# Returns: {"number": "+15551234567", "service": "iMessage"}

How it works

Sendblue MCP is a FastMCP server backed by httpx for async API calls. No webhooks. No background services. No public endpoints.

Agent → MCP Server (FastMCP) → Sendblue API (HTTPS)

Messages are sent via Sendblue's REST API. Replies are retrieved by polling /api/v2/messages when you ask. Content stays in Sendblue's cloud until you fetch it.

Security model:

  • Credentials stored locally in ~/.keys/sendblue.json (mode 0600)
  • No public endpoints exposed
  • No webhook receivers
  • No attack surface on your machine
  • API calls are outbound-only (HTTPS to Sendblue)

Tools

send_sms(number, content, send_style=None)

Send an SMS or iMessage via Sendblue.

Args:

  • number (str): Phone number in E.164 format (e.g., +15551234567)
  • content (str): Message text to send
  • send_style (str, optional): Message style - 'invisible', 'gentle', 'loud', 'slam'

Returns: ``json { "status": "QUEUED", "message_handle": "35d2bd01-5fe0-4ee3-a9fd-a61231e0ddd4", "from_number": "+15559876543", "to_number": "+15551234567", "date_sent": "2026-03-26T22:14:40.696Z" } ``

list_messages(limit=10, is_outbound=False, offset=0)

List recent messages (inbound or outbound). Polls Sendblue API without requiring webhooks.

Args:

  • limit (int): Number of messages to retrieve (default: 10, max: 100)
  • is_outbound (bool): False for received messages, True for sent messages
  • offset (int): Pagination offset (default: 0)

Returns: ``json { "messages": [ { "content": "Interested in learning more!", "from_number": "+15551234567", "to_number": "+15559876543", "is_outbound": false, "status": "RECEIVED", "date_sent": "2026-03-26T22:30:15.123Z" } ] } ``

get_contacts()

Get list of saved contacts from credentials file.

Returns: ``json [ {"name": "alice", "number": "+15551234567"}, {"name": "bob", "number": "+15559998888"} ] ``

check_message_status(account_email, number)

Check delivery status of messages.

Args:

  • account_email (str): Your Sendblue account email
  • number (str): Phone number to check status for

Returns: ``json { "status": "DELIVERED", "last_message": "2026-03-26T22:14:40.696Z" } ``

evaluate_service_type(number)

Check if a number can receive iMessage or SMS.

Args:

  • number (str): Phone number in E.164 format

Returns: ``json { "number": "+15551234567", "service": "iMessage" } ``

Security considerations

Why no webhooks?

Traditional webhook approaches require exposing your local machine to the internet (via ngrok, Tailscale Funnel, etc.). This creates an attack surface on your development machine where sensitive assets live (genesis station, credentials, code).

Polling is safer:

  • No public endpoints
  • No inbound connections
  • No webhook receiver code to exploit
  • API calls are outbound-only
  • You control when messages are fetched

For sales campaigns, polling is sufficient:

  • Responses aren't real-time (people take hours/days to reply)
  • Checking every few minutes is fast enough
  • Zero infrastructure complexity
  • Zero security risk

If you need real-time webhooks:

  • Deploy webhook receiver on isolated server (not your Mac)
  • Use dedicated droplet with no privileged access
  • Forward messages to queue/database
  • MCP polls the queue (still no webhooks on your machine)

Dependencies

  • Python 3.11+
  • FastMCP 2.0+
  • httpx 0.28+
  • pydantic 2.10+

All managed via Poetry. No system dependencies.

License

MIT

About

Built for mVara's sales campaign automation. Designed for security-conscious teams who eliminated ngrok and need safe two-way messaging.

Repository: https://github.com/jackccrawford/sendblue-mcp Issues: https://github.com/jackccrawford/sendblue-mcp/issues Sendblue API: https://docs.sendblue.com

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Communication servers.