# agent-vending-factory MCP server

Pay-per-call MCP tools via x402 USDC: ZAR prices, data extraction, Python sandbox, SA flights.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-rubentay-agent-vending-factory
- Repository: https://github.com/RubenTay/agent-vending-factory

## Install
- Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- Auth: Not captured

## Setup notes
- Remote endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp

## Tools
- agent_example - POST /agents/agent_example/run — Single-turn Claude Sonnet inference endpoint. Input: {question: string, max_tokens: integer (default 1024)}. Output: {success, answer, usage: {input_tokens, output_tokens}, error}. No tool use or agentic loop — direct model call. Use for QA, summarisation, or classification tasks. Cost: $0.0100 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- tool_example - POST /tools/tool_example/run — Stateless text utility for testing x402 payment flows. Input: {text: string}. Output: {original, uppercase, word_count, char_count}. Cost: $0.0010 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- tool_zar_prices - POST /tools/zar-prices/run — Returns live bid/ask/last prices for crypto/ZAR pairs. Input: {pair: 'BTC/ZAR'|'ETH/ZAR'|'SOL/ZAR'|'USDC/ZAR'|'all'}. Output: array of {exchange, pair, price, bid, ask, timestamp} objects. Sources: VALR (all 4 pairs), Luno (BTC/ZAR + ETH/ZAR only). SOL/ZAR and USDC/ZAR are VALR-only. Fetches all exchanges concurrently. Timestamps are ISO-8601 UTC. Cost: $0.0050 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- tool_data_transformer - POST /tools/tool_data_transformer/run — Extracts structured JSON from raw text using a caller-supplied JSON Schema. Input: {raw_text: string, target_json_schema: object (JSON Schema draft-07)}. Output: {success, extracted_data, extraction_method, validation_passed, error}. extraction_method is one of: 'direct_parse', 'embedded_json', 'regex_extraction'. No LLM involved — pure parsing pipeline. Type coercion applied for integer/number/boolean fields. Works best with flat schemas; deeply nested structures extract less reliably via key-value pass. Cost: $0.0500 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- tool_compute_sandbox - POST /tools/tool_compute_sandbox/run — Executes Python 3.12 code in an isolated subprocess with a 5-second hard timeout. Input: {python_code: string, input_data: any (optional, bound as variable 'input_data')}. Output: {success, result, stdout (capped 50KB), execution_time_ms, error_type}. Return value: assign to 'result' variable. Pre-loaded: math, json, re, statistics, itertools, functools, collections, decimal, datetime, random, hashlib, base64. Blocked: import, open(), eval(), exec(), os, sys, network, class definitions, dunder attributes. error_type values: syntax_error | security_error | runtime_error | timeout_error. Cost: $0.1500 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp
- tool_sa_airport_oracle - POST /tools/sa-airport-oracle/run — Returns live flight status from ACSA (airports.co.za). Input: {airport_code: 'JNB'|'CPT'|'DUR', flight_number: string, request_type: 'arrival'|'departure'}. Output: {success, live_status, scheduled_time, estimated_time, actual_time, gate, carousel, terminal, flight_number, airport_code, request_type, error}. Coverage: JNB (O.R. Tambo), CPT (Cape Town Int'l), DUR (King Shaka). Data window: flights within 48 hours. Call GET /tools/sa-airport-oracle/health (free) first — if structure_valid=false, do not proceed. error_type values: 'stale_data' (do not retry), 'not found' (retry after 10-15 min), network error (retry once). flight_number is case-insensitive and normalised to uppercase internally. Read-only — no booking/ticketing. Cost: $0.1200 USDC per call. Endpoint: https://agent-vending-factory-3srpjtr7na-ew.a.run.app/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.github.RubenTay
- Version: 0.1.1
- Runtime: Streamable Http
- Transports: HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Apr 10, 2026
- Source: https://registry.modelcontextprotocol.io
