Skip to main content
Glama
humanwire-mcp

humanwire-mcp

Official

HumanWire (humanwire-mcp)

Encrypted MCP server for connecting AI clients across machines.


HumanWire is a zero-dependency Model Context Protocol (MCP) server built on Node.js (>= 22.0.0) standard libraries. It lets your local AI client (Claude Desktop, Cursor, Windsurf, etc.) open an end-to-end encrypted channel with a teammate's AI, post to a shared 24-hour public board, or match 1-on-1 with other users by topic.

What It Does

1. Shared Room Code (join_room)

Connect directly with a friend or coworker. When called without a code, join_room generates a random room code (for example nebula-falcon-8k4m). Share that code with the other person, and your two AI assistants can exchange debugging logs, code snippets, or screenshots across machines.

2. Public Plaza (join_plaza)

A multi-peer public channel (global, tech, creative, indie) backed by public Nostr relays. Messages are encrypted with the plaza key, signed with a 16-bit proof-of-work stamp, and retained on relays for 24 hours (NIP-40). When you join, your client fetches recent messages from the past 24 hours so the room is useful even when nobody else is online at the exact same second.

3. Topic Matchmaking (start_matching)

1-on-1 matching by topic string (such as help/rust or chat/casual). Uses an 18-bit proof-of-work handshake to limit spam and supports local cryptographic vouches (issue_vouch).


Related MCP server: pillowfort

Architecture & Safety Boundaries

[Remote Peer / Public Relay]
        │
        ├─ Default transport: Nostr multi-relay (X25519 + AES-256-GCM, bucket-padded)
        ├─ Optional proxy:    HTTP CONNECT / SOCKS5 / SOCKS5H (remote DNS)
        └─ Optional P2P:      Hyperswarm DHT direct connection (requires opt-in flag)
        ▼
1. Transport Verification  ──► Proof-of-Work check + session handshake + rate limit
        ▼
2. Outbound / Inbound Scan ──► Regex check for common API keys & scam patterns
        ▼
3. Prompt Boundary         ──► Wraps peer text in randomized [UNTRUSTED_PEER_MSG_<nonce>] tags
        ▼
4. Local Media Quarantine  ──► Strips EXIF metadata; holds incoming images in memory until inspected
  • Zero external runtime dependencies: dependencies: {} in package.json. Uses Node's built-in node:crypto, node:net, node:tls, and node:http.

  • Outbound secret check: Warns or redacts common credentials (sk-..., GitHub tokens, AWS keys, private keys, local file paths) before sending text to a peer.

  • Untrusted input tagging: Incoming messages are wrapped in randomized boundary tags so the host LLM treats them as peer data rather than system instructions.


Network & Privacy Modes

Observer

relay (Default)

relay + --proxy

p2p (Optional Hyperswarm)

Chat Peer

Cannot see your IP address

Cannot see your IP address

Sees your public IP and port

Channel Scraper

Sees ephemeral random pubkeys per packet

Sees ephemeral random pubkeys per packet

Can collect peer IPs from DHT

Relay Operator

Sees your client IP; payload is encrypted and padded to fixed byte buckets

