Litmus MCP server for AI agents

Live

API CREDENTIALS (PREVIEWS AND ANALYTICS)

EMAIL TESTING

Marketing

Litmus gives your agent email testing and analytics in your Litmus account: run email preview, link check, and code analysis tests, list spam seed addresses, and create and report on Email Analytics campaigns.

  • Connection credentials: the Litmus API username and password you connect are used for every call.
  • 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.
Litmus
agent · Acme Q3
Run
How did people read my spring launch email?
S
litmus_analytics_engagement_report_get
380ms
Email testing agent
Of the tracked opens on the spring launch campaign, 58% were read, 27% were skimmed, and 15% were glanced at.
Sources: Litmus Email Analytics, 1 campaign
litmus
1 campaign
18:29
Message Claude...

Tools your email testing agent reaches for on Litmus, scoped per user.

CALL ANY TOOL
43 tools for email testing in Litmus: run email preview, link, and code analysis tests, list spam seed addresses, and create, manage, and report on Email Analytics campaigns.
litmus_analytics_activity_report_get
Get analytics activity report
Get the activity report (opens over time) for an Email Analytics campaign. Returns activity report (opens over time) built from the campaign's tracking pixel opens. Use litmus_analytics_activity_report_get to see when opens happened. Use litmus_analytics_campaigns_get for campaign status and totals. Uses the Basic (API key and passphrase) connection.
Parameters
Name
Type
Required
Description
guid
string
Required
GUID of the Email Analytics campaign, from litmus_analytics_campaign_create. Example: 8bd5a2c0-1f3e-4b7a-9d6c-2e4f6a8b0c1d.
litmus_analytics_activity_summary_report_get
Get analytics activity summary report
litmus_analytics_campaign_clear
Clear analytics campaign
litmus_analytics_campaign_create
Create analytics campaign
litmus_analytics_campaign_expiration_set
Set analytics campaign expiration
litmus_analytics_campaign_export_email
Analytics campaign export email
litmus_analytics_campaign_never_expire
Analytics campaign never expire
litmus_analytics_campaign_start
Start analytics campaign
litmus_analytics_campaign_subscribe
Analytics campaign subscribe
litmus_analytics_campaign_unsubscribe
Analytics campaign unsubscribe
litmus_analytics_campaign_update
Update analytics campaign
litmus_analytics_campaigns_compare
Compare analytics campaigns
litmus_analytics_campaigns_get
Get analytics campaigns
litmus_analytics_detailed_engagement_report_get
Get analytics detailed engagement report
litmus_analytics_engagement_report_get
Get analytics engagement report
litmus_analytics_expiring_campaigns_list
List analytics expiring campaigns
litmus_analytics_geolocation_report_get
Get analytics geolocation report
litmus_analytics_group_usage_report_get
Get analytics group usage report
litmus_analytics_mail_client_usage_report_get
Get analytics mail client usage report
litmus_analytics_open_counts_by_month_get
Get analytics open counts by month
litmus_analytics_open_counts_get
Get analytics open counts
litmus_analytics_open_counts_monthly_get
Get analytics open counts monthly
litmus_analytics_user_open_counts_by_month_get
Get analytics user open counts by month
litmus_analytics_user_open_counts_by_period_get
Get analytics user open counts by period
litmus_code_analysis_by_applications_create
Create code analysis by applications
litmus_email_test_create
Create email test
litmus_email_test_files_delete
Delete email test files
litmus_link_test_get
Get link test
litmus_spam_seed_addresses_for_test_list
List spam seed addresses for test
litmus_spam_seed_addresses_list
List spam seed addresses

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);

// Litmus tools available to this agent
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["litmus"], toolNames: [
    "litmus_email_test_create",
    "litmus_email_test_get",
    "litmus_link_test_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Create a preview test for this email, check its links, and show me the test results" }] });
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: ["litmus"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Create a preview test for this email, check its links, and show me the test results" }],
  tools,
});

// Execute the tool call with the vaulted Litmus API credentials (previews and analytics)
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: ["litmus"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Create a preview test for this email, check its links, and show me the test results" }],
  tools,
});

// Tool call runs with the vaulted Litmus API credentials (previews and analytics)
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: ["litmus"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_testing_agent",
  model: "gemini-2.5-pro",
  instruction: "Litmus tools available to this agent",
  tools,
});

await agent.run("Create a preview test for this email, check its links, and show me the test results");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Litmus tool. Click to copy, paste into your agent, done.
Test an email
Copy the prompt
Copied
Create an email preview test for this HTML in all Litmus email clients.
Copy the prompt
Copied
Check every link in this email's HTML.
Copy the prompt
Copied
Analyze this email's HTML and CSS for compatibility problems.
Analytics reports
Copy the prompt
Copied
Show the engagement report for my spring launch campaign.
Copy the prompt
Copied
Which mail clients opened my campaign the most?
Copy the prompt
Copied
Compare opens across these 3 campaigns.
Manage campaigns
Copy the prompt
Copied
Create an Email Analytics campaign called Spring launch.
Copy the prompt
Copied
List the campaigns that expire before the end of the month.
Copy the prompt
Copied
Set my spring launch campaign to never expire.
SEE HOW AUTH WORKS
You connect Litmus once with API credentials, a username and password for Previews and Analytics, and Scalekit sends them with every call. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Litmus
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
Litmus
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
Litmus
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
Litmus
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 vaulted credential pattern across other 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.
Support and Ops Teams
Email-to-calendar agent
Reads scheduling intent out of Gmail threads, resolves the times everyone actually has free, and creates the event on the user's own Google Calendar. No shared service account.
Test other agents
See the same vaulted credential pattern across other marketing connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
OPS
Email-to-calendar scheduling agent
Read scheduling intent out of Gmail threads, resolve mutual free time, and create the Google Calendar event.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Litmus login looks fine in a demo. In production every email test and campaign change 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 login
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Litmus 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
How does the agent authenticate to Litmus?
You connect Litmus once with API credentials, a username and password for Previews and Analytics, and Scalekit sends them with every call. Audit logs record every action the agent takes.
Where are the Litmus credentials stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate them, reconnect with new credentials. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Litmus?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the test, list, and report tools without litmus_analytics_campaign_clear, which deletes all collected data of a campaign, or litmus_email_test_files_delete, which deletes an email test's screenshots and source. Scalekit also enforces scope checks before every API call.
What happens when Litmus access is turned off?
Disable the connection in the Scalekit dashboard and the next tool call fails closed with a clear error. Other tenants are unaffected, and the change is logged.
Which Litmus APIs does this connector cover?
Previews and Analytics. It covers email preview tests, link checks, code analysis, spam seed addresses, and Email Analytics campaigns with their engagement, usage, and open count reports.
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"": {
""litmus"": {
""url"": ""https://mcp.scalekit.com/litmus"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.litmus]
url = ""https://mcp.scalekit.com/litmus""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""litmus"": {
""url"": ""https://mcp.scalekit.com/litmus"",
""type"": ""http""
}
}
}