{"slug": "shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real", "title": "Shipping 16 AI/MCP Tools at $0/mo on Cloudflare Workers + Apify: Dual-Channel Architecture & 6 Real Bugs", "summary": "A developer shipped 12 deterministic data and utility tools across six categories—quant/trading math, document/RAG utilities, U.S. federal regulatory feeds, RSS/Atom aggregation, technical SEO/llms.txt auditing, and corporate DNS/RDAP auditing—on a dual-channel architecture of Cloudflare Workers Free Tier and Apify Store Actors at $0.00/month recurring cost. The writeup documents six production bugs found after launch, including Bybit CloudFront geo-blocking of edge requests (HTTP 403) and a 114x mark-price mismatch between two different assets sharing the ticker PURR, fixed with per-venue graceful degradation and a 0.80–1.25 mark-price ratio sanity guard.", "body_md": "Over the last sprint, we built and shipped a portfolio of **12 deterministic data and utility tools spanning 6 completely different categories**—Quant/Trading math & feeds, Document/RAG utilities, U.S. Federal Regulatory feeds (SEC Form D, OpenFDA, Federal Register), RSS/Atom aggregation, Technical SEO/`llms.txt` auditing, and Corporate Domain DNS/RDAP deliverability auditing—while keeping **recurring cloud infrastructure cost at exactly $0.00/month**.\n\nRather than keeping our mistakes behind closed doors, this post lays out the exact **Dual-Channel architecture** (Cloudflare Workers Free Tier + Apify Store Actors) and **6 real production traps** we discovered only after pushing live traffic.\n\n`/llms.txt` + all 10 zero-auth MCP URLs)\nEarly on, we noticed a sharp trade-off between two distribution channels:\n\n`claude mcp add --transport http ...`, 1ms cold start, zero login, zero card), but have no built-in marketplace search, dataset storage, scheduling UI, or usage billing.`mcp.apify.com` integration, Schedules, Webhooks, and CSV/JSON/Parquet Datasets—but has a cold-start discovery problem (\"Publishing your Actor is not enough to bring users\") and requires an account token to test.\nSo we paired both channels from a **single shared zero-dependency Web-Standards JS engine** (`fetch`, `URL`, `crypto.subtle`):\n\n```\nShared Zero-Dependency ESM Engine (Web Standards)\n   ├── Channel 1: Cloudflare Workers Free Tier ($0.00/mo)\n   │     ├── 7 Zero-Auth Streamable HTTP MCP Servers (protocol 2025-03-26)\n   │     ├── Edge Cron -> Workers KV Snapshots (128 / 1,000 daily writes = 12.8%)\n   │     └── Unified Product Hub + /llms.txt + /sitemap.xml + /connectors\n   │\n   └── Channel 2: Apify Store Actors (256 MB Cap, LIMITED_PERMISSIONS)\n         ├── 11 Actors (Pay-Per-Event: $0.001 - $0.005 / record, FREE/BRONZE/SILVER/GOLD)\n         ├── Standby MCP + Scheduled Datasets + Webhooks + n8n templates\n         └── Thin Python/Node wrappers streaming prebuilt Edge KV JSONL snapshots\n```\n\n`$0` egress. Currently using `challenge-snapshots` (hourly Crypto Perp + hourly Polymarket + 6h SEC Form 4): `104` writes/day`sec-form-d-snapshots` (`35 */6 * * *`): `8` writes/day`openfda-recall-snapshots` (`40 */6 * * *`, 75 latest Drug/Food/Device recalls): `federal-register-snapshots` (`45 */6 * * *`, 60 latest rules/notices): When our hourly `crypto-perp-funding-arb` Cron ran inside Cloudflare's edge network, Bybit's CloudFront distribution returned:\n\n`HTTP 403: The Amazon CloudFront distribution is configured to block access from your country` (in 15ms), and shared edge IPs occasionally triggered HTTP 429 on OKX.\n\n**Fix — Graceful Venue Degradation**: Never fail a multi-venue snapshot job because one venue blocks an edge PoP. Our snapshot producer isolates each venue's fetch, records explicit `live_venues: [\"hyperliquid\", \"okx\"]` and `degraded_venues: [\"bybit\"]` with per-venue `http_status` and `error` fields in `summary.json`, and continues publishing cross-venue spreads (in our 2026-12-06 empirical probe: Hyperliquid `179` contracts + OKX `544` contracts yielded `145` cross-venue matched symbols with zero downtime).\n\n`PURR` 114x Price Mismatch)\nNaive cross-exchange perpetual arbitrage code joins contracts by canonical symbol string (`BTC`, `ETH`, `SOL`). On live data, we caught two completely different underlying assets sharing the ticker **`PURR`**, with a **114x mark-price discrepancy** between venues. Without a guard, that produces absurd bogus basis and carry signals.\n\n**Fix — Mark-Price Ratio Sanity Guard**: Every cross-venue match now enforces `0.80 <= venueA_mark / venueB_mark <= 1.25`. Out-of-range pairs are rejected and counted transparently in `price_mismatch_rejections_count` (1 rejection logged on our live snapshot).\n\n`negRiskAugmented: true` Fake Underrounds (and Kalshi ToS Sec 3.1)\nWhen scanning multi-outcome NegRisk prediction markets for sum-of-probabilities `< 1.0` (underrounds), we found that Polymarket events flagged `negRiskAugmented: true` include an inactive placeholder `\"Other\"` bucket. Summing the visible active outcomes makes `price_sum < 1.0` even though no riskless arbitrage exists.\n\n**Fix**: We compute an explicit `is_complete_outcome_set` boolean on every multi-outcome basket and expose `exclude_augmented: true` as a first-class filter (empirical snapshot: 40 active events → 1,401 records, 14 multi-outcome baskets, 6 underrounds, 963 two-sided books). We also explicitly exclude Kalshi (`kalshi_excluded: true`) after reviewing Kalshi Developer Agreement Sec 3.1, which prohibits caching, aggregation, redistribution, and AI training.\n\n`finally { await Actor.exit(); }` Silent Data Loss\nThis was the nastiest debugging lesson of the sprint. On `rss-atom-ai-digest-reader`, our initial `dataset_schema.json` declared `\"podcast_duration\": { \"type\": \"string\" }`. When a regular blog RSS item had `podcast_duration: null`, Apify's Dataset API threw HTTP 400 `schema-validation-error`.\n\nBecause our Actor used:\n\n```\ntry {\n  // ... Actor.pushData(items) throws 400\n} finally {\n  await Actor.exit(); // <-- SWALLOWED THE EXCEPTION!\n}\n```\n\nApify reported the run as **`SUCCEEDED (exitCode 0)` with an empty `[]` dataset**!\n\n**Fix**:\n\n`dataset_schema.json` as JSON Schema union types (`[\"string\", \"null\"]`, `[\"integer\", \"null\"]`).` try { ... await Actor.exit(); } catch (err) { await Actor.fail(err.message); }`.` 0` alone—always run `apify-cli call --output-dataset` and assert non-empty records after every push.`4096 MB` Default Memory Cap & Pre-PPE `Actor.charge()` Truncation\nTwo Apify-specific traps we caught via direct `GET /v2/acts/{slug}` audits:\n\n`actor.json` specifies `minMemoryMbytes: 128` and `maxMemoryMbytes: 512`, Apify's API still defaults `defaultRunOptions.memoryMbytes` to `4096` MB`actorStandby.memoryMbytes` to `1024` MB`profit = 0.8 * revenue - platform costs`), running a lightweight JSON filter Actor at 4 GB burns `defaultRunOptions` and `actorStandby` to `256 MB`` apify-actor-start: $0.00005` fixed the unit economics cleanly.`charged_count=0, event_charge_limit_reached=False`. If you slice your output array by `charged_count`, you return zero items! Checking `Actor.get_charging_manager().get_pricing_info().is_pay_per_event` first prevents accidental truncation.`#1468`\nWhen rolling out Wave 3 (6 new Actors in one day), pushing the 6th public listing returned `HTTP 400 daily-publication-limit-exceeded` (5 public Actors / 24h cap). Because every utility already shipped Dual-Channel, **5 of those 6 Wave 3 tools went live immediately on Day 0 as zero-auth Cloudflare Workers MCP servers**, while the Apify builds stay pre-verified (`256 MB`, `LIMITED_PERMISSIONS`) in queue for the 24h window reset.\n\nSimilarly, when preparing Official MCP Registry manifests (`description <= 100` chars), we confirmed a documented upstream bug (`modelcontextprotocol/registry#1468`): interactive `mcp-publisher login github` cannot publish to GitHub Organization namespaces—only personal namespaces (`io.github.<user>/*`) work via device flow unless you use a `read:org` PAT or GitHub Actions OIDC.\n\nNo API key, no `npm install`, no Docker:\n\n```\nclaude mcp add --transport http doc-to-llm https://doc-to-llm-markdown-mcp.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http dataset-etl https://dataset-etl-dedupe-normalizer.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http rss-digest https://rss-atom-ai-digest-reader.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http seo-llms-auditor https://website-seo-llms-sitemap-auditor.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http tech-sec-auditor https://tech-stack-security-headers-auditor.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http domain-dns https://domain-dns-rdap-deliverability-auditor.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http openfda-recalls https://openfda-recall-snapshots.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http federal-register https://federal-register-snapshots.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http quant-risk-calc https://quant-arb-risk-calc-mcp.ryu-7f5.workers.dev/mcp\nclaude mcp add --transport http academic-papers https://academic-research-papers-mcp.ryu-7f5.workers.dev/mcp\n```\n\nFull catalog, `curl`/Python/Node examples, and 4 BYOK n8n workflow templates: [https://github.com/quantforge-data/quantforge-mcp-hub](https://github.com/quantforge-data/quantforge-mcp-hub) (and Web Hub: [https://quantforge-hub.ryu-7f5.workers.dev](https://quantforge-hub.ryu-7f5.workers.dev)). If you've hit other Cloudflare Workers or Apify Standby MCP edge cases in production, I'd love to compare notes in the comments.", "url": "https://wpnews.pro/news/shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real", "canonical_source": "https://dev.to/quantforgedata/shipping-16-aimcp-tools-at-0mo-on-cloudflare-workers-apify-dual-channel-architecture-6-real-42ch", "published_at": "2026-12-06 18:09:35+00:00", "updated_at": "2026-12-06 18:14:36.689528+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "agent-protocols", "developer-tools", "ai-infrastructure"], "entities": ["Cloudflare Workers", "Apify", "Bybit", "OKX", "Hyperliquid", "Polymarket", "Kalshi", "SEC"], "also_reported_by": [], "takeaway": "Isolate each venue's fetch so one geo-blocked or rate-limited source degrades gracefully instead of failing the whole snapshot, and reject cross-venue symbol matches whose mark-price ratio falls outside 0.80–1.25 to avoid bogus arbitrage signals like the 114x PURR mismatch.", "recommendation": {"advice": "Wrap each external venue fetch in isolation and record degraded venues with their HTTP status, then gate cross-venue matches on a 0.80–1.25 mark-price ratio before emitting arbitrage signals.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real", "markdown": "https://wpnews.pro/news/shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real.md", "text": "https://wpnews.pro/news/shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real.txt", "jsonld": "https://wpnews.pro/news/shipping-16-ai-mcp-tools-at-0-mo-on-cloudflare-workers-apify-dual-channel-6-real.jsonld"}}