Nefesh — Real-Time Human State Awareness for AI

ai.nefesh由 nefesh.ai 发布官方发布者v4.0.0更新于 Oct 24, 2026

Fuses biometric signals into a stress score (0-100) for AI adaptation. MCP + A2A native.

已验证Streamable HTTP可网页运行位置与生活AI 与机器学习

概览

AI 生成的概览

远程 MCP 服务器,将生物特征信号融合为压力评分和建议动作,让 AI 助手实时调整回应方式。

可以做什么
  • 读取某个会话当前的统一人类状态,包括压力评分、置信度和建议动作
  • 发送心率、心率变异性、语音语调、表情或情绪等信号,取回融合后的状态
  • 查看会话带时间戳的状态历史,以及上升、下降或平稳的整体趋势
  • 获取对象的心理触发档案,区分仍活跃与已缓解的话题
  • 永久删除某个对象的全部会话与触发记忆
  • 通过邮件验证流程申请并轮询免费 API 密钥
适用场景
适合希望助手在对话中根据对方压力水平调整语气或长度的场景,例如缩短或缓和回应;也适合需要跨会话记住哪些话题会稳定引发压力的用途。若你在构建需要机器可读人类状态信号的智能体,而不想靠提示词调优,也可考虑。
运行要求
远程 Streamable HTTP 端点,无需本地安装。需要 API 密钥,通过 X-Nefesh-Key 请求头传递;密钥可在服务商注册页获取,或通过 request_api_key 与 check_api_key_status 工具申请,后者需要用户真实邮箱并点击验证链接。免费额度为每月 1,000 次调用、每分钟 10 次请求,另有付费方案。
安装前请注意
涉及敏感生理与心理数据:压力评分、生物特征信号,以及按对象标识关联的、记录哪些话题引发压力的触发档案。delete_subject 删除不可恢复,只应在用户明确要求时调用。申请密钥流程需要真实邮箱,密钥仅返回一次,须妥善保存。服务商声明其非医疗设备且不存储个人身份信息,但该说法需自行判断。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 Nefesh — Real-Time Human State Awareness for AI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.nefesh%2Fhuman-state/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "nefesh-real-time-human-state-awareness-f": {
      "type": "http",
      "url": "https://mcp.nefesh.ai/mcp"
    }
  }
}

README

Nefesh MCP + A2A Server

A Model Context Protocol and Agent-to-Agent (A2A) server that gives AI agents real-time awareness of human physiological state.

What it does

Send sensor data (heart rate, voice, facial expression, text sentiment), get back a unified state with a machine-readable action your agent can follow directly. Zero prompt engineering required.

On the 2nd+ call, the response includes adaptation_effectiveness — telling your agent whether its previous approach actually worked. A closed-loop feedback system for self-improving agents.

Adaptation Effectiveness (Closed-Loop)

Most APIs give you a state. Nefesh tells you whether your reaction to that state actually worked.

On the 2nd+ call within a session, every response includes:

{
  "state": "focused",
  "stress_score": 45,
  "suggested_action": "simplify_and_focus",
  "adaptation_effectiveness": {
    "previous_action": "de-escalate_and_shorten",
    "previous_score": 68,
    "current_score": 45,
    "stress_delta": -23,
    "effective": true
  }
}

Your agent can read effective: true and know its previous de-escalation worked. If effective: false, the agent adjusts its strategy. No other human-state system provides this feedback loop.

Setup

Option A: Connect first, get a key through your agent (fastest)

Add the config without an API key — your agent will get one automatically.

{
  "mcpServers": {
    "nefesh": {
      "url": "https://mcp.nefesh.ai/mcp"
    }
  }
}

Then ask your agent:

"Get me a free Nefesh API key using my email address"

The agent calls request_api_key → you click one email link → the agent picks up the key. No signup form, no manual copy-paste. After that, add the key to your config for future sessions:

{
  "mcpServers": {
    "nefesh": {
      "url": "https://mcp.nefesh.ai/mcp",
      "headers": {
        "X-Nefesh-Key": "nfsh_free_..."
      }
    }
  }
}

Option B: Get a key first, then connect

Sign up at nefesh.ai/signup (1,000 calls/month, no credit card), then add the config with your key:

{
  "mcpServers": {
    "nefesh": {
      "url": "https://mcp.nefesh.ai/mcp",
      "headers": {
        "X-Nefesh-Key": "YOUR_API_KEY"
      }
    }
  }
}

Agent-specific config files

AgentConfig file
Cursor~/.cursor/mcp.json
Windsurf~/.codeium/windsurf/mcp_config.json
Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.json
Claude Code.mcp.json (project root)
VS Code (Copilot).vscode/mcp.json or ~/Library/Application Support/Code/User/mcp.json
Clinecline_mcp_settings.json (via UI: "Configure MCP Servers")
Continue.dev.continue/config.yaml
Roo Code.roo/mcp.json
Kiro (Amazon)~/.kiro/mcp.json
OpenClaw~/.config/openclaw/mcp.json
JetBrains IDEsSettings > Tools > MCP Server
Zed~/.config/zed/settings.json (uses context_servers)
OpenAI Codex CLI~/.codex/config.toml
Goose CLI~/.config/goose/config.yaml
ChatGPT DesktopSettings > Apps > Add MCP Server (UI)
Gemini CLISettings (UI)
AugmentSettings Panel (UI)
ReplitIntegrations Page (web UI)
LibreChatlibrechat.yaml (self-hosted)
VS Code (Copilot) — uses servers instead of mcpServers
{
  "servers": {
    "nefesh": {
      "type": "http",
      "url": "https://mcp.nefesh.ai/mcp",
      "headers": {
        "X-Nefesh-Key": "<YOUR_API_KEY>"
      }
    }
  }
}
Zed — uses context_servers in settings.json
{
  "context_servers": {
    "nefesh": {
      "settings": {
        "url": "https://mcp.nefesh.ai/mcp",
        "headers": {
          "X-Nefesh-Key": "<YOUR_API_KEY>"
        }
      }
    }
  }
}
OpenAI Codex CLI — uses TOML in ~/.codex/config.toml
[mcp_servers.nefesh]
url = "https://mcp.nefesh.ai/mcp"
Continue.dev — uses YAML in .continue/config.yaml
mcpServers:
  - name: nefesh
    type: streamable-http
    url: https://mcp.nefesh.ai/mcp

All agents connect via Streamable HTTP — no local installation required.

A2A Integration (Agent-to-Agent Protocol v1.0)

Nefesh is also available as an A2A-compatible agent. While MCP handles tool-calling (your agent calls Nefesh), A2A enables agent-collaboration — other AI agents can communicate with Nefesh as a peer.

Agent Card: /.well-known/agent-card.json

A2A Endpoint: POST https://mcp.nefesh.ai/a2a (JSON-RPC 2.0)

A2A SkillDescription
get-human-stateStress state (0-100), suggested_action, adaptation_effectiveness
ingest-signalsSend biometric signals, receive unified state
get-trigger-memoryPsychological trigger profile (active vs resolved)
get-session-historyTimestamped history with trend

Same authentication as MCP — X-Nefesh-Key header or Authorization: Bearer token. Free tier works on both protocols.

Source: nefesh-ai/nefesh-a2a · Docs: nefesh.ai/docs/a2a

MCP Tools

ToolAuthDescription
request_api_keyNoRequest a free API key. You MUST ask the user for their real email first. Do not invent or guess emails. The user receives a verification link they must click. Poll with check_api_key_status until ready.
check_api_key_statusNoPoll for API key activation using the same email the user provided. Returns pending or ready with API key.
get_human_stateYesGet stress state (0-100), suggested_action (maintain/simplify/de-escalate/pause), and adaptation_effectiveness — a closed-loop showing whether your previous action reduced stress.
ingestYesSend biometric signals (heart rate, HRV, voice tone, expression, sentiment, 30+ fields) and get unified state back. Include subject_id for trigger memory.
get_trigger_memoryYesGet psychological trigger profile — which topics cause stress (active) and which have been resolved over time.
get_session_historyYesGet timestamped state history with trend (rising/falling/stable).

How self-provisioning works

Your AI agent can get a free API key autonomously. You only click one email link.

  1. Agent asks you: "What is your email address?"
  2. Agent calls request_api_key(your_real_email). No API key needed for this call.
  3. You receive a verification email and click the link
  4. Agent polls check_api_key_status(your_real_email) every 10 seconds
  5. Once verified, the agent receives the API key and can use all other tools

Important: The agent must use your real, accessible email address. Disposable emails are blocked. The verification link must be clicked by you to activate the key.

Free tier: 1,000 calls/month, all signal types, 10 req/min. No credit card.

Quick test

After adding the config, ask your AI agent:

"What tools do you have from Nefesh?"

It should list the 6 tools above.

Pricing

PlanPriceAPI Calls
Free$01,000/month, no credit card
Solo$25/month50,000/month
EnterpriseCustomCustom SLA

CLI Alternative

Prefer the terminal over MCP? Use the Nefesh CLI (10-32x lower token cost than MCP for AI agents):

npm install -g @nefesh/cli
nefesh ingest --session test --heart-rate 72 --tone calm
nefesh state test --json

GitHub: nefesh-ai/nefesh-cli

Gateway Alternative

Want the AI to adapt automatically? Use the Nefesh Cognitive Compute Router. Change your LLM base URL to gateway.nefesh.ai and the gateway adjusts system prompt and temperature based on biometric state. Three modes: OpenAI-compatible (/v1/chat/completions), Anthropic passthrough (/v1/messages), and Unified Anthropic for any backend. Zero code changes.

GitHub: nefesh-ai/nefesh-gateway

Human State Protocol (HSP)

Nefesh implements and maintains the Human State Protocol, an open specification for exchanging human physiological state between AI systems. HSP defines a standard JSON format for stress scores, behavioral recommendations, and adaptation feedback so any agent can produce or consume human state data interoperably. Apache 2.0.

GitHub: nefesh-ai/human-state-protocol · Docs: nefesh.ai/docs/hsp

Documentation

Privacy

  • No video or audio uploads — edge processing runs client-side
  • No PII stored
  • GDPR/BIPA compliant — cascading deletion via delete_subject
  • Not a medical device — for contextual AI adaptation only

License

MIT — see LICENSE.

来源:README.md,提交 24172f1

工具

7

get_human_state

Get current unified human state for a session. Call this before generating important responses. Returns: - state: calm | relaxed | focused | stressed | acute_stress - stress_score: 0-100 (lower = calmer) - confidence: 0.0-1.0 (based on signal quality and device type) - suggested_action: maintain_engagement | simplify_and_focus | de-escalate_and_shorten | pause_and_ground…

输入参数session_id必填

ingest

Send biometric signals from any sensor, get unified state back. Required: session_id + timestamp (ISO 8601) + at least one signal. Send whatever you have — the API fuses all signals into one state. Common signals (highest impact): - heart_rate (bpm, 30-220) + rmssd (ms) — cardiovascular - tone: calm | tense | anxious | hostile — vocal - sentiment: -1.0 to 1.0 — textual…

输入参数edagazesdnnspo2tonepnn50rmssdposture另有 29 个

get_trigger_memory

Retrieve psychological trigger profile for a subject. Returns which conversation topics consistently cause stress (active triggers) and which have been resolved over time. - active triggers: topics where stress was elevated across multiple sessions. Tread carefully. - resolved triggers: topics where stress has decreased. Safe to explore deeper. Each trigger includes…

输入参数subject_id必填

get_session_history

Get state history for a session over time. Returns timestamped datapoints with stress_score, state, and heart_rate for each observation. Includes an overall trend: rising | falling | stable. Use minutes parameter to control the lookback window (default: 5, max: 60). Useful for detecting stress patterns during a conversation. Not a medical device.

输入参数minutessession_id必填

delete_subject

Permanently delete all sessions and trigger memory for a subject. Irreversible. Only call when the user explicitly requests this deletion.

输入参数subject_id必填

request_api_key

Start free API key authorization; no existing API key needed. Returns a verification_url. Ask the user to open that URL in their browser, enter their own email, then open the verification email and confirm access for their agent. This tool does not accept email addresses and does not send email. Do not choose, invent, or submit an email on the user's behalf. Poll…

无需输入参数。

check_api_key_status

Check a pending API key authorization using its request_id. Use request_id exactly as returned by request_api_key, never an email. Poll every 10 seconds. awaiting_user means the user must open the URL; pending means email verification is still required. ready returns the API key once only. Store it and include it in all subsequent HTTP calls. Stop on expired; ask the user…

输入参数request_id必填

版本历史

1
  1. v4.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

这个评分如何计算