sendblue-mcp
Enables AI agents to send SMS/iMessage and check replies via Sendblue API using secure polling (no webhooks).
README
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 sendsend_style(str, optional): Message style -'invisible','gentle','loud','slam'
Returns:
{
"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):Falsefor received messages,Truefor sent messagesoffset(int): Pagination offset (default: 0)
Returns:
{
"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:
[
{"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 emailnumber(str): Phone number to check status for
Returns:
{
"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:
{
"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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。