Purpose
The proxy-shopping MCP server enables AI agents to access the proxy-shopping P2P proxy-buying network through tool calls. The network targets stores that only accept cash or do not support conventional online payment, completes purchases through proxy buyers, and uses a 2-of-3 escrow mechanism to secure funds. The server also supports users in earning income as proxy buyers, providing plans for running an always-online proxy-buying node as well as registry entries.
Main capabilities
- Proxy purchases: Agents can call tools to complete the full flow from querying network information, topping up the wallet, finding quotes, requesting quotes, accepting quotes, funding orders, querying order status, to confirming receipt.
- Escrow and dispute handling: Each order has its own escrow address, controlled by two of the three parties: buyer, proxy buyer, and escrow agent. If a problem arises with the transaction, the escrow agent rules on the allocation according to the rules; after the T2 timelock expires, the buyer can recover all funds alone.
- Proxy buyer income: Provides a detailed plan for running an always-online proxy-buying node, as well as entry information for getting listed in the registry.
- Secure confirmation mechanism: Tools that involve transferring funds or revealing secrets must be passed
confirm: trueto execute; otherwise they only show the operation that would occur (amount, recipient, fees) for the agent to present to the human for confirmation. - Quote validation: Quotes that fail validation cannot be accepted (untrusted combination, escrow address not matching local computation, timelock outside policy, amount mismatch). If the exchange rate deviates by more than 10% from the local source, explicit confirmation is required.
- Payment signing restrictions: Only sign payments for templates allowed by the protocol (release to proxy buyer, refund to buyer, allocation consistent with a ruling); report completed / settled / refunded status only after the payment is shown on-chain.
- Privacy protection: The mnemonic is stored only in the data directory, unless exported via
export_backup; the shipping address is encrypted for the proxy buyer, and the escrow agent can read it only when the buyer initiates a dispute. - Trust sources: Trust comes only from user-configured coordinators;
network_infolists coordinators and their sources.
Usage
- Running with Docker: Use the local docker compose experimental environment (proxy-shopping-go, with the demo server at http://localhost:8888)。
- MCPB package: Suitable for MCPB clients such as Claude Desktop; open the file to install, requires Node 22+. Get
proxy-shopping-<version>.mcpbfrom releases, or after building generate it vianode packages/mcp/scripts/build-mcpb.mjs. - Running without Docker (Node 22, from the repository root):
The executable name isnpm ci && npm run build -w @proxy-shopping/core -w @proxy-shopping/mcp node packages/mcp/dist/server.jsproxy-shopping-mcp. - Data directory: The
/datavolume stores keys and orders and must be kept; losing it will lose the keys controlling the escrow of all open orders (can be recovered viaexport_backupbackup). One data directory corresponds to one identity; each agent or each person should use an independent volume. - Purchase process:
network_info→wallet(Top up) →find_offers→request_quote→accept_quote→fund_order→ (viaget_orderquery until delivered) →confirm_receipt. - Tool responses: Each tool returns brief text and the same structured JSON data.
Use cases
- Users who need to purchase goods from stores that accept only cash or do not support online payment, completing the proxy purchase through an AI agent.
- Operators who want to earn income as proxy buyers and run always-online proxy-purchasing nodes.
- Developers validating the P2P proxy purchasing and escrow process on the test network (signet).
Limitations
- The public network ps-main is relatively new and may not yet have trusted proxy buyers;
network_infoshows the number of trusted proxy buyer × escrow provider combinations. - Payments on ps-main use signet testnet BTC, and the tokens on this network have no market value; USDC is not yet supported.
- Order quality depends on the proxy buyers and escrow providers listed by operators.
- Unit tests require
../proxy-shopping-registrydirectory (or viaPS_REGISTRY_DIRspecified, or mounted at/proxy-shopping-registry; settingSKIP_REGISTRY=1can be skipped). Docker commands can add-v "$PWD/../proxy-shopping-registry":/proxy-shopping-registry:ro。