原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

segment-mcp

作者:katekruger版本 0.1.2i★ –i在你的电脑上运行
注册名称io.github.katekruger/segment-mcp

安装

概览

作者提供的说明(英文原文)

Read-first MCP server for Twilio Segment: routing, stale sources, delivery health, governance.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 诊所与健康
  • 你需要填写:SEGMENT_API_TOKEN, SEGMENT_REGION

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SEGMENT_API_TOKEN, SEGMENT_REGION, SEGMENT_MCP_MODE, SEGMENT_PROFILE_TOKEN, SEGMENT_PROFILE_SPACE_ID

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "segment": {
      "command": "uvx",
      "args": [
        "segment-mcp"
      ],
      "env": {
        "SEGMENT_API_TOKEN": "your-value",
        "SEGMENT_REGION": "your-value",
        "SEGMENT_MCP_MODE": "your-value",
        "SEGMENT_PROFILE_TOKEN": "your-value",
        "SEGMENT_PROFILE_SPACE_ID": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add segment --env SEGMENT_API_TOKEN=your-value --env SEGMENT_REGION=your-value --env SEGMENT_MCP_MODE=your-value --env SEGMENT_PROFILE_TOKEN=your-value --env SEGMENT_PROFILE_SPACE_ID=your-value -- uvx segment-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "segment": {
      "command": "uvx",
      "args": [
        "segment-mcp"
      ],
      "env": {
        "SEGMENT_API_TOKEN": "your-value",
        "SEGMENT_REGION": "your-value",
        "SEGMENT_MCP_MODE": "your-value",
        "SEGMENT_PROFILE_TOKEN": "your-value",
        "SEGMENT_PROFILE_SPACE_ID": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "segment": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "segment-mcp"
      ],
      "env": {
        "SEGMENT_API_TOKEN": "your-value",
        "SEGMENT_REGION": "your-value",
        "SEGMENT_MCP_MODE": "your-value",
        "SEGMENT_PROFILE_TOKEN": "your-value",
        "SEGMENT_PROFILE_SPACE_ID": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SEGMENT_API_TOKEN 机密 必填 env
    Segment Public API token. Only a Workspace Owner can mint one — Segment App -> Workspace Settings -> Access Management -> Tokens -> Create Token -> Public API.
  • SEGMENT_REGION 必填 env
    Workspace region: 'us' or 'eu'. No default — must be set explicitly, or the server refuses to start.
  • SEGMENT_MCP_MODE env
    read (default) | write | admin. Every tool in v0.1 is read-only regardless of this setting.
  • SEGMENT_PROFILE_TOKEN env
    Separate credential for the Profile API (not yet wired to a tool in this version). Leave unset.
  • SEGMENT_PROFILE_SPACE_ID env
    Unify Space ID for the Profile API (not yet wired to a tool in this version). Leave unset.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 katekruger 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“诊所与健康”中的其他服务器比较i

  • 星标数多于此分类中其他 870 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 870 个服务器的 36% 更新
  • 基础检查结果等于或优于此分类中其他 870 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

segment-mcp 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:SEGMENT_API_TOKEN, SEGMENT_REGION

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.2)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Mirobody, FHIR MCP Server, Google Health MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Mirobody

作者:thetahealth

Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.

在你的电脑上运行★ 1,408Apache-2.06天前更新
安装

FHIR MCP Server

作者:wso2

MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications

在你的电脑上运行★ 137Apache-2.09天前更新
安装

Google Health MCP

作者:davidmosiah

Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents

在你的电脑上运行★ 79MIT4个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

segment-mcp

A read-first MCP server for Twilio Segment. Answers which destinations get which events, which sources are dead, and which are governed by nothing — the questions nobody can answer without clicking through forty screens.

Read-only by default

SEGMENT_MCP_MODE defaults to read, and every tool this server ships today is a read. Shipping with zero write tools is a feature, not a limitation — see BUILD-PLAN.md §2. write and admin modes exist in the tier model (src/segment_mcp/modes.py) for when gated writes land; right now there is nothing for them to unlock.

What this refuses to do — permanently, not "for now"

POST /regulations and POST /regulations/sources/{id} — workspace-scoped, irreversible deletion or suppression of user data across every source — are unreachable in every mode, with no configuration path to enable them. Three independent things enforce this: the mode-authorization layer refuses it before even checking the current mode, the API client refuses to send the request before it reaches the network, and no tool this server registers references it in any form.

This isn't a gate waiting for the right permission level. It's a line, because these endpoints accept an array of subjects and one malformed or hallucinated call can permanently delete thousands of profiles with no undo. Full reasoning: [docs/what-this-refuses-to-do.md](docs/what-this-refuses-to-do.md).

Quick start

Requires a Segment workspace on Team or Business tier and a Public API token (see Prerequisites below).

gh repo clone katekruger/segment-mcp

cd segment-mcp uv sync cp .env.example .env # fill in SEGMENT_API_TOKEN and SEGMENT_REGION uv run segment-mcp

Point an MCP client (Claude Desktop, Claude Code, etc.) at it over stdio. The server refuses to start — loudly, with a clear message — if the token, region, or workspace tier isn't right; see Startup checks.

The five tools

Each composes several Public API calls into one structured answer, not a raw endpoint dump:

ToolQuestion it answers
audit_event_routingWhich destinations get which events?
trace_eventGiven an event name: where does it go, and is it governed by anything?
find_stale_sourcesWhich sources have no recent data — dead instrumentation vs. simply new?
check_delivery_healthIs this destination silently failing?
find_ungoverned_sourcesWhich sources are governed by nothing, or allowing unplanned events through?

Prerequisites

  • Team or Business tier. The Public API is not available on Free or Add-on plans. There is no workaround, and the server's startup checks fail with a clear message rather than a raw 403 if your workspace doesn't qualify.
  • A Public API token. Only a Workspace Owner can mint one: Segment App → Workspace Settings → Access Management → Tokens → Create Token → Public API (not Config API).

Region configuration

SEGMENT_REGION=us   # or eu

There is no default — you must set this explicitly. An EU workspace whose API calls are pointed at the US endpoint doesn't error; it just silently returns nothing, which is a far worse failure mode than a crash. This server's startup checks call the API once with your configured region and fail loudly if the token doesn't actually belong to it, naming the region that does.

Startup checks

All fatal — the server refuses to start rather than fail confusingly on the first tool call:

  1. SEGMENT_REGION is set and one of us/eu.
  2. SEGMENT_API_TOKEN is present and actually authenticates against that region.
  3. The workspace's tier supports the Public API — a Free-tier workspace gets a clear "requires Team or Business tier" message, not a raw 403.

Modes

SEGMENT_MCP_MODE = read (default) | write | admin
  • `read` — every tool above. No mutation reachable, at any mode.
  • `write` — would add Tier 3 replace-semantics changes (none shipped yet), each echoed back for confirmation before executing.
  • `admin` — would add Tier 2 deletes (none shipped yet), gated behind a *typed* confirmation naming the exact resource — not just confirm=true.

See src/segment_mcp/modes.py for the full tier model and docs/what-this-refuses-to-do.md for what stays out of scope regardless of mode.

Profile API — a separate, higher trust tier

The Profile API returns PII on named individuals — traits, external IDs, event history, and identity links for a specific person. This is the most privacy-sensitive read anywhere in this server's surface, so it is walled off from everything else:

  • A separate credential, SEGMENT_PROFILE_TOKEN — never the main SEGMENT_API_TOKEN. Also requires SEGMENT_PROFILE_SPACE_ID (your Unify Space ID, not your workspace ID).
  • Explicit opt-in. If SEGMENT_PROFILE_TOKEN is unset, no profile tool is registered — the capability doesn't exist for that server instance.
  • Every lookup is logged — collection, id_type, and the caller — before the request is even sent, via client/profile_api.py's segment_mcp.profile_api logger. The log records *that* a lookup happened and *which* profile, as a truncated SHA-256 digest of the lookup key, never the raw identifier — this client never logs the raw identifier itself, and it silences httpx's own request-URL log process-wide at construction so the identifier doesn't leak that way either, since the Profile API puts it in the URL path. The digest cannot be reversed back to the identifier, but repeated lookups of the same profile are still correlatable across log lines for auditing.
  • Lookups are case-sensitive. The wrong case returns an empty result, not an error — this client lowercases every lookup value at its boundary and logs a warning when it had to.

No profile-lookup MCP tool is wired into server.py yet — this is the client and trust-boundary machinery a future tool will be built on, per BUILD-PLAN.md's v0.2 scope.

Development

uv sync

uv run pre-commit install uv run ruff check . && uv run ruff format --check . && uv run pyright && uv run pytest

See CONTRIBUTING.md and AGENTS.md.

See also

Every project here shares one idea: a GTM system should refuse to act on data it cannot verify.

campaign-preflight — the same refusal to coerce missing evidence into a pass. insufficient_data is its own state in both.

pipeline-waterfall — downstream of this. Reconciles the bookings and pipeline waterfall, and fails the build rather than reporting a bridge that does not tie out.

License

MIT — see LICENSE.

问 PopNx