humanchain-mcp
HumanChain lets your AI agent ask a real person. When the agent hits a call that needs judgment, it fires a consult: the question — with the answer choices the agent wrote for it — lands on the phone of someone on your panel; they tap; the answer comes back to the agent marked as a human's, with who answered, how confident they were, and how long it took. If no human answers in time, the agent is told so plainly; it is never handed a machine's guess dressed as a person's.
This package is the plug: an MCP server that exposes consult, consult_start and
consult_status to Claude Code, Claude Desktop, Codex, Cursor and any other MCP-aware agent. It is
MIT-licensed — copy it, embed it, ship it in your own stack. Everything that happens after the
question leaves your machine — who is asked, how, and what the answer is worth — happens at
HumanChain behind your key.
Setup — one command
You need an invite. Sign in at app.humanchain.ai/master with your invite code; the key screen shows a command with your key already in it. Copy it, paste it into a terminal, press Enter:
curl -fsSL https://app.humanchain.ai/install | HC_KEY=hc_your_key_here sh
It finds or installs Python and pipx, removes any older copy that would shadow the new one, installs
this server, registers it in Claude Code, Codex and Claude Desktop (whichever you have, with full
paths so they find it), runs a health check, and prints ✓ DONE with the next step. Safe to run
again. Nothing to edit by hand.
Then, in your agent:
ask my HumanChain panel: "…your question…" and wait for a human
Prefer to do it by hand? pipx install humanchain-mcp, then give your agent the command
humanchain-mcp with two environment values: HUMANCHAIN_API_KEY and
HUMANCHAIN_BACKEND=https://app.humanchain.ai (there is no default backend, on purpose — your
questions go only where you say). Optional: HUMANCHAIN_CHAIN_ID pins every consult to one chain.
What the agent sees
Three tools. consult_start fires a consult and returns a job id; consult_status polls it;
consult is the blocking form and turns itself into a job when the wait is longer than a tool call
can hold, so a question is never sent twice.
Every consult carries its own answer choices. answer_format is required — binary with the two
labels the agent writes for the question, mcq/msq with named options, rating_scale, or
free_text on purpose. The desk never invents Approve / Reject on the agent's behalf; the person
on the phone sees the choice the question actually needs.
Every reply starts with a SCOPE: line naming the chain the question went to, and every answer
states its provenance: human, or llm_fallback when nobody answered in time (which happens only if
you allowed it).
=== HUMAN ANSWER (provenance: human) ===
answered by: anonymous | confidence: 0.7 | latency: 21.0s
ANSWER: City loft — central and walkable, €4,500
Check it works
HUMANCHAIN_API_KEY=hc_your_key_here HUMANCHAIN_BACKEND=https://app.humanchain.ai humanchain-mcp doctor
Three [PASS] lines: config, backend reachable, key accepted with your balance.
Clean slate
curl -fsSL https://app.humanchain.ai/install | sh -s -- --uninstall
Pricing
Your invite comes with a free allowance of consults. After that, top up credits in the console; each consult costs credits, and more consult types are available on your plan. Details at humanchain.ai/pricing.
Documentation
Everything you need is on this page. Start at app.humanchain.ai/developer (invite code required); the key screen there shows your install command with the key filled in.
Environment variables
| Variable | Required | Meaning |
|---|---|---|
HUMANCHAIN_API_KEY |
yes | your key (hc_…), from the key screen |
HUMANCHAIN_BACKEND |
yes | https://app.humanchain.ai — no default, by design |
HUMANCHAIN_CHAIN_ID |
no | pin every consult to one chain (the chain page's command sets it) |
HUMANCHAIN_MODE |
no | sandbox returns synthetic answers with no key, for CI |
HUMANCHAIN_TIMEOUT_MS |
no | HTTP timeout for hub calls (not the human wait) |
License
MIT. The plug is free; the desk is HumanChain's.
Metadata
Release files for humanchain-mcp 0.27.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| humanchain_mcp-0.27.2.tar.gz | 49.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| humanchain_mcp-0.27.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.3 kB
Release files / humanchain_mcp-0.27.2.tar.gz
| Download URL | humanchain_mcp-0.27.2.tar.gz |
|---|---|
| Size | 49.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce640e174266b76c97c570f56707f2d20d8336ac0a9a77bd3b6f792184147d09
|
|
BLAKE2b-256 checksum How to use checksums |
bf98f890970f3a7f4d8ed64a1263e81480482eede57a2419aa8ad02402348f53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / humanchain_mcp-0.27.2-py3-none-any.whl
| Download URL | humanchain_mcp-0.27.2-py3-none-any.whl |
|---|---|
| Size | 35.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fd621fa6ac13ff12aed12cc5fe51e53c892e311957050b460f004124f4879f5
|
|
BLAKE2b-256 checksum How to use checksums |
84f978baefbf61e0cd1d3b2499b5f9be7d2a0244abada5ad7171247f5d8213a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|