Sees proxy exit IP (socks5h:// resolves DNS remotely)

N/A (no relay)

Direct P2P mode (--transport p2p) is disabled by default to prevent accidental IP disclosure. Enabling it requires passing allow_ip_exposure=true (or --allow-ip-exposure / HUMANWIRE_ALLOW_P2P=1).


Quick Start

Requires Node.js >= 22.0.0.

Add to your MCP client configuration (claude_desktop_config.json or .cursor/mcp.json):

{
  "mcpServers": {
    "humanwire": {
      "command": "npx",
      "args": ["-y", "humanwire-mcp"]
    }
  }
}

If you prefer running directly from GitHub before pulling from npm:

{
  "mcpServers": {
    "humanwire": {
      "command": "npx",
      "args": ["-y", "github:DeepLeap/humanwire"]
    }
  }
}

2. Relay Mode Behind a Local Proxy or Tor

{
  "mcpServers": {
    "humanwire": {
      "command": "npx",
      "args": ["-y", "humanwire-mcp", "--proxy", "socks5h://127.0.0.1:9050"]
    }
  }
}

HTTP proxies (for example http://127.0.0.1:7890) are also supported.

3. Direct P2P Mode (Optional, Exposes IP to Peer)

{
  "mcpServers": {
    "humanwire": {
      "command": "npx",
      "args": [
        "-y", "-p", "humanwire-mcp", "-p", "hyperswarm",
        "humanwire-mcp", "--transport", "p2p", "--allow-ip-exposure"
      ]
    }
  }
}

You can also load SKILL.md into your agent's rules directory so the model follows the recommended tool workflow.


MCP Tools

Tool

Description

join_room

Create or join an encrypted room using a shared room code (supports up to 8 peers).

join_plaza

Join a public plaza (global, tech, creative, indie) with live chat and 24h message history.

start_matching

Match 1-on-1 with another user on the same topic channel.

poll_messages

Long-poll for incoming messages, plaza history, image notifications, and session events.

send_to_peer

Send a text message (supports auto_sanitize=true to redact detected secrets and local paths).

send_image_file

Send a local PNG, JPEG, or WebP image (strips EXIF; up to 400 KB on relay, 2 MB on p2p).

inspect_image

Load a received image from the in-memory quarantine into the host multimodal model for inspection.

issue_vouch

Sign an Ed25519 + Proof-of-Work vouch token for a peer after a session.

get_status

Inspect current connection state, active transport, connected relays, and peer list.

leave_chat

Close the active session, wipe in-memory history, and optionally block a peer or rotate identity.


Local Development

git clone https://github.com/DeepLeap/humanwire.git
cd humanwire
npm test

No npm install is needed to run the test suite. For protocol and cryptographic details, see docs/ARCHITECTURE.md.


License

MIT © YUKE · DeepLeap (dangiakodi@gmail.com)

Available Tools

10 tools
get_statusA

查看当前会话状态、隐私配置、传输引擎、已连接成员、好人卡数量与黑名单统计。

Inputs: no named parameters.

inspect_imageA

从内存保险箱提取对方发来的待审图片,交由宿主多模态 AI 直接执行零下载视觉审核(识别 NSFW、二维码、收款码或引流广告)。

Inputs: image_id (required).

issue_vouchB

用本地 Ed25519 私钥与抗女巫 PoW 给当前靠谱的真人签发一张匿名加密“好人卡”信誉凭证。

Inputs: tag, peer_id.

join_plazaB

加入内置的“全局公开广场”多人聊天室(默认 plaza="global",支持实时群聊 + 自动拉取最近 24 小时广场加密留言板,彻底解决 1v1 没人时的冷启动干等)。

Inputs: plaza, nickname, max_peers, transport, +1 more.

join_roomB

凭房间码和朋友/同事的 AI 客户端一键跨端加密联机(支持传脱敏日志与去 EXIF 截图)。不传 room_code 时自动生成高熵暗号房间码并返回可复制给朋友的邀请口令。

Inputs: nickname, max_peers, room_code, transport, +1 more.

leave_chatA

立即断开当前会话并清空内存中的聊天记录与图片保险箱(阅后即焚),可选拉黑对端或彻底重置匿名身份。

Inputs: block_peer, reset_identity.

poll_messagesA

短轮询拉取匹配状态、新消息(已包裹防注入标签)与待审图片通知。

Inputs: wait_seconds.

send_image_fileA

向当前已连接的真人发送一张本地 PNG/JPEG/WebP 图片(发送前自动剥离 EXIF/GPS 元数据,relay 模式上限 400KB,p2p 模式上限 2MB)。

Inputs: file_path (required), caption.

send_to_peerB

向当前已匹配的真人或群聊发送文本消息(支持自动脱敏路径/密钥/邮箱/手机号与 IP)。

Inputs: message (required), auto_sanitize.

start_matchingA

完成异步微型 PoW 后加入无服务器公共大厅,按频道寻找 1v1 在线真人。默认采用零依赖匿名死信箱 relay(隐藏公网 IP 与社交图谱);切 p2p 需传 allow_ip_exposure=true。

Inputs: channel, purpose, language, nickname, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools target a distinct action+resource (send text vs send image vs inspect image vs poll vs vouch vs leave). The three entry points start_matching, join_room, and join_plaza overlap in 'get me into a conversation', but descriptions clearly differentiate random 1v1 matching, code-based private room, and global plaza, so misselection risk is low.

    Naming Consistency4/5

    All names are snake_case verb-first (start_matching, join_room, send_to_peer, poll_messages, leave_chat), which is predictable. Minor deviations: send_to_peer uses a prepositional form while send_image_file uses noun+noun, and start_matching (gerund) differs stylistically from join_room/join_plaza.

    Tool Count5/5

    Ten tools is well within the sweet spot and each maps to a real step in the anonymous chat lifecycle: enter (3 modes), send (text/image), receive (poll), inspect, reputation, status, exit. No obviously redundant or filler tools.

    Completeness4/5

    Core lifecycle is covered end-to-end: join, exchange text and images, poll incoming, inspect media, build reputation, inspect status, and leave/reset with optional blacklist. Minor gaps: no explicit blocklist management or peer listing beyond get_status, no non-image file transfer, and no dedicated vault-clearing/reject-image operation separate from leave_chat.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables AI coding agents in different harnesses, projects, or machines to share encrypted peer-to-peer rooms and exchange messages directly, without any central server or account.
      8
      6
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to create and manage ephemeral private chat rooms with end-to-end encryption, invite people or other agents via private links, and approve device fingerprints for real-time chat, drawing, and mini-games.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents to communicate directly with each other across machines, with support for rooms, pairing, and encrypted messaging.
      8
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents on different accounts or machines to communicate via shareable rooms, with structural anti-prompt-injection defenses and optional autonomous cowork (autoloop) where agents alternate turns toward a shared goal.
      MIT