Multi-party agent barter β non-cash capability exchange with cryptographic receipts
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Outbound 402 arbitrage agent β Hive Civilization
Probes 402-enabled MCP endpoints, counter-offers below asking, and settles when the spread clears our resale floor. Pure protocol β no DMs, no spam. Attribution headers on every request.
Council provenance: Ad-hoc, user-promoted 2026-04-27 (Tier A position 1).
hive-mcp-barter is a Model Context Protocol server that runs an outbound arbitrage loop on top of the 402 payment surface. It scans public MCP registries for 402-enabled endpoints, probes them with standard quote requests, and β when target_asking Γ counter_pct still lands below our resale floor β issues a single-shot, pre-signed counter-offer. The target accepts by broadcasting our pre-signed transaction; there is no haggle, no second round, and no human-readable outreach.
POST /mcpGET /.well-known/mcp.jsonGET /health#C08D23| Tool | Tier | Description |
|---|---|---|
barter_discover | 0 (free) | List 402-enabled MCP endpoints from a public registry (glama, smithery, mcp.so) with last-seen asking prices. |
barter_quote_curve | 0 (free) | Build a demand curve for a target by sending up to 5 probes at descending floor pcts. Returns the reservation-price estimate. |
barter_arbitrage_book | 0 (free) | Today's P&L: probes sent, counters accepted, USDC realized spread. |
| Method | Path | Purpose |
|---|---|---|
POST | /v1/barter/discover | Scan registries for 402 endpoints. |
POST | /v1/barter/probe | Send a 402-style quote request to a target. |
POST | /v1/barter/counter | Build a signed counter-offer at the configured floor pct. |
POST | /v1/barter/settle | Resolve an accepted counter on-chain and book the spread. |
GET | /v1/barter/ledger | Running P&L, attempts, wins, spread. |
GET | /v1/barter/today | Today aggregate (Tier 0, free). |
GET | /health | Service health. |
The pre-signed transaction is the entire commitment. The target accepts by broadcasting; we never have to re-sign on accept.
| Category | Our buy floor | Our resell |
|---|---|---|
| LLM tokens | $0.000020 / token | $0.000040 / token |
| Oracle reads | $0.0008 / read | $0.0015 / read |
| Storage writes | $0.00012 / write | $0.00025 / write |
| KYC checks | $0.04 / check | $0.08 / check |
If target_asking Γ counter_pct β€ our_resell Γ 0.95, we counter. Otherwise we skip β there is no margin.
| Cap | Value |
|---|---|
| Max single counter | $0.50 USDC |
| Max daily outbound spend | $25 USDC |
| Max probes per target / 24h | 1 |
| Max distinct targets / hr | 30 |
| Per-target blacklist | 3+ no-response |
All caps fail-closed. Configurable via env vars; missing or invalid env always falls back to the stricter default.
| Env | Required | Default | Notes |
|---|---|---|---|
PORT | no | 3000 | |
ENABLE_OUTBOUND | no | false | Default-off. The 5-min cron loop only runs when set to true. |
WALLET_ADDRESS | no | 0x15184β¦436e | W1 MONROE on Base. |
USDC_BASE | no | 0x833589β¦2913 | USDC contract on Base. |
BASE_RPC | no | https://mainnet.base.org | |
HIVECOMPUTE_URL | no | https://hivecompute-g2g7.onrender.com/v1/compute/chat/completions | Used twice daily for resale revaluation. |
MAX_DAILY_SPEND_USD | no | 25 | |
MAX_SINGLE_COUNTER_USD | no | 0.50 | |
COUNTER_PCT | no | 0.65 | |
PRIVATE_KEY | yes (to sign) | β | Hex private key for the wallet that funds counter-offers. Never commit this. Without it, /v1/barter/counter returns an unsigned envelope and the cron loop will not place real bids. |
Signing is opt-in. The repo does not include a key. To enable real counter-offers, set
PRIVATE_KEYin the Render dashboard (or your deployment env). To enable the 5-min cron loop, setENABLE_OUTBOUND=true.
Claude Desktop / Cursor / Manus β add to your mcp.json:
Part of the Hive Civilization β sovereign DID, USDC settlement, agent-to-agent rails. Companion shims include hive-mcp-evaluator, hive-mcp-compute-grid, hive-mcp-depin, hive-mcp-agent-storage, hive-mcp-agent-kyc, and hive-mcp-trade.
MIT (c) 2026 Steve Rotzin / Hive Civilization
Part of the Hive Civilization β agent-native financial infrastructure.
Brand: #C08D23
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hive-barter)<a href="https://allmcps.com/mcp/hive-barter"><img src="https://allmcps.com/api/badge/hive-barter?style=directory" alt="Hive Barter on AllMCPs" /></a>