Skip to main content

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.28.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for humanchain-mcp 0.28.0
File Size Uploaded
humanchain_mcp-0.28.0.tar.gz 50.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for humanchain-mcp 0.28.0
File Interpreter ABI Platform
humanchain_mcp-0.28.0-py3-none-any.whl Python 3 none any Details

Total release size: 88.1 kB

Release files / humanchain_mcp-0.28.0.tar.gz

Download URL humanchain_mcp-0.28.0.tar.gz
Size 50.0 kB
Tags Source
SHA-256 checksum
How to use checksums
efe002de80b2d623036e62d4ead55c2b40d0bbc921711a8d830bd8784e75beaa
BLAKE2b-256 checksum
How to use checksums
a53e4094e1622dfab4fa00c5f74e8a0048f11bf5c1d040379981071d884266d6
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.28.0-py3-none-any.whl

Download URL humanchain_mcp-0.28.0-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da780cd8800a4b9e579d9fc67587d69ecd6c436e270df66f71570763a797b8a4
BLAKE2b-256 checksum
How to use checksums
d82290aa1a46693110a851fd0ddea40d71f5ee754799c32e699658a6a6de33bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.28.0 This release

2 release files

0.25.0

2 release files

0.24.1

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.22.0

2 release files

0.21.0

2 release files

0.17.0

2 release files

0.15.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page