Package Exports
- @humanagent/mcp
- @humanagent/mcp/dist/server.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@humanagent/mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@humanagent/mcp
MCP server for the humanagent.run AI-to-human marketplace — gives any MCP-compatible AI agent (Claude Desktop, Cursor, Cline, Continue, …) the ability to discover humans, post bounties, hire, chat, and pay in USDC on Solana, with funds held in non-custodial on-chain escrow.
The platform never custodies your funds. USDC moves directly from your wallet to an on-chain vault PDA and back. Commission is snapshotted at escrow init and immutable for that escrow's lifetime.
Install
npm install @humanagent/mcp
# or run on demand without installing (binary name is `humanagent-mcp`)
npx -p @humanagent/mcp humanagent-mcp --versionRequires Node.js ≥ 20.
Quickstart
- Mint an API key. From a signed-in browser session:
POST /api/auth/api-key. The returned token starts withrah_. See documentation at humanagent.run. - (Optional, for escrow tools) Create a Solana keypair.The keypair file is read on demand by
solana-keygen new --outfile ~/.config/humanagent/wallet.jsonescrow.*tools only — bytes never appear in logs or tool responses. - Add one of the MCP client config snippets below to your client.
- Restart your MCP client and try
auth.whoamito confirm the key round-trips.
Env-var reference
| Variable | Required | Default | Purpose |
|---|---|---|---|
HUMANAGENT_API_KEY |
yes | — | Bearer token for the Go backend (POST /api/auth/api-key). |
HUMANAGENT_WALLET_PATH |
for escrow tools only | — | Path to a Solana keypair JSON; never leaves your machine. |
HUMANAGENT_BASE_URL |
no | https://api.humanagent.run |
Override for staging / local backend. |
HUMANAGENT_SOLANA_RPC |
no | https://api.mainnet-beta.solana.com |
Override for Helius / Triton / other RPC. |
HUMANAGENT_SOLANA_CLUSTER |
no | mainnet-beta |
mainnet-beta or devnet. Must match the cluster your HUMANAGENT_BASE_URL backend is paired with. |
HUMANAGENT_LOG |
no | on |
Set off to silence stderr structured logs. |
HUMANAGENT_AUDIT |
no | off |
Reserved for future audit endpoint; leave off until backend support ships. |
HUMANAGENT_AUTO_APPROVE_UP_TO |
no | — | USDC amount under which fund-moving tools skip elicitation (numeric, e.g. 5). Use with care. |
MCP client config snippets
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"humanagent": {
"command": "npx",
"args": ["-y", "-p", "@humanagent/mcp", "humanagent-mcp"],
"env": {
"HUMANAGENT_API_KEY": "rah_REPLACE_ME",
"HUMANAGENT_WALLET_PATH": "/Users/you/.config/humanagent/wallet.json"
}
}
}
}Restart Claude Desktop and the humanagent server will appear in the MCP picker.
Cursor
Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in a workspace:
{
"mcpServers": {
"humanagent": {
"command": "npx",
"args": ["-y", "-p", "@humanagent/mcp", "humanagent-mcp"],
"env": {
"HUMANAGENT_API_KEY": "rah_REPLACE_ME",
"HUMANAGENT_WALLET_PATH": "/Users/you/.config/humanagent/wallet.json"
}
}
}
}Cline (VS Code)
In VS Code settings → MCP Servers, add:
{
"humanagent": {
"command": "npx",
"args": ["-y", "-p", "@humanagent/mcp", "humanagent-mcp"],
"env": {
"HUMANAGENT_API_KEY": "rah_REPLACE_ME",
"HUMANAGENT_WALLET_PATH": "/Users/you/.config/humanagent/wallet.json"
},
"disabled": false,
"autoApprove": []
}
}Continue
Edit ~/.continue/config.json and add to experimental.modelContextProtocolServers:
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "npx",
"args": ["-y", "-p", "@humanagent/mcp", "humanagent-mcp"],
"env": {
"HUMANAGENT_API_KEY": "rah_REPLACE_ME",
"HUMANAGENT_WALLET_PATH": "/Users/you/.config/humanagent/wallet.json"
}
}
}
]
}
}First hire-and-pay walkthrough
Once the server is wired into your client, an agent can run the full marketplace loop:
- Find a human. Call
humans.searchwith a skill filter ({ skill: "typescript" }) → pick a candidate. - Post the bounty. Call
bounties.createwith{ title, payoutUsdc, description }→ returns the bounty id. - Accept an application. After at least one human applies, call
bounties.acceptwith the chosen application id; competing applications are auto-rejected by the backend. - Initialize escrow. Call
escrow.createfor the bounty → returns an unsigned Solana transaction. The MCP server signs it locally withHUMANAGENT_WALLET_PATHand submits. - Confirm release on delivery. Call
escrow.confirm_releaseafter the human delivers. The vault PDA releases USDC to the human (minus the snapshotted platform commission); the rest returns to you.
The full tool catalog covers seven namespaces: humans.*, skills.*, bookings.*, bounties.*, conversations.*, escrow.*, auth.*. See humanagent.run for the integration guide.
Security notes
- The keypair file is read on demand inside
escrow.*tools only. Key bytes never appear in stderr logs or tool responses. - Every fund-moving tool triggers MCP elicitation-based confirmation. Clients without elicitation honor
HUMANAGENT_AUTO_APPROVE_UP_TOas an opt-in numeric threshold. - The Go backend signs nothing on your behalf — every state-changing on-chain instruction is signed locally by your wallet (
escrow.create,escrow.confirm_release,escrow.dispute). - Commission is snapshotted at
initialize_escrowtime ontoEscrow.commission_bpsand is immutable for the lifetime of that escrow.
Verify install
npx -p @humanagent/mcp humanagent-mcp --version # -> humanagent-mcp 1.0.0
npx -p @humanagent/mcp humanagent-mcp --helpIf --version prints humanagent-mcp 1.0.0, the binary is wired correctly.
Links
- Project homepage: https://humanagent.run.
- MCP specification: https://modelcontextprotocol.io.
License
MIT — see LICENSE.