ActiveTrail MCP server for AI agents

Live

API KEY

EMAIL MARKETING

Marketing

ActiveTrail gives your agent email and SMS marketing in your ActiveTrail account: manage contacts, groups, and mailing lists, create and send email and SMS campaigns, send transactional messages, and pull campaign reports.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
ActiveTrail
agent · Acme Q3
Run
How did last week's newsletter perform?
S
activetrail_campaign_report_get
164ms
Email marketing agent
The newsletter went to 8,420 contacts with 3,106 opens, 412 clicks, and 38 unsubscribes.
Sources: ActiveTrail campaign report, 1 campaign
activetrail
1 report
18:29
Message Claude...

Tools your email marketing agent reaches for on ActiveTrail, scoped per user.

CALL ANY TOOL
60 tools for email marketing in ActiveTrail: manage contacts, groups, and mailing lists, create and send email and SMS campaigns, send operational messages, and read campaign reports.
activetrail_account_balance_get
Get account balance
Get the email and SMS credit balance of the ActiveTrail account. Returns the remaining email and SMS credits. Use this before sending large campaigns.
Parameters
Name
Type
Required
Description
—
No parameters required
activetrail_automation_activation_update
Update automation activation
activetrail_automation_get
Get automation
activetrail_automations_list
List automations
activetrail_campaign_contacts_send
Send campaign contacts
activetrail_campaign_create
Create campaign
activetrail_campaign_delete
Delete campaign
activetrail_campaign_get
Get campaign
activetrail_campaign_report_bounces_list
List campaign report bounces
activetrail_campaign_report_opens_list
List campaign report opens
activetrail_campaign_report_unsubscribed_list
List campaign report unsubscribed
activetrail_campaign_scheduling_get
Get campaign scheduling
activetrail_contact_fields_list
List contact fields
activetrail_contact_mailing_lists_list
List contact mailing lists
activetrail_contact_update
Update contact
activetrail_contacts_import
Import contacts
activetrail_group_create
Create group
activetrail_group_delete
Delete group
activetrail_group_get
Get group
activetrail_group_member_add
Add group member
activetrail_group_member_remove
Remove group member
activetrail_group_members_list
List group members
activetrail_mailing_list_delete
Delete mailing list
activetrail_mailing_list_member_add
Add mailing list member
activetrail_mailing_list_members_list
List mailing list members
activetrail_operational_email_send
Send operational email
activetrail_sending_profiles_list
List sending profiles
activetrail_signup_forms_list
List signup forms
activetrail_sms_campaign_report_get
Get sms campaign report
activetrail_sms_campaigns_list
List sms campaigns

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// ActiveTrail tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["activetrail"], toolNames: [
    "activetrail_campaign_report_get",
    "activetrail_campaign_create",
    "activetrail_group_member_add"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Add this contact to the Newsletter group, create the March campaign for that group, and show last week's campaign report" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["activetrail"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Add this contact to the Newsletter group, create the March campaign for that group, and show last week's campaign report" }],
  tools,
});

// Execute the tool call with the user's vaulted ActiveTrail API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["activetrail"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Add this contact to the Newsletter group, create the March campaign for that group, and show last week's campaign report" }],
  tools,
});

// Tool call runs with the user's vaulted ActiveTrail API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["activetrail"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_marketing_agent",
  model: "gemini-2.5-pro",
  instruction: "ActiveTrail tools scoped to this user",
  tools,
});

await agent.run("Add this contact to the Newsletter group, create the March campaign for that group, and show last week's campaign report");
Try these prompts
Copy any prompt into your agent. Each maps directly to a ActiveTrail tool. Click to copy, paste into your agent, done.
Contacts and lists
Copy the prompt
Copied
Find the contacts in my Newsletter group who are active.
Copy the prompt
Copied
Add this contact to the Webinar group.
Copy the prompt
Copied
List the mailing lists a contact belongs to.
Campaigns
Copy the prompt
Copied
Create an email campaign for the Newsletter group and schedule it for Friday at 9am.
Copy the prompt
Copied
Send a transactional email to these 3 addresses.
Copy the prompt
Copied
Create an SMS campaign for my VIP group and send it now.
Reports and credits
Copy the prompt
Copied
Show the open and click report for my last sent campaign.
Copy the prompt
Copied
Who unsubscribed from the March campaign?
Copy the prompt
Copied
How many email and SMS credits do I have left?
SEE HOW AUTH WORKS
Each user connects their own ActiveTrail API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
ActiveTrail
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
ActiveTrail
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
ActiveTrail
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
ActiveTrail
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other email marketing connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other email marketing connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared key for ActiveTrail looks fine in a demo. In production every campaign send looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
ActiveTrail today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access ActiveTrail as the user or through a shared key?
As the user. Each user connects their own ActiveTrail API key once, and Scalekit sends it with every call. Audit logs attribute every campaign, contact change, and send to that user, not a shared service account.
Where is the ActiveTrail API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in ActiveTrail?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the report and list tools without the send tools or activetrail_contact_delete and activetrail_campaign_delete. Scalekit also enforces scope checks before every API call.
What happens when a user revokes ActiveTrail access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent send transactional messages?
Yes. activetrail_operational_email_send sends a transactional email to up to 500 addresses with per-recipient personalization, and activetrail_operational_sms_send sends an SMS to specific mobile numbers, now or scheduled.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""activetrail"": {
""url"": ""https://mcp.scalekit.com/activetrail"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.activetrail]
url = ""https://mcp.scalekit.com/activetrail""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""activetrail"": {
""url"": ""https://mcp.scalekit.com/activetrail"",
""type"": ""http""
}
}
}