Skip to main content

MCP server

The Arsel MCP server lets an AI agent work in your Arsel account: read contacts, lists, campaigns, campaign results, templates and message logs, build segments, draft and send campaigns, send transactional messages, and build automations for you to turn on.

https://mcp.arsel.sa/mcp

Each tool makes one REST API call as you, on the organization you connect, so the agent sees what the API would show you, under the same rate limits. The server is open source: Arsel-SA/arsel-mcp.

It can send

The MCP server can send transactional email, SMS, WhatsApp and push, send or schedule campaigns, and record events that start automations. Your client asks you to approve every send, and the agent is told to show you what will go out and to whom first. It cannot turn an automation on or off or delete anything; you do those from the Arsel dashboard.

Choose how to authenticate​

Sign in with Arsel (OAuth)API key
Use whenA person is at the keyboard — claude.ai, Claude Desktop, Claude Code, Cursor, VS Code, CodexNobody can sign in in a browser: CI, servers, scripts, or running the server locally
Who can connectAn admin of the organizationAnyone holding a be_ key
LifetimeAccess tokens last 15 minutes and refresh automatically; the connection lasts until an admin disconnects itUntil the key expires or is revoked
Revoke fromIntegrations > Connected appsIntegrations > API keys

Prefer OAuth wherever a browser is available: there is no secret to paste into a config file, and disconnecting the app stops it on its next request.

Connect with your Arsel account​

Add the server by its URL. The client opens a browser window: sign in to Arsel, pick the organization and click Allow.

Claude (claude.ai and Claude Desktop)​

Settings > Connectors > Add custom connector, then enter https://mcp.arsel.sa/mcp. On a Team or Enterprise plan, an owner adds the connector for the workspace first.

Claude Code​

claude mcp add --transport http arsel https://mcp.arsel.sa/mcp

Then run /mcp, choose arsel and Authenticate.

Cursor​

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project, and click Connect next to the server in Settings > MCP:

{
"mcpServers": {
"arsel": {
"url": "https://mcp.arsel.sa/mcp"
}
}
}

VS Code​

Add this to .vscode/mcp.json, then start the server from the file or the MCP: List Servers command:

{
"servers": {
"arsel": {
"type": "http",
"url": "https://mcp.arsel.sa/mcp"
}
}
}

Codex​

codex mcp add arsel --url https://mcp.arsel.sa/mcp
codex mcp login arsel

Other clients​

Any client that supports remote (Streamable HTTP) servers with OAuth can connect to https://mcp.arsel.sa/mcp. The server advertises its authorization server at /.well-known/oauth-protected-resource, and clients register themselves through dynamic client registration or a client ID metadata document, so you do not need to request a client ID. The flow is documented in Sign in with Arsel (OAuth).

Connect with an API key​

Create a key in the dashboard under Integrations > API keys (see Authentication). Give the agent its own key, so you can revoke it without touching your integration.

Remote server​

Send the key as a Bearer token. Nothing to install.

Claude Code:

claude mcp add --transport http arsel https://mcp.arsel.sa/mcp \
--header "Authorization: Bearer be_xxxxxxxx"

Cursor (~/.cursor/mcp.json) and most other clients:

{
"mcpServers": {
"arsel": {
"url": "https://mcp.arsel.sa/mcp",
"headers": {"Authorization": "Bearer be_xxxxxxxx"}
}
}
}

Codex (~/.codex/config.toml), reading the key from the ARSEL_API_KEY environment variable:

[mcp_servers.arsel]
url = "https://mcp.arsel.sa/mcp"
bearer_token_env_var = "ARSEL_API_KEY"

Local server​

Run the server on your own machine over stdio with @arsel.sa/mcp. Needs Node.js 22 or later.

Claude Code:

claude mcp add arsel -e ARSEL_API_KEY=be_xxxxxxxx -- npx -y @arsel.sa/mcp

