360 Secure SkillHub
360 安全技能中心

AutoSend MCP

该 Skill 说明如何用 mcporter 将 OpenClaw 连接到 AutoSend 邮件 MCP 服务器(Streamable HTTP 加 OAuth 2.0),列出 19 个工具,覆盖模板、发件人、抑制组、活动与分析的查询及增删改,并提供活动与模板的引导式工作流、OAuth 配置、令牌管理和排障步骤。

shindebhau
shindebhau
热度 58.38
最近更新 2026-05-11 17:29:52
分类:营销依赖:MCP 服务 / 第三方 API / 代码执行 / 联网浏览搜索应用场景:邮件起草 / CRM / 市场分析 / 模板 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add autosend-mcp-skill
Metadata
name
autosend-mcp
description
Connect to AutoSend email MCP server from OpenClaw using mcporter. Use for managing email campaigns, templates, contacts, and senders via AI.
version
0.1.0
metadata
{"openclaw":{"requires":{"bins":["mcporter"]},"install":[{"kind":"node","package":"mcporter","bins":["mcporter"]}],"emoji":"📧","homepage":"https://docs.autosend.com/ai/mcp-server"}}

AutoSend MCP Skill

Connect OpenClaw to AutoSend email platform via MCP using mcporter.

MCP URL: https://mcp.autosend.com/ Transport: Streamable HTTP + OAuth 2.0 Docs: https://docs.autosend.com/ai/mcp-server

Available Tools (19)

Category Tools
Lists & Segments get_lists_and_segments
Templates list_templates, search_templates, get_template, create_template, update_template, delete_template
Senders list_senders, get_sender
Suppression Groups list_suppression_groups, get_suppression_group
Campaigns list_campaigns, get_campaign, create_campaign, update_campaign, delete_campaign, duplicate_campaign
Analytics get_campaign_analytics, get_email_activity_analytics

Guided Workflows

  • create-campaign — Step-by-step campaign creation
  • create-template — Step-by-step template creation

Prerequisites

Setup

1. Install mcporter

npm install -g mcporter

2. Add AutoSend server

mcporter config add autosend https://mcp.autosend.com/ --auth oauth

Or manually create config/mcporter.json:

{
  "mcpServers": {
    "autosend": {
      "baseUrl": "https://mcp.autosend.com/",
      "auth": "oauth",
      "description": "AutoSend email MCP"
    }
  }
}

3. Authenticate

Option A: Desktop (has browser)

mcporter auth autosend
# Browser opens → Log in → Authorize → Done

Option B: Headless Server (human-in-the-loop)

On servers without a browser, follow these manual steps:

  1. Discover OAuth endpoints: GET https://mcp.autosend.com/.well-known/oauth-authorization-server
  2. Register a dynamic client: POST to the registration endpoint from step 1
  3. Build an authorization URL with PKCE (code_challenge_method=S256) and open it in a browser on another machine
  4. Authorize and copy the callback URL — the page won't load locally, but the URL contains the code and state parameters
  5. Exchange the code for tokens: POST to the token endpoint with the code and PKCE verifier
  6. Save tokens to ~/.mcporter/autosend/tokens.json

To refresh tokens later, POST to the token endpoint with grant_type=refresh_token.

See the MCP OAuth spec for full details.

4. Test Connection

mcporter call autosend.list_templates

Usage

# List templates
mcporter call autosend.list_templates

# Create template
mcporter call autosend.create_template \
  templateName="Welcome Email" \
  subject="Welcome!" \
  emailTemplate="<html>..."

# List campaigns
mcporter call autosend.list_campaigns

# Get analytics
mcporter call autosend.get_email_activity_analytics

Token Management

Tokens are stored in ~/.mcporter/autosend/tokens.json (managed by mcporter).

# Re-authenticate (refreshes tokens automatically)
mcporter auth autosend

# Verify tokens work
mcporter call autosend.list_templates

Troubleshooting

Issue Solution
Token expired Run mcporter auth autosend to re-authenticate
Invalid credentials Re-run full OAuth flow with mcporter auth autosend
Connection timeout Check network and token validity

References