跳过安装。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 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Twilio Segment、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Twilio Segment + Meta Muse
让你的 AI 使用你的 Twilio Segment 工作区:列出来源、目标和数据仓库,查看事件量、投递情况和数据仓库同步,读取跟踪计划、Functions、用量和审计日志。支持美国和欧盟工作区。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
SEGMENT_API_HOST, SEGMENT_API_TOKEN
步骤 1 — 获取凭证
- 以 Workspace Owner 身份打开 Settings → Workspace settings → Access Management → Tokens(
https://app.segment.com/goto-my-workspace/settings/access-management/tokens),点击 Create Token。 - 选择 Public API 令牌,不要选 Config API 令牌。给它能满足需要的最小角色:只读取时用带只读角色(例如 Source Read-only 和 Tracking Plan Read-only)的 Workspace Member,只有要开启写入工具时才用 Workspace Owner。
- Segment 只显示一次令牌:请立即把它复制到
SEGMENT_API_TOKEN。它以 Bearer 令牌的形式只发送给 Segment。 - 按工作区所在区域设置
SEGMENT_API_HOST:美国工作区用https://api.segmentapis.com,欧盟工作区用https://eu1.api.segmentapis.com。令牌只能在自己的区域使用。 - 安装连接器并运行
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 — 在 Muse 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Muse 以自定义连接器的形式添加远程 MCP 服务器,并通过 OAuth 登录。
- 在 Muse 中打开 Settings → Connectors,选择 Add custom connector。
- 粘贴 MCP 服务器 URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。 - Muse 会打开 AnythingMCP 的登录页面:登录并批准访问。
- 在聊天中,向 Muse 提出需要用到
Twilio Segment的工具的请求。
你也可以在聊天中完成设置,适用于网页版、iOS 和 Android 应用以及 WhatsApp。给 Muse 发送这条消息:
Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Muse 从 Meta 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
segment_get_workspace | Get the Segment workspace the token belongs to (id, slug, name) |
segment_list_sources | List the workspace's sources (websites, apps, servers and cloud apps that send data) with id, name, slug, enabled flag, source type… |
segment_get_source | Get 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_destinations | List the destinations connected to one source (id, name, enabled flag, destination type) |
segment_list_source_warehouses | List the warehouses connected to one source (id, name, enabled flag, warehouse type) |
segment_get_source_schema_settings | Get a source's schema settings: whether unplanned track events, properties and traits are allowed or blocked, what happens on tracking plan… |
segment_list_destinations | List the workspace's destinations (tools Segment sends data to) with id, name, enabled flag, destination type, catalog metadata id and the… |
segment_get_destination | Get one destination by id: name, enabled flag, destination type, source id and its settings |
segment_list_destination_subscriptions | List the mappings (subscriptions) of an Actions destination: id, name, action, trigger (which events it fires on) and enabled flag |
segment_get_destination_delivery_metrics | Delivery metrics summary of one destination for one source: totals per metric (delivered, discarded, retried and so on) with breakdowns |
segment_list_warehouses | List the workspace's warehouses (id, name, enabled flag, warehouse type such as Snowflake, BigQuery, Redshift, Postgres) |
segment_get_warehouse | Get one warehouse by id: name, enabled flag, warehouse type and its connection settings without passwords, keys and other secrets |
segment_get_warehouse_connection_state | Check whether Segment can currently connect to a warehouse with its saved settings (e.g |
segment_list_warehouse_syncs | Recent sync reports of a warehouse for every connected source: source id, start and end, status, duration, rows synced and notices |
segment_list_tracking_plans | List the tracking plans (id, name, slug, description, type, created and updated) |
segment_get_tracking_plan | Get one tracking plan by id (name, slug, description, type, created and updated) |
segment_list_tracking_plan_rules | List 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_sources | List the sources connected to a tracking plan (id, name, slug, enabled flag, source type) |
segment_list_functions | List the workspace's Functions of one type (id, name, description, type, created) |
segment_get_function | Get one Function by id, including its JavaScript code, declared settings (names and types, not values) and type |
segment_get_event_volume | Event 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_overview | Delivery Overview counts for one step of a source's pipeline: successfully-received and failed-on-ingest (events reaching Segment)… |
segment_get_daily_api_calls_usage | Daily cumulative API call counts of the workspace for one usage month (the volume Segment bills on for API-based plans) |
segment_get_daily_mtu_usage | Daily cumulative monthly tracked users (MTU) of the workspace for one usage month: anonymous, identified, anonymous then identified and… |
segment_list_audit_events | List Audit Trail events (who changed what and when): id, timestamp, type (e.g |
segment_update_source | Rename a source or switch it on or off |
segment_update_destination | Rename a destination or switch it on or off |
segment_delete_source | Delete a source for good, with its settings and connections; data sent with its write key is no longer accepted |
segment_delete_destination | Delete a destination for good, with its settings and mappings |
示例提示
- “我们哪些目标处于关闭状态,它们分别从哪些来源读取数据?”
- “给我看 iOS 来源过去 24 小时的 Delivery Overview,以及事件在哪里被丢弃。”
- “过去 7 天各来源的事件量是怎么变化的?本月到目前为止我们用了多少 MTU?”
- “根据审计日志,过去两周是谁修改了来源或目标?”
FAQ
Muse 在哪些地区可用? Meta 目前在美国和加拿大提供 Muse,可在网页版、iOS 和 Android 应用以及 WhatsApp 中使用。
Meta 会审核这个连接器吗? 不会。Meta 不审核自定义连接器。Muse 只能看到你在 AnythingMCP 中为此 MCP 服务器启用的工具,你也可以随时在 Settings → Connectors 中断开它。
下一步
这份指南对你有帮助吗?