Human Survey

io.github.sunsiyuan由 GitHub 账号 sunsiyuan 发布v1.2.0更新于 Oct 24, 2026

Self-reported attribution: which channel and which creator your users first heard you from.

发布方自己的服务:TAP

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

HumanSurvey 的 MCP 服务器,让助手配置“你是如何知道我们的”归因表单,并读回回答与汇总数据。

可以做什么
  • 创建并配置归因表单,平台选项取自目录,创作者选项由调用方提供
  • 读回结果:按选项与日期范围的汇总、原始回答流,以及等待映射的自由文本
  • 通过重映射回溯性地处理未解析的自由文本回答
  • 用同一个 external_id 键把回答与自有用户及收入关联
适用场景
适合希望由助手在注册或支付流程中搭建并维护一个自报归因问题,并把渠道与创作者结果取回自有分析、而不依赖人工仪表盘的场景。
运行要求
通过 npx 从 npm 包 humansurvey-mcp 本地运行(需要 Node.js)。需要 HumanSurvey 账号,并通过环境变量 HUMANSURVEY_API_KEY 提供 API 密钥;需要访问 HumanSurvey API 的网络。仅限桌面端。
安装前请注意
API 密钥(HUMANSURVEY_API_KEY)可访问账号下的表单与回答数据,请勿放入共享配置。助手可创建和重新配置表单并写入重映射,从而改变已存回答的读取方式;配置变更以不可变快照保存。受访者回答与你的外部用户 ID 会发送到 HumanSurvey 的服务器。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Human Survey,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

HumanSurvey

Website: humansurvey.co · Docs: humansurvey.co/docs · FAQ: humansurvey.co/faq

[human-survey MCP server]

Attribution for the channels that have no referrer.

HumanSurvey asks one question — how did you hear about us — inside the host's own signup or payment flow, at a granularity that is actually actionable: the platform first, then which creator, podcast, event or store.

text
Agent configures a form   → platforms from the catalog, creators supplied by the callerHost embeds /s/{id}       → in its signup flow, its payment flow, or bothRespondent answers        → picks a platform; that pick expands the follow-up in placeHost pushes conversions   → POST /api/attribution/events, keyed on its own user idAgent reads back          → rollup, raw response stream, free text awaiting a mapping

What is this?

An API and MCP server for self-reported attribution. TikTok in-app, Instagram, podcasts, communities, word of mouth, AI assistants: the exposure happens where tracking cannot reach, and asking a human is the only always-on signal that survives every referrer leak.

Two placements answer different questions. In the payment flow, the respondent is already a paying customer, so the answer joins to revenue with no conversion ingest at all. In the signup flow, it is the only way to see the people a channel sends who never pay. Divide a channel's share of the paying population by its share of the signup population. Above 1 it converts better than your average, below 1 worse. Multiply that ratio by your overall signup-to-paid rate to get the channel's own rate.

It is designed for:

  • hosts embedding a form in their own onboarding or checkout
  • agents that keep the candidate list current and read the results back

It is not designed for:

  • general-purpose surveys — arbitrary question types, Markdown authoring and conditional logic were removed in the attribution pivot
  • a human-facing analytics dashboard: the aggregates are an API resource, and the agent is the dashboard
  • reaching your audience for you — HumanSurvey never contacts respondents; the transports it offers (the /s/{id} URL and the iframe embed) are ones you control

Features

  • Progressive disclosure, not pagination — POST the platform answer, PATCH the follow-up. The first answer is durable before the second is asked, and a respondent who abandons the follow-up is still real data.
  • Rotation by default — the orderable candidates are permuted per respondent, seeded by a client-minted render_id, so the raw share is unbiased by construction. fixed order exists for callers who want it and does not hide its bias.
  • Retroactive remapping — free text is stored verbatim and resolved against the remap table on every read, so one mapping fixes months of history with no backfill.
  • Immutable config snapshots — a response is joined to the version it was rendered against, so reconfiguring cannot rewrite what history says was shown.
  • One join key, both directions — external_id brings revenue in and carries per-user attribution back out to your own user table.
  • Cursor reads — a response becomes visible once it is complete, is emitted exactly once, and is final when emitted. Nothing downstream has to upsert.

Product Principles

  • AI-first I/O: agents configure the form and consume the results; humans are in the middle.
  • Everything is an API: creator functionality must be available over authenticated HTTP and MCP.
  • Narrow scope wins: one question, asked well. A feature that mainly serves a human survey operator probably does not belong here.
  • No confident percentages: every number ships beside the denominator it was computed over, and a number we cannot compute honestly is null rather than smoothed.