Cursor and Claude Desktop (Settings > Developer > Edit Config):

{
"mcpServers": {
"arsel": {
"command": "npx",
"args": ["-y", "@arsel.sa/mcp"],
"env": {"ARSEL_API_KEY": "be_xxxxxxxx"}
}
}
}

What a connection can do​

A connection has full access to one organization (the one you picked when you clicked Allow, or the one that owns the API key), limited to what the tools expose:

  • Read anything the tools cover, without asking you each time. Read tools are marked read-only, so clients can auto-approve them.
  • Create and update drafts, contacts, lists, tags, segments, properties, events, templates and sending domains. Clients ask for your approval before each one.
  • Send transactional messages and campaigns, schedule and cancel campaigns, activate in-app campaigns and record events. Send tools are marked destructive and as reaching outside Arsel, so clients ask before every call. A send that times out is reported as possibly delivered, so the agent checks the message log instead of sending twice.
  • Never turn an automation on or off, or delete anything.

A few writes take effect as soon as they run, with no draft to review afterwards. The agent is told to confirm these with you first:

ToolEffect
update-segmentChanges who every campaign and automation using that segment reaches.
create-whatsapp-template, update-whatsapp-templateSubmits the template to Meta for review.

OAuth connections stop working if the person who approved them is no longer an admin of the organization. Connecting the same app to the same organization again replaces the earlier connection.

Tools​

AreaTools
Contactslist-contacts get-contact create-contact update-contact
Listslist-lists get-list create-list update-list add-contacts-to-list remove-contacts-from-list
Tagslist-tags get-tag create-tag update-tag add-tag-to-contacts remove-tag-from-contacts
Segmentslist-segments get-segment create-segment update-segment
Data modellist-contact-properties get-contact-property create-contact-property update-contact-property list-events get-event create-event update-event
Email campaignslist-email-campaigns get-email-campaign create-email-campaign update-email-campaign get-email-campaign-stats
SMS campaignslist-sms-campaigns get-sms-campaign create-sms-campaign update-sms-campaign get-sms-campaign-stats
Push campaignslist-push-campaigns get-push-campaign create-push-campaign update-push-campaign get-push-campaign-stats
In-app campaignslist-in-app-campaigns get-in-app-campaign create-in-app-campaign update-in-app-campaign clone-in-app-campaign get-in-app-campaign-stats
Automationslist-automations get-automation create-automation update-automation clone-automation list-automation-runs get-automation-run
Templateslist-templates get-template create-template update-template list-gallery-categories list-gallery-templates get-gallery-template copy-gallery-template
WhatsApp templateslist-whatsapp-templates get-whatsapp-template create-whatsapp-template update-whatsapp-template
Message logslist-emails get-email list-sms-messages get-sms-message list-whatsapp-messages get-whatsapp-message list-push-notifications get-push-notification
Push deviceslist-contact-push-devices get-push-device-import
Accountlist-email-domains get-email-domain create-email-domain verify-email-domain list-sms-senders get-usage
Sendingsend-email send-sms send-whatsapp send-push send-email-campaign send-sms-campaign send-push-campaign cancel-email-campaign cancel-sms-campaign cancel-push-campaign activate-in-app-campaign send-event

The changelog lists what each release added.

Try it​

Once connected, ask in plain language:

  • "How did last week's email campaigns do? Compare open and click rates."
  • "Build a segment of contacts in Riyadh who opened an email in the last 30 days but haven't ordered."
  • "Draft an abandoned-cart automation: wait an hour, send a push, then an email if they still haven't checked out."
  • "Why didn't contact sara@example.com get the welcome email?"
  • "Schedule the November newsletter for Thursday 9am Riyadh time."

Security​

  • One organization per connection. The API scopes every call to the connected organization, and the server keeps no data of its own.
  • No sessions. Each request is handled with the credential it carries and then forgotten.
  • Treat an API key like a password.