FrugalFinder

FrugalFinder

Enables AI agents to submit wishlist items with budgets and use cases, retrieve and list wishlists, and trigger value-focused deal scans through the FrugalBot analyzer.

Category
访问服务器

README

FrugalFinder

Best-value deal hunting as a service. Submit what you want + why + budget; a FrugalBot agent periodically scans and returns the best value opportunity — not the cheapest, not the fanciest.

Architecture (MVP)

[Web UI / Telegram bot / MCP client agents] 
        ↓ POST
   Vercel serverless API  ──→  Vercel KV store (wishlists + scans)
        ↓                        ↑
   FrugalBot analyzer            │ scheduled re-scan
   (OpenRouter LLM)      ────────┘  (Vercel Cron, hourly tick)

Endpoints

Route Method Purpose
/ GET Web UI: submit wishlist, view analysis
/api/wishlists POST Create wishlist → runs first FrugalBot analysis
/api/wishlists?id= GET/PATCH Fetch or update one wishlist
/api/scan?id= GET/POST Poll latest scan / trigger scan now
/api/scan-all POST Cron target — scans all due wishlists
/api/telegram POST Telegram webhook ingest
/api/mcp POST MCP Streamable HTTP endpoint for external AI agents
/api/reservations POST Create campground reservation watcher (Recreation.gov)
/api/reservations?id= GET/PATCH List/fetch/update reservation watchers
/api/reservations/scan?id= POST Trigger reservation scan now
/api/compare POST/GET 3-model LLM comparison scan / performance summary
/admin.html GET Admin dashboard: LLM quality-vs-cost monitor

Campground Reservation Watcher

Watch multiple Recreation.gov campgrounds for openings in your date window. site_preference: "lakefront" scores lakefront sites higher when they free up via cancellation. Scoring: availability + preference match + features (shade, pets, paved driveway) − price.

curl -X POST https://YOUR-DOMAIN.vercel.app/api/reservations \
  -H 'Content-Type: application/json' \
  -d '{"campground_ids":["233117","232665"],"date_window":"2026-10-09 to 2026-10-12","site_preference":"lakefront","cadence":"daily"}'

Known limit: Recreation.gov's date-based availability endpoint currently returns 404 to anonymous callers (API changed). The scanner uses their public site-metadata search (verified working: loops, attributes, status, price). When date-level availability is re-exposed, wire it into getCampgroundSites() — everything downstream already handles it. ReserveAmerica (NC state parks) blocks anonymous API calls; add as a provider with cookies/session if needed later.

Multi-LLM Comparison ("quality vs cost control")

POST /api/compare races three model tiers on the same frugal-bot prompt:

Tier Default model Purpose
pareto openrouter/auto OpenRouter's own best-model routing
budget_web openai/gpt-4.1-nano (+web plugin) cheapest web-capable
mid_web perplexity/sonar mid-range web-capable

A judge (anthropic/claude-opus-4.1) then ranks all three blind (order-shuffled), scoring 1–10. Every run logs tokens/cost/score/wins to the perf store; GET /api/compare aggregates them and /admin.html visualizes. All slugs are env-overridable weekly without code changes: PARETO_MODEL, BUDGET_WEB_MODEL, MID_WEB_MODEL, JUDGE_MODEL.

Verified live run: mid_web (Sonar) scored 9 vs pareto (routed DeepSeek v4 flash) 8 vs budget (GPT-4.1-nano) 4–7, total cost ≈ $0.05/comparison.

Env vars (set in Vercel dashboard → Settings → Environment Variables)

  • OPENROUTER_API_KEY (required) — LLM provider
  • FRUGAL_MODEL (optional, default stealth/ox-alpha) — any OpenRouter model slug
  • KV_REST_API_URL, KV_REST_API_TOKEN (required for production persistence) — from a Vercel KV (Upstash) database attached in Vercel → Storage
  • WISHLIST_TOKEN (optional) — shared secret for /api/wishlists
  • CRON_SECRET (optional but recommended) — protects /api/scan-all
  • TELEGRAM_BOT_TOKEN, TELEGRAM_WEBHOOK_SECRET (optional) — Telegram ingest
  • MCP_TOKEN (optional) — shared secret for /api/mcp
  • PARETO_MODEL, BUDGET_WEB_MODEL, MID_WEB_MODEL, JUDGE_MODEL (optional) — LLM comparison tier overrides

Sharing paths

Add to Wishlist (bookmarklet)

Create a browser bookmark named Add to Wishlist with this URL:

javascript:(function(){var u=location.href;var t=document.title;prompt('Send to FrugalFinder? Add budget/use hints:',t+'\n'+u)&&fetch('https://frugalfinder.vercel.app/api/wishlists',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({item:t,source_url:u,budget:'see notes',use_case:'shared from '+u,cadence:'daily'})}).then(r=>r.json()).then(d=>alert('Added! id='+d.id))})()

Click it on any product page to submit that listing as a wishlist entry.

Email (MVP note)

Not yet wired — MVP uses web UI + Telegram + bookmarklet. Email ingest is a natural v2 addition via an inbound-email webhook (e.g. Resend/Postmark → /api/wishlists).

Pricing tiers (recommended)

Tier Cadence Price rationale
Free daily ~30 LLM calls/mo/item at $0 marginal cost on free stealth models ≈ negligible infra
Power hourly $0.01/scan × ~720 scans/mo = $7.20/mo per item — price at $5/mo flat, margin comes from batching multiple wishlists into one hourly cron tick
Pro (future) hourly + priority queue + email digests $12/mo

The unit economics only work because the analyzer batches all due wishlists into a single cron pass (/api/scan-all), amortizing cold-start overhead.

Auth roadmap (post-MVP)

  1. MVP now: no auth, single-user, guarded by optional shared secrets.
  2. v1.1: magic-link email login (Auth.js or Clerk free tier) → per-user wishlists keyed by user ID.
  3. v2: Stripe checkout for Power/Pro tiers; usage metering = count of scans per billing period.

Local dev

npm install
vercel dev   # needs `vercel link` once
npm test    # node:test unit tests

MCP usage (for external agents like ChatGPT/Claude/Codex)

Connect an MCP-capable client to:

https://YOUR-DOMAIN.vercel.app/api/mcp

Headers: x-mcp-token: <MCP_TOKEN> if set.

Exposed tools:

  • submit_wishlist(item, use_case, budget, flexibility?, cadence?, source_url?) → saves + immediate analysis
  • get_wishlist(id) → full record incl. latest analysis & scan history
  • list_wishlists() → summary of all active wishlists
  • trigger_scan(id) → force an out-of-band frugal-bot scan
  • submit_reservation_watch(campground_ids, date_window?, site_preference?, min_features?, max_price?, cadence?, notes?) → campground watcher + first scan (lakefront preference supported)
  • list_reservations() → all reservation watchers with last results
  • trigger_reservation_scan(id) → re-scan a reservation now
  • run_model_comparison(item, use_case, budget, flexibility?) → 3-tier LLM race + judge verdict
  • get_model_performance() → aggregated quality/cost stats per tier

Calling agents should treat it as submit + poll: submit once, then call get_wishlist on whatever cadence suits them (or wait for their own scheduler). The MCP spec has no push channel for arbitrary updates, so periodic polling is the standard pattern.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选