Quick Start

Get an API key

bash
curl -X POST https://www.humansurvey.co/api/auth/code \  -H "Content-Type: application/json" \  -d '{ "email": "[email protected]" }'
curl -X POST https://www.humansurvey.co/api/auth/verify \  -H "Content-Type: application/json" \  -d '{ "email": "[email protected]", "code": "481920", "grant": "api_key" }'

Anonymous key creation is gone. Every key belongs to an account from birth, which is what gives a lost key a recovery path and makes rotation free.

Create a form, then configure it

bash
curl -X POST https://www.humansurvey.co/api/attribution/forms \  -H "Authorization: Bearer hs_sk_..." \  -H "Content-Type: application/json" \  -d '{    "name": "Checkout — how did you hear about us",    "allowed_origins": ["https://app.example.com"]  }'
json
{  "id": "abc123efgh45",  "form_url": "https://www.humansurvey.co/s/abc123efgh45",  "warnings": ["this form has no config yet; PUT /api/attribution/forms/abc123efgh45 with {nodes} before embedding it"]}

A form renders nothing until it has a config. PUT stores one as an immutable snapshot:

bash
curl -X PUT https://www.humansurvey.co/api/attribution/forms/abc123efgh45 \  -H "Authorization: Bearer hs_sk_..." \  -H "Content-Type: application/json" \  -d '{    "nodes": [      {        "id": "channel",        "prompt": "Where did you first hear about us?",        "candidates": [          { "id": "tiktok", "catalog_slug": "tiktok", "expands": "creator" },          { "id": "reddit", "catalog_slug": "reddit" },          { "id": "friend", "label": "A friend or colleague" },          { "id": "dunno", "label": "I don'\''t remember", "pinned": "end", "dont_remember": true }        ]      },      {        "id": "creator",        "prompt": "Which account was it?",        "candidates": [          { "id": "oecuid_8812", "label": "Jade", "handle": "@jade.work0" }        ]      }    ]  }'

Platform labels, marks and aliases come from GET /api/attribution/catalog and are copied into the snapshot. Creator candidates are yours: the product renders a candidate set and returns the id that was chosen, and matching a vague description against a creator database is upstream work.

Read the results

bash
curl "https://www.humansurvey.co/api/attribution/rollup?form_id=abc123efgh45&by=candidate&from=2026-07-01&to=2026-08-01" \  -H "Authorization: Bearer hs_sk_..."

Also on the read side: GET /api/attribution/forms/{id}/responses (cursor stream, or one identity via ?external_id=), .../unresolved for free text awaiting a mapping, and POST .../remaps to resolve it retroactively. Full request and response shapes are in the OpenAPI document.

Use with Claude Code

json
{  "mcpServers": {    "survey": {      "command": "npx",      "args": ["-y", "humansurvey-mcp"],      "env": {        "HUMANSURVEY_API_KEY": "hs_sk_your_key_here"      }    }  }}

The server name stays survey and the package stays humansurvey-mcp — both sit inside every existing user's config. Its ten tools now speak the attribution API — see packages/mcp-server/README.md. npm publishes separately from this repo, so the version on npm can lag what is here.

Public Surface

  • Docs page: https://www.humansurvey.co/docs
  • OpenAPI: https://www.humansurvey.co/api/openapi.json
  • AI index: https://www.humansurvey.co/llms.txt

Tech Stack

ComponentTechnology
FrameworkNext.js (App Router)
DatabaseNeon (serverless Postgres)
FrontendReact + Tailwind CSS
MCP Server@modelcontextprotocol/sdk
DeploymentVercel

Project Structure

├── apps/web/            # Next.js app (API + respondent page + site)│   ├── lib/attribution/ # config, responses, reads, rollup, remap│   └── supabase/migrations/  # applied through scripts/migrate.sh, with a ledger├── packages/mcp-server/ # MCP server for Claude Code└── docs/                # architecture, roadmap, design docs

Contributing

Read CONTRIBUTING.md before opening a PR. The most important rule is scope discipline: new UI variants, analytics dashboards, and human-operator features are usually out of scope.

Development

bash
pnpm installpnpm dev               # Start Next.js dev serverpnpm test              # node --test over apps/web/lib/**/*.test.tspnpm build             # Build all packages

License

MIT

来源:README.md,提交 5ad9b11

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Human 集成