Skip to content
Get Started

Model Context Protocol (MCP)

Connect AI editors and agents to the Sendblue API using MCP for messaging, contacts, and more.

The Sendblue MCP server lets AI assistants interact with the Sendblue API — send messages, manage contacts, look up numbers, and more — directly from your editor or agent framework.

Install the MCP server via npx:

Terminal window
export SENDBLUE_API_API_KEY="your-api-key"
export SENDBLUE_API_API_SECRET="your-api-secret"
npx -y sendblue-api-mcp@latest

You can find your API credentials in the Sendblue dashboard.

Add the following to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
"mcpServers": {
"sendblue_api": {
"command": "npx",
"args": ["-y", "sendblue-api-mcp", "--client=claude", "--tools=all"],
"env": {
"SENDBLUE_API_API_KEY": "your-api-key",
"SENDBLUE_API_API_SECRET": "your-api-secret"
}
}
}
}
Terminal window
claude mcp add sendblue_api \
--env SENDBLUE_API_API_KEY=your-api-key \
--env SENDBLUE_API_API_SECRET=your-api-secret \
-- npx -y sendblue-api-mcp --client=claude-code --tools=all

Add to your Cursor MCP config (.cursor/mcp.json in your project or ~/.cursor/mcp.json globally):

{
"mcpServers": {
"sendblue_api": {
"command": "npx",
"args": ["-y", "sendblue-api-mcp", "--client=cursor", "--tools=all"],
"env": {
"SENDBLUE_API_API_KEY": "your-api-key",
"SENDBLUE_API_API_SECRET": "your-api-secret"
}
}
}
}

Add to your VS Code user settings (settings.json):

{
"mcp": {
"servers": {
"sendblue_api": {
"command": "npx",
"args": ["-y", "sendblue-api-mcp", "--tools=all"],
"env": {
"SENDBLUE_API_API_KEY": "your-api-key",
"SENDBLUE_API_API_SECRET": "your-api-secret"
}
}
}
}
}

For any MCP client that supports JSON configuration, use the following pattern:

{
"mcpServers": {
"sendblue_api": {
"command": "npx",
"args": ["-y", "sendblue-api-mcp", "--tools=all"],
"env": {
"SENDBLUE_API_API_KEY": "your-api-key",
"SENDBLUE_API_API_SECRET": "your-api-secret"
}
}
}
}

By default, --tools=all exposes every endpoint. For large context windows or specific use cases, you can filter what’s available:

Terminal window
# Only read operations (get/list)
npx -y sendblue-api-mcp --operation=read
# Only message-related tools
npx -y sendblue-api-mcp --resource=messages
# Exclude specific tools
npx -y sendblue-api-mcp --resource=messages --no-tool=send_messages
# Combine filters
npx -y sendblue-api-mcp --resource=messages,contacts --operation=read

Use --tools=dynamic to let the AI discover endpoints on the fly instead of loading all schemas upfront. This exposes three meta-tools:

  1. list_api_endpoints — search available endpoints
  2. get_api_endpoint_schema — get schema for a specific endpoint
  3. invoke_api_endpoint — call any endpoint

This is useful when context window size is a concern.

ToolTypeDescription
send_messageswriteSend an iMessage, SMS, or MMS to a single recipient
retrieve_messagesreadRetrieve details of a specific message by ID
list_messagesreadList messages with filtering (rate limited: 100 req/10s)
get_status_messagesreadGet current status of a message by handle
send_message_groupswriteSend a message to a group of recipients
modify_groupswriteAdd or manage participants in a group chat
upload_media_objectswriteUpload media to Sendblue’s CDN for use in messages
lookup_number_lookupsreadCheck if a phone number supports iMessage or SMS
send_typing_indicatorswriteSend a typing indicator to a user
create_contactswriteCreate a new contact (or update if update_if_exists is true)
retrieve_contactsreadRetrieve a contact by phone number
update_contactswriteUpdate an existing contact
list_contactsreadList contacts for your account
delete_contactswriteDelete a contact
count_contactsreadGet total contact count
verify_contactswriteSend a verification message to a contact
create_contacts_bulkwriteCreate multiple contacts in bulk
delete_contacts_bulkwriteDelete multiple contacts by ID

The MCP server authenticates using your Sendblue API key and secret, passed via environment variables:

VariableDescription
SENDBLUE_API_API_KEYYour Sendblue API key ID
SENDBLUE_API_API_SECRETYour Sendblue API secret key