
Nefesh — Real-Time Human State Awareness for AI
ai.nefeshv4.0.0更新于 Sep 29, 2026
Fuses biometric signals into a stress score (0-100) for AI adaptation. MCP + A2A native.
安装
在 SourceWeft 中
- 打开 控制台中的 Nefesh — Real-Time Human State Awareness for AI,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"human-state": {
"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:
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.
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:
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:
Agent-specific config files
VS Code (Copilot) — uses servers instead of mcpServers
Zed — uses context_servers in settings.json
OpenAI Codex CLI — uses TOML in ~/.codex/config.toml
Continue.dev — uses YAML in .continue/config.yaml
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)
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
How self-provisioning works
Your AI agent can get a free API key autonomously. You only click one email link.
- Agent asks you: "What is your email address?"
- Agent calls
request_api_key(your_real_email). No API key needed for this call. - You receive a verification email and click the link
- Agent polls
check_api_key_status(your_real_email)every 10 seconds - 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
CLI Alternative
Prefer the terminal over MCP? Use the Nefesh CLI (10-32x lower token cost than MCP for AI agents):
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
- Full API Reference
- Quick Start
- State Mapping
- MCP Server · Source
- A2A Server · Source
- Cognitive Compute Router (Gateway) · Source
- CLI · Source
- Human State Protocol (HSP) · Source
- A2A Agent Card
- A2A Protocol Spec
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
工具
0版本历史
1- v4.0.0最新Sep 16, 2026


