NetSendo Logo

MCP Integration

Model Context Protocol for AI Assistants

Model Context Protocol (MCP) is an open standard introduced by Anthropic that allows AI assistants (like Claude, Cursor, VS Code Copilot) to integrate with external tools and data sources.

Ask questions: 'How many subscribers do I have?'
Manage subscribers using natural language
Send messages: 'Send an email to jan@example.com'
Get statistics: 'Analyze my list quality'

How It Works

The AI assistant communicates with the MCP server via the STDIO protocol, and the MCP server performs operations on NetSendo using the REST API v1.

┌─────────────────┐     STDIO      ┌─────────────────┐     HTTP/S     ┌─────────────────┐
│  Claude/Cursor  │ ◄──────────► │   MCP Server    │ ◄───────────► │    NetSendo     │
│   (AI Client)   │               │   (Docker/npx)  │               │  (Your inst.)   │
└─────────────────┘               └─────────────────┘               └─────────────────┘

Installation

Remote Installation (npx)
Recommended
Best for NetSendo hosted on a server (e.g. https://app.mycompany.com)

Requirements

  • Node.js 18+
  • API Key from NetSendo

Steps

  1. Generate API Key: Settings → API Keys
  2. Install Node.js from nodejs.org
  3. Configure your AI tool using the configuration below
{
  "mcpServers": {
    "netsendo": {
      "command": "npx",
      "args": [
        "-y",
        "@netsendo/mcp-client",
        "--url",
        "https://your-domain.com",
        "--api-key",
        "YOUR_API_KEY"
      ]
    }
  }
}

Replace https://your-domain.com with your NetSendo instance URL and YOUR_API_KEY with your generated API key.

Configuration File Locations

ClientFile Location
Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows)%APPDATA%\Claude\claude_desktop_config.json
Cursor IDESettings → MCP → Add Server
VS Code.vscode/mcp.json

Supported AI Clients

🤖
Claude Desktop

Official Claude desktop app from Anthropic

💻
Cursor IDE

IDE with built-in AI for developers

📝
VS Code

Visual Studio Code with MCP extension

Available Features

Subscribers

Manage contacts – add, edit, delete

Contact Lists

Browse and organize mailing lists

Email Messages

Send personalized email messages

SMS Messages

Send SMS messages to contacts

Tags

Categorize subscribers using tags

Statistics

Check account and deliverability statistics

Available Tools

Subscriber Management

ToolDescription
list_subscribersList subscribers with filtering and pagination
get_subscriberGet subscriber by ID or email
create_subscriberCreate a new subscriber
update_subscriberUpdate subscriber data
delete_subscriberDelete a subscriber
sync_subscriber_tagsSync subscriber tags

Contact Lists & Tags

ToolDescription
list_contact_listsGet all contact lists
get_contact_listGet list details
get_list_subscribersGet subscribers from a list
list_tagsGet all available tags
list_custom_fieldsGet custom field definitions

Messages

ToolDescription
list_mailboxesGet available mailboxes
send_emailSend email to subscriber
get_email_statusCheck email delivery status
list_sms_providersGet available SMS providers
send_smsSend SMS message
get_sms_statusCheck SMS delivery status

Account

ToolDescription
test_connectionTest API connection
get_account_infoGet account information

Example Queries

"Show my mailing lists"
"How many subscribers do I have?"
"Add subscriber jan@example.com to Newsletter list"
"Send a welcome message to anna@example.com"
"Analyze the quality of my mailing list"

Security

🔐 API keys are never logged or exposed
🔒 All API calls respect NetSendo permissions
⚡ Rate limiting: 60 requests/minute
🚫 Sensitive data (passwords, payments) is never returned
📝 All operations are logged in the activity log

Troubleshooting

Connection Failed
  • Make sure NetSendo is running and accessible
  • Check if the API key is valid
  • Verify the URL is correct (include https://)
Tools Not Appearing

Restart your AI tool after configuration changes.

npx Command Not Found

Install Node.js from nodejs.org (includes npm/npx).

Multiple NetSendo Instances

You can connect to multiple NetSendo instances using different server names:

{
  "mcpServers": {
    "netsendo-production": {
      "command": "npx",
      "args": ["-y", "@netsendo/mcp-client", "--url", "https://app.company.com", "--api-key", "prod-key"]
    },
    "netsendo-staging": {
      "command": "npx",
      "args": ["-y", "@netsendo/mcp-client", "--url", "https://staging.company.com", "--api-key", "staging-key"]
    }
  }
}