marketo-mcp-server
marketo-mcp-server
一个用于 Marketo 的模型上下文协议 (MCP) 服务器 — 让 Claude 和其他 AI 助手能够直接访问您的 Marketo 实例。
通过自然语言查询潜在客户、检查程序、审查电子邮件和表单、管理静态和智能列表、探索渠道和落地页,以及启动批量导出。
功能
分类 | 您可以执行的操作 |
潜在客户 (Leads) | 按 ID 或电子邮件获取、批量创建/更新、删除、检索活动日志 |
程序 (Programs) | 列出、按 ID 获取、克隆、获取成员 |
电子邮件 (Emails) | 列出、按 ID 获取、克隆、发送样本/测试 |
表单 (Forms) | 列出、按 ID 获取、克隆、批准 |
智能列表 (Smart Lists) | 列出、按 ID 获取(包含完整的筛选器定义) |
静态列表 (Static Lists) | 获取成员、添加潜在客户、移除潜在客户 |
渠道 (Channels) | 列出、按 ID 获取、创建(包含进度状态) |
落地页 (Landing Pages) | 列出、按 ID 获取、克隆 |
批量导出 (Bulk Export) | 创建作业、加入队列、轮询状态、下载文件 |
前置要求
Node.js 20+
具有 REST API 访问权限的 Marketo 实例
一个 Marketo API 专用用户和 LaunchPoint 服务,并提供 Client ID 和 Client Secret
设置
1. 获取您的 Marketo REST 凭据
在 Marketo 管理后台:Integration → LaunchPoint → 创建或选择一个服务 → 复制 Client ID 和 Secret。您的基础 URL 位于 Integration → Web Services 下(例如 https://xxx-xxx-xxx.mktorest.com)。
2. 设置环境变量
MARKETO_CLIENT_ID=your_client_id
MARKETO_CLIENT_SECRET=your_client_secret
MARKETO_BASE_URL=https://xxx-xxx-xxx.mktorest.com使用方法
Claude Desktop
添加到 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"marketo": {
"command": "npx",
"args": ["marketo-mcp-server"],
"env": {
"MARKETO_CLIENT_ID": "your_client_id",
"MARKETO_CLIENT_SECRET": "your_client_secret",
"MARKETO_BASE_URL": "https://xxx-xxx-xxx.mktorest.com"
}
}
}
}Claude Code
claude mcp add marketo-mcp-server npx marketo-mcp-server \
-e MARKETO_CLIENT_ID=your_client_id \
-e MARKETO_CLIENT_SECRET=your_client_secret \
-e MARKETO_BASE_URL=https://xxx-xxx-xxx.mktorest.comCursor
添加到项目根目录下的 .cursor/mcp.json(或全局 ~/.cursor/mcp.json):
{
"mcpServers": {
"marketo": {
"command": "npx",
"args": ["marketo-mcp-server"],
"env": {
"MARKETO_CLIENT_ID": "your_client_id",
"MARKETO_CLIENT_SECRET": "your_client_secret",
"MARKETO_BASE_URL": "https://xxx-xxx-xxx.mktorest.com"
}
}
}
}Docker
docker build -t marketo-mcp-server .
docker run -e MARKETO_CLIENT_ID=... -e MARKETO_CLIENT_SECRET=... -e MARKETO_BASE_URL=... marketo-mcp-server工具参考
潜在客户 (5 个工具)
工具 | 描述 |
| 通过 Marketo 潜在客户 ID 获取单个潜在客户 |
| 通过电子邮件地址查找潜在客户 |
| 批量插入/更新最多 300 个潜在客户 |
| 通过 ID 永久删除潜在客户 |
| 获取潜在客户的活动日志(可按活动类型筛选) |
程序 (4 个工具)
工具 | 描述 |
| 列出程序(支持分页和类型/日期筛选) |
| 按 ID 获取完整的程序元数据 |
| 将程序及其所有本地资产克隆到目标文件夹 |
| 获取加入程序的潜在客户 |
电子邮件 (4 个工具)
工具 | 描述 |
| 列出电子邮件资产(支持状态筛选) |
| 获取完整的电子邮件元数据(包括 HTML 和模块结构) |
| 将电子邮件资产克隆到目标文件夹 |
| 发送测试/样本电子邮件,可选择使用潜在客户的令牌进行渲染 |
表单 (4 个工具)
工具 | 描述 |
| 列出表单(支持分页和状态筛选) |
| 获取表单元数据(包括字段和可见性规则) |
| 将表单克隆到目标文件夹 |
| 批准表单草稿以使其生效 |
智能列表 (2 个工具)
工具 | 描述 |
| 列出智能列表(支持分页) |
| 获取包含完整筛选器定义的智能列表 |
静态列表 (3 个工具)
工具 | 描述 |
| 获取属于静态列表成员的潜在客户 |
| 将最多 300 个潜在客户添加到静态列表 |
| 从静态列表中移除最多 300 个潜在客户 |
渠道 (3 个工具)
工具 | 描述 |
| 列出所有渠道及其进度状态 |
| 按 ID 获取单个渠道 |
| 创建具有自定义进度状态的渠道 |
落地页 (3 个工具)
工具 | 描述 |
| 列出落地页(支持状态筛选) |
| 获取完整的落地页元数据(包括模板和嵌入的表单) |
| 将落地页克隆到目标文件夹 |
批量导出 (4 个工具)
工具 | 描述 |
| 创建批量潜在客户导出作业(包含字段列表和日期筛选器) |
| 将创建的导出作业加入处理队列 |
| 轮询正在运行的导出作业的状态 |
| 从已完成的导出作业中下载文件 |
示例提示词
“显示本周从 Webinar 来源创建的所有潜在客户”
“当前有哪些活跃的程序,每个程序属于哪个渠道?”
“查找 Contact Us 落地页上的所有表单并显示其字段”
“将 Q1 Webinar 程序克隆到 Q2 文件夹中,并命名为 Q2 Webinar”
“将过去 30 天内更新的所有潜在客户导出为 CSV — 包含 email, firstName, lastName, company”
“发送 ID 为 1234 的电子邮件样本到 test@example.com,并使用潜在客户 5678 的数据进行渲染”
身份验证
Marketo 使用 OAuth 2.0 客户端凭据。服务器会自动获取并缓存令牌,并在过期前 60 秒刷新。无需手动管理令牌。
许可证
MIT — 详见 LICENSE。
Available Tools
32 toolsmarketo_add_leads_to_listA
Add one or more leads to a static list by lead IDs. Max 300 leads per call.
Inputs: listId (required), leadIds (required).
marketo_approve_formA
Approve a Marketo form draft, making it the live version. The form must be in draft status.
Inputs: id (required).
marketo_clone_emailB
Clone an existing Marketo email asset. Creates a draft copy with the specified name in the target folder.
Inputs: id (required), name (required), folderId (required), folderType, +1 more.
marketo_clone_formA
Clone an existing Marketo form. Creates a new form with the same fields and settings under the specified name and folder.
Inputs: id (required), name (required), folderId (required), folderType, +1 more.
marketo_clone_landing_pageA
Clone an existing Marketo landing page. Creates a draft copy with the specified name in the target folder.
Inputs: id (required), name (required), folderId (required), folderType, +1 more.
marketo_clone_programA
Clone an existing Marketo program. Creates a copy with all local assets (emails, LPs, smart campaigns) under the specified name and folder.
Inputs: id (required), name (required), folderId (required), folderType, +1 more.
marketo_create_bulk_export_leadsA
Create a bulk lead export job. Specify which fields to export and a date range filter. The job must be enqueued separately after creation. Max 500MB or 10M records per export.
Inputs: fields (required), filter (required), format.
marketo_create_channelB
Create a new channel in Marketo. Channels define program types and their progression statuses (e.g. Invited > Registered > Attended for a Webinar channel).
Inputs: name (required), applicableProgramType (required), progressionStatuses (required).
marketo_create_or_update_leadsA
Batch create or update leads in Marketo. Upserts up to 300 leads per call. Uses 'email' as the default dedup field. Set action to createOnly, updateOnly, or createOrUpdate.
Inputs: input (required), action, lookupField.
marketo_delete_leadA
Delete a lead from Marketo by lead ID. This is permanent and cannot be undone.
Inputs: id (required).
marketo_enqueue_bulk_exportA
Enqueue a previously created bulk export job for processing. The job moves from Created to Queued status. Poll status with marketo_get_bulk_export_status.
Inputs: exportId (required).
marketo_get_bulk_export_fileA
Download the file from a completed bulk export job. Returns CSV/TSV content. Only works when job status is Completed. Large files may be clipped in MCP response.
Inputs: exportId (required).
marketo_get_bulk_export_statusA
Check the status of a bulk export job. Returns status (Created/Queued/Processing/Completed/Failed/Cancelled), file size, number of rows, and timestamps.
Inputs: exportId (required).
marketo_get_channel_by_idA
Get a single Marketo channel by ID. Returns channel metadata including progression statuses and their step numbers.
Inputs: id (required).
marketo_get_channelsA
List all channels in Marketo. Channels define the program type taxonomy (e.g. Webinar, Tradeshow, Email Send). Returns channel names, progression statuses, and applicability.
Inputs: maxReturn, offset.
marketo_get_email_by_idA
Get a single Marketo email asset by ID. Returns full email metadata including HTML content, subject line, from/reply-to, and module structure.
Inputs: id (required).
marketo_get_emailsA
List email assets in Marketo. Supports pagination via maxReturn/offset and filtering by status (approved/draft). Returns email metadata including subject line, from address, and folder.
Inputs: maxReturn, offset, status.
marketo_get_form_by_idA
Get a single Marketo form by its ID. Returns full form metadata including fields, submit button label, and visibility rules.
Inputs: id (required).
marketo_get_formsA
List forms in Marketo. Supports pagination via maxReturn (max 200) and offset. Optionally filter by status (approved/draft). Returns form metadata including name, URL, status, and folder.
Inputs: maxReturn, offset, status.
marketo_get_landing_page_by_idA
Get a single Marketo landing page by ID. Returns full LP metadata including template, URL, content sections, and form embeds.
Inputs: id (required).
marketo_get_landing_pagesA
List landing pages in Marketo. Supports pagination via maxReturn/offset and filtering by status (approved/draft). Returns LP metadata including URL, template, and mobile enablement status.
Inputs: maxReturn, offset, status.
marketo_get_lead_activitiesA
Get activity log for a specific lead. Filter by activity type IDs (e.g. 1=Visit Web Page, 6=Send Email). Supports pagination via nextPageToken. Returns timestamped activity records.
Inputs: leadId (required), activityTypeIds, nextPageToken, batchSize.
marketo_get_lead_by_emailA
Look up a lead by email address. Uses filterType=email on the leads endpoint. Returns matching lead records.
Inputs: email (required), fields.
marketo_get_lead_by_idA
Get a single lead by Marketo lead ID. Optionally specify which fields to return. Returns lead record with all requested fields.
Inputs: id (required), fields.
marketo_get_lead_listsB
Get leads that are members of a specific static list. Supports pagination via nextPageToken and batchSize.
Inputs: listId (required), fields, batchSize, nextPageToken.
marketo_get_program_by_idA
Get a single Marketo program by ID. Returns full program metadata including channel, status, costs, tags, and folder location.
Inputs: id (required).
marketo_get_program_membersA
Get members (leads) of a Marketo program. Supports pagination via nextPageToken and batchSize. Optionally specify which lead fields to return.
Inputs: programId (required), fields, batchSize, nextPageToken.
marketo_get_programsA
List programs in Marketo. Supports pagination (maxReturn/offset), filtering by type (filterType: id/programType/folder/tag), and date range filtering. Returns program metadata including status, channel, costs, and tags.
Inputs: maxReturn, offset, filterType, filterValues, +2 more.
marketo_get_smart_list_by_idA
Get a single Marketo smart list by ID. Returns full smart list metadata including filter definitions and rule logic.
Inputs: id (required).
marketo_get_smart_listsA
List smart lists in Marketo. Returns smart list metadata including name, folder, created/updated dates, and filter rules summary.
Inputs: maxReturn, offset.
marketo_remove_leads_from_listA
Remove one or more leads from a static list by lead IDs. Max 300 leads per call.
Inputs: listId (required), leadIds (required).
marketo_send_sampleA
Send a sample/test email to an email address. Optionally render personalization tokens using a specific lead's data. Useful for QA before approving.
Inputs: id (required), emailAddress (required), textOnly, leadId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
Each tool has a clear, distinct purpose targeting a specific Marketo resource and action. There is no ambiguity between tools like marketo_get_email_by_id and marketo_get_emails, or between create, clone, add, remove, and delete operations.
All tools follow a consistent verb_noun pattern prefixed with 'marketo_'. Verbs are lowercase and nouns are descriptive. For example, marketo_get_lead_by_id, marketo_create_or_update_leads, marketo_add_leads_to_list. No mixing of conventions.
With 32 tools, the server covers a broad domain (leads, lists, emails, forms, landing pages, programs, channels, smart lists, bulk exports). While slightly above the typical 3-15 range, the complexity of Marketo justifies the count, and each tool serves a specific function.
The server covers core CRUD for leads and lists, asset management for emails, forms, and landing pages, and program/channel operations. However, notable gaps exist: no direct update for assets (only clone and approve), no program creation/deletion, and no list management beyond add/remove. Bulk export is well-covered.
Maintenance
Related MCP Connectors
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
Unofficial remote MCP server for Less Annoying CRM: OAuth 2.1, read-only grants, 10 tools.
MCP server for customer-io
Send transactional email and manage domains, audiences, and broadcasts from any MCP client.