bip.ad MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
bip.ad
Build in public. Bid to win. bip.ad is an open launch board for builders. You list a product through your AI agent over MCP, then bid openly for a seat on three boards: Daily, Weekly and Monthly. All three lock at 03:12 ICT every night. Read upside down, "3:12" looks like BIP.
Ranking is pay-to-win and the auction is all-pay: every confirmed bid is collected, with no refund for being outbid and no guaranteed results.
When bids are equal, including zero, ties are broken by the owner's successful referrals, then valid unique clicks, then valid unique views.
80% of each board's bid revenue funds that board's ads. Referrers earn a 5% commission. Commission can be spent on bids or paid out manually on days 01–10 of each month.
Status: MVP (Phases 1–5 of the decision brief). Staging takes PayPal sandbox payments and production takes live PayPal payments (
PAYMENT_MODE=livewithLIVE_PAYMENTS=true, approved by the owner on 2026-11-09). A provider is offered only once its secrets are set, so SePay stays unavailable until it is configured.Social posting and ads are real Zernio adapters behind owner-controlled flags (ADR-0007):
SOCIAL_MODE=mock: nothing is posted.
ADS_MODE=dry_run: ad requests are recorded and never sent, and no money is spent.livealso needsADS_LIVE_APPROVED=true.The video adapter is a mock.
Policies are public at /terms, /privacy and /refunds (linked from the footer and checkout; owner legal review pending before live payments).
/transparency shows the ads fund of each board, every flight with its spend and daily caps, and money planned, committed and spent. Every figure carries its as_of_at time and source, and the page is labelled "dry run" while ads are dry. The footer links the bip.ad accounts on X, Facebook, YouTube and TikTok.
Stack
Cloudflare Workers, Hono, D1 (data and double-entry ledger), KV (OAuth and sessions), Cron Triggers, @cloudflare/workers-oauth-provider, and @modelcontextprotocol/sdk (Streamable HTTP). Tests run on Vitest with @cloudflare/vitest-pool-workers.
Related MCP server: Hoplix Print on Demand
Connect your agent
Add the MCP server https://<your-host>/mcp to Claude, ChatGPT or any MCP client. It signs you in with GitHub or Google over OAuth.
Tool | What it does |
| Manage your products. Only MCP can create or edit them; the website has no create form. |
| Build a versioned product page from widgets: hero, gallery, video, feature_grid, rich_text, call_to_action, pricing, testimonials, faq, founder_note, links, metrics. |
| Live board with the next cutoff. |
| Quote a bid increment, get a checkout URL that the human pays, and track it. |
| Your referral link and its results. |
| Commission wallet balances, and spending them on a bid. |
| Request a manual payout of available commission. |
| Valid views, clicks and standings for a product. |
The operator MCP at /operator/mcp is authenticated with a separate bearer secret. It covers moderation (products.pending with AI scores, products.moderate, moderation.rescore), emails.list, boards.freeze, locks.run, cohorts, payment reviews (payments.reviews, payments.resolve_review), payout batches, recording manual transfers, and finance.reconcile. It also covers:
media and social:
videos.render(mock) andsocial.publish;ads:
ads.plan,ads.execute,ads.pause,ads.resume,ads.kill_switchandads.report;adapter calls:
adapters.requests,adapters.dead_lettersandadapters.retry;operator.health, which reports adapter modes, dead letters and alert conditions.
Operations are covered in docs/runbooks/: the go-live checklist, backup and restore, monitoring and SLOs, failure runbooks and incident response.
Users get English transactional email through Cloudflare Email Service (ADR-0009): a welcome, product decisions, bid receipts and reversals, the nightly 03:12 lock results, available commissions and paid payouts. The emails are projected from the domain events in outbox_events into email_outbox. They are sent right after the change, and a dedicated cron sends anything left over and retries failures every 15 minutes. Users switch the Products, Boards and Referrals groups off in /account or with the one-click unsubscribe link. Receipts, reversals, payouts and the welcome are always sent. The operator inspects delivery with emails.list on /operator/mcp.
Each environment needs the EMAIL send_email binding and EMAIL_FROM (both in wrangler.jsonc), and the bip.ad zone onboarded under Compute → Email Service → Email Sending. Staging sends real email with a [staging] subject prefix.
Develop
pnpm install
cp .dev.vars.example .dev.vars # fill in OAuth apps, SESSION_SECRET, OPERATOR_TOKEN
pnpm db:migrate:local
pnpm dev # http://localhost:8787
pnpm typecheck && pnpm testSet the OAuth callback URLs to https://<host>/auth/github/callback and https://<host>/auth/google/callback.
Deploy
Two environments live in wrangler.jsonc:
Environment | Branch | Worker | URL | Config |
Staging |
|
| top level ( | |
Production |
|
|
|
Both environments run AI moderation (MODERATION_MODE=ai, ADR-0008). Every submission and edit is scored: the regex screen and a fast decision model (Clef-flash) run inline, then the landing page is fetched and scored by Clef together with an evidence LLM (DeepSeek V4.1 Flash). Low-risk changes publish automatically. Everything else waits for the operator's agent over /operator/mcp (products.pending shows the scores, then products.moderate). Workers AI runs on its own Cloudflare account, so each environment needs the secrets AI_CLOUDFLARE_ACCOUNT_ID and AI_CLOUDFLARE_API_TOKEN. Without them, every change waits for the operator.
Each environment has its own D1 database, KV namespace and secrets. CI (.github/workflows/ci.yml) runs typecheck and tests on every push and PR. A push to dev or main then applies D1 migrations and deploys the matching environment. The repository needs the GitHub secrets CLOUDFLARE_API_TOKEN (Workers Scripts, D1, Workers KV and Workers Routes edit, plus Zone read for bip.ad) and CLOUDFLARE_ACCOUNT_ID.
One-time setup for a new environment:
wrangler d1 create bip-ad-production && wrangler kv namespace create bip-ad-oauth-production # put the ids in env.production
pnpm db:migrate:production
for s in SESSION_SECRET OPERATOR_TOKEN; do wrangler secret put $s --env production; done
scripts/set-worker-secrets.sh production PII_ENCRYPTION_KEY # 32+ random characters (`openssl rand -base64 32`); encrypts payout details, payouts are refused without it (ADR-0005)
scripts/set-worker-secrets.sh production # hidden prompts for GitHub/Google OAuth; stores them in `ak secrets` and on the worker
scripts/set-worker-secrets.sh production AI_CLOUDFLARE_ACCOUNT_ID AI_CLOUDFLARE_API_TOKEN # Workers AI account for moderation
scripts/setup-paypal.sh production # Live REST app: checks the credentials, creates or reuses the webhook, stores PAYPAL_CLIENT_ID/SECRET/WEBHOOK_ID
# Credentials already in the vault: same checks and webhook, uploads to the worker without prompts
ak secrets run --env PAYPAL_CLIENT_ID=BIPAD_PAYPAL_CLIENT_ID_STAGING --env PAYPAL_CLIENT_SECRET=BIPAD_PAYPAL_CLIENT_SECRET_STAGING -- "$PWD/scripts/paypal-webhook-and-worker-secrets.mjs" staging
pnpm deploy:productionManual deploys: pnpm deploy:staging / pnpm deploy:production, with pnpm db:migrate:remote / pnpm db:migrate:production first. pnpm db:seed:remote seeds staging only (products labelled "sample"; their boosts are not revenue). Do not seed production.
Decisions
Architecture and money rules are recorded in docs/ADR/:
ADR-0001: architecture
ADR-0002: bid timing and ranking
ADR-0003: money, FX and ledger
ADR-0004: payments
ADR-0005: referrals, wallet and payouts
ADR-0006: MCP auth and the operator boundary
ADR-0007: video, social and ads adapters behind owner-controlled flags
ADR-0008: AI moderation of submissions and edits
ADR-0009: transactional email through Cloudflare Email Service
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Turn your offers into an AI agent. Set it up from your MCP assistant, answer customer questions, collect enquiries and connect with other agents via A2A. OAuth sign-in; free plan available.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to query tenants, browse catalogue items with pricing, pull recent orders, and add products through the MCP tool-calling interface.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to browse a print-on-demand catalogue, create campaigns with custom designs, quote and place unpaid orders, and track shipments through OAuth-authenticated MCP tools.12MIT
- AlicenseNot gradedqualityCmaintenanceConnects MCP clients to a dropshipping account so AI assistants can find products, publish and manage listings, apply pricing rules and repricing, track stock and price history, and handle orders across eBay, Amazon, Shopify and other channels. It also exposes dashboards, sales analytics, AI publisher agents and support tooling through OAuth-authenticated access.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to browse products, look up orders, and place orders through MCP tools, with API-key authentication, rate limiting, and idempotent order operations.MIT