连接器指南阅读约 5 分钟29 个 MCP 工具7 种语言

如何通过 MCP 将 Twilio Segment 连接到 ChatGPT

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Twilio Segment

Twilio Segment

Let your AI work with your Twilio Segment workspace: list sources, destinations and warehouses, check event volume, delivery and warehouse syncs, read tracking plans, Functions, usage and the audit trail. US and EU workspaces.

个工具

29

区域

INTL

类别

公共数据

身份验证

Bearer Token

所需环境变量

SEGMENT_API_HOSTSEGMENT_API_TOKEN
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Twilio Segment,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

试试这样问

Twilio Segment 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Twilio Segment · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Twilio Segment、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Twilio Segment + ChatGPT

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

SEGMENT_API_HOST, SEGMENT_API_TOKEN

步骤 1 — 获取凭证

  1. 以 Workspace Owner 身份打开 Settings → Workspace settings → Access Management → Tokens(https://app.segment.com/goto-my-workspace/settings/access-management/tokens),点击 Create Token。
  2. 选择 Public API 令牌,不要选 Config API 令牌。给它能满足需要的最小角色:只读取时用带只读角色(例如 Source Read-only 和 Tracking Plan Read-only)的 Workspace Member,只有要开启写入工具时才用 Workspace Owner。
  3. Segment 只显示一次令牌:请立即把它复制到 SEGMENT_API_TOKEN。它以 Bearer 令牌的形式只发送给 Segment。
  4. 按工作区所在区域设置 SEGMENT_API_HOST:美国工作区用 https://api.segmentapis.com,欧盟工作区用 https://eu1.api.segmentapis.com。令牌只能在自己的区域使用。
  5. 安装连接器并运行 segment_get_workspace 检查连接。一个令牌只属于一个工作区,所以每个工作区安装一个连接器。

可读取的内容:来源(sources)、带 Actions 映射的目标(destinations)、带连接状态和最近同步记录的数据仓库(warehouses)、随时间变化的事件量、Delivery Overview(事件在哪一步被丢弃以及原因)、每个目标的投递指标、跟踪计划及其规则(Protocols)、Functions 及其代码、每日 API 调用量和 MTU 用量,以及记录谁改了什么的 Audit Trail。跟踪计划需要 Protocols,Functions 需要 Functions 功能,映射需要工作区开通 Destination Subscriptions。

密钥信息:通常存放目标和数据仓库凭据的设置字段(API 密钥、secret、令牌、密码)不会返回。但 segment_get_source 会返回来源的 write key,任何人拿到它都能向该来源发送数据。

限制:Segment 按令牌、IP 地址和端点限制请求数,超限时返回 429 并带有 Retry-After 头。有些端点更严格:数据仓库同步每分钟 2 次,事件量每分钟 60 次,跟踪计划规则和数据仓库连接状态每分钟 200 次。列表按每页最多 1,000 条返回,AI 会沿着 pagination.next 一直取,直到拿全为止。

安装时默认关闭:segment_update_source 和 segment_update_destination 用于重命名来源或目标,或者开启、关闭它们;被关闭的来源或目标会丢弃数据,直到重新开启。segment_delete_source 和 segment_delete_destination 无法撤销。这些工具需要管理者有意开启,即使开启后,AI 每次修改前也会先和你确认;删除要等你确认 id 和名称后才会执行。

常见错误:403 "Not authorized to perform this operation":令牌错误或已撤销、属于另一个区域的工作区、是 Config API 令牌,或者其角色不覆盖该资源。401:没有发送令牌。404:该工作区中没有这个 id 的资源。422:缺少参数或参数无效,例如 Delivery Overview 的时间范围超过了该粒度允许的长度。如果提示与某项功能有关,说明工作区没有 Protocols、Functions 或 Destination Subscriptions。429:请按 Retry-After 给出的时间等待。

该连接器不发送事件:Segment 的 Tracking API 在另一个主机上使用来源的 write key。它也不会创建来源、目标或数据仓库,不涉及过滤器、转换、Reverse ETL、Engage 受众和 computed traits、访问管理、删除和屏蔽规则以及目录。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 +,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: Twilio Segment。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
segment_get_workspaceGet the Segment workspace the token belongs to (id, slug, name)
segment_list_sourcesList the workspace's sources (websites, apps, servers and cloud apps that send data) with id, name, slug, enabled flag, source type…
segment_get_sourceGet one source by id: name, slug, enabled flag, source type, labels, write keys, settings and the id of the tracking plan connected to it
segment_list_source_destinationsList the destinations connected to one source (id, name, enabled flag, destination type)
segment_list_source_warehousesList the warehouses connected to one source (id, name, enabled flag, warehouse type)
segment_get_source_schema_settingsGet a source's schema settings: whether unplanned track events, properties and traits are allowed or blocked, what happens on tracking plan…
segment_list_destinationsList the workspace's destinations (tools Segment sends data to) with id, name, enabled flag, destination type, catalog metadata id and the…
segment_get_destinationGet one destination by id: name, enabled flag, destination type, source id and its settings
segment_list_destination_subscriptionsList the mappings (subscriptions) of an Actions destination: id, name, action, trigger (which events it fires on) and enabled flag
segment_get_destination_delivery_metricsDelivery metrics summary of one destination for one source: totals per metric (delivered, discarded, retried and so on) with breakdowns
segment_list_warehousesList the workspace's warehouses (id, name, enabled flag, warehouse type such as Snowflake, BigQuery, Redshift, Postgres)
segment_get_warehouseGet one warehouse by id: name, enabled flag, warehouse type and its connection settings without passwords, keys and other secrets
segment_get_warehouse_connection_stateCheck whether Segment can currently connect to a warehouse with its saved settings (e.g
segment_list_warehouse_syncsRecent sync reports of a warehouse for every connected source: source id, start and end, status, duration, rows synced and notices
segment_list_tracking_plansList the tracking plans (id, name, slug, description, type, created and updated)
segment_get_tracking_planGet one tracking plan by id (name, slug, description, type, created and updated)
segment_list_tracking_plan_rulesList the rules of a tracking plan: per event or trait the rule type, key, JSON Schema of the allowed properties, version and dates
segment_list_tracking_plan_sourcesList the sources connected to a tracking plan (id, name, slug, enabled flag, source type)
segment_list_functionsList the workspace's Functions of one type (id, name, description, type, created)
segment_get_functionGet one Function by id, including its JavaScript code, declared settings (names and types, not values) and type
segment_get_event_volumeEvent volume of the workspace over time: totals and series per bucket, optionally grouped by event name, event type or source and filtered…
segment_get_delivery_overviewDelivery Overview counts for one step of a source's pipeline: successfully-received and failed-on-ingest (events reaching Segment)…
segment_get_daily_api_calls_usageDaily cumulative API call counts of the workspace for one usage month (the volume Segment bills on for API-based plans)
segment_get_daily_mtu_usageDaily cumulative monthly tracked users (MTU) of the workspace for one usage month: anonymous, identified, anonymous then identified and…
segment_list_audit_eventsList Audit Trail events (who changed what and when): id, timestamp, type (e.g
segment_update_sourceRename a source or switch it on or off
segment_update_destinationRename a destination or switch it on or off
segment_delete_sourceDelete a source for good, with its settings and connections; data sent with its write key is no longer accepted
segment_delete_destinationDelete a destination for good, with its settings and mappings

示例提示

  • “我们哪些目标处于关闭状态,它们分别从哪些来源读取数据?”
  • “给我看 iOS 来源过去 24 小时的 Delivery Overview,以及事件在哪里被丢弃。”
  • “过去 7 天各来源的事件量是怎么变化的?本月到目前为止我们用了多少 MTU?”
  • “根据审计日志,过去两周是谁修改了来源或目标?”

FAQ

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

你的 Twilio Segment 智能体只差一次点击。

安装连接器,粘贴密钥,向 ChatGPT 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Twilio Segment 连接到 Claude

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

连接器

如何通过 MCP 将 Twilio Segment 连接到 Cursor

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

连接器

如何通过 MCP 将 Twilio Segment 连接到 Gemini

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

连接器

如何通过 MCP 将 Twilio Segment 连接到 Meta Muse

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

连接器

Twilio Segment 接入 MCP:从任意 AI 代理检查你的数据管道

让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。

连接器

如何通过 MCP 将 Avito 连接到 ChatGPT

让你的 AI 使用你的 Avito 企业账户:列出广告并修改价格,读取浏览、联系和来电统计,检查自动上传 (autoload) 的上传记录及其错误、Feed 格式和钱包,并读取 Avito Messenger 聊天。发送消息和修改自动上传设置为可选功能,默认关闭。