For AI Agents

Real-time surf, weather, trails, volcano, ocean safety, sunrise/sunset and restaurant data for every Hawaiian island. Self-describing, MCP-native, and payable per call via a prepaid credit ledger.

๐Ÿš€ What this is

A Model Context Protocol (MCP) server that gives AI agents structured, real-time data about Hawaii. Use it to plan trips, check safety conditions (ocean, trails, volcano), build itineraries, recommend restaurants, and generate full daily briefings.

๐ŸŒ MCP Endpoint

https://hawaii-conditions.vercel.app/mcp

Streamable HTTP transport. Stateless โ€” every request is self-contained.

โšก Install on Your Agent

Add HawaiiConditions skills to any client

npx agentcash add https://hawaii-conditions.vercel.app

to install this MCP server on all AI Agents

๐Ÿ’ณ How payment works (prepaid ledger)

This server uses a prepaid credit model. Your agent registers once, receives an API key, funds its account via Stripe, and the balance is deducted per data call. No per-call payment prompts โ€” just a running balance.

Onboarding flow

  1. Call register_agent → receive your api_key (format: mcp_live_โ€ฆ)
  2. Call create_wallet_setup to initialise Stripe โ€” returns a client_secret for saving a card
  3. Call save_payment_method with the returned payment_method_id
  4. Call add_funds_5, add_funds_10, or add_funds_20 to top up
  5. Pass your key on every subsequent request via the X-MCP-Account header

Authenticating requests

X-MCP-Account: mcp_live_<your_api_key>

Alternatively accepted as Authorization: Bearer mcp_live_โ€ฆ. All paid data tools require this header.

Balance response (get_balance)

{
    "balance_cents":          380,
    "balance_usd":            "$3.80",
    "original_balance_cents": 500,
    "original_balance_usd":   "$5.00",
    "low_balance":            false,
    "threshold_usd":          "$0.50"
  }

original_balance_cents is set on the first top-up and never changes โ€” it records what the agent originally loaded. balance_cents decreases as data tools are called.

Low-balance behaviour

When balance_cents drops below the threshold, low_balance: true is returned with every response so your agent can self-top-up before running out.

Example: register and fund in one session

# 1 โ€” Register
  curl -X POST https://hawaii-conditions.vercel.app/mcp \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"register_agent","arguments":{"agent_id":"my-agent","display_name":"My Agent"}},"id":1}'

  # 2 โ€” Use the returned api_key on every data call
  curl -X POST https://hawaii-conditions.vercel.app/mcp \
    -H "Content-Type: application/json" \
    -H "X-MCP-Account: mcp_live_<your_key>" \
    -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"get_weather","arguments":{"island":"oahu"}},"id":2}'

๐Ÿง  Tools

Billing & account management (free)

ToolCostDescription
register_agentFreeCreate an account โ€” returns your api_key
get_balanceFreeCurrent balance, original load amount, low-balance flag
create_wallet_setupFreeInitialise Stripe SetupIntent โ€” returns client_secret for saving a card
save_payment_methodFreeAttach a Stripe payment method to your account
link_stripe_customerFreeLink an existing Stripe customer ID to your account
recent_transactionsFreeView recent credits and debits on your ledger

Top-up (charged to saved card)

ToolAmountDescription
add_funds_5$5.00Add $5 of prepaid MCP credit
add_funds_10$10.00Add $10 of prepaid MCP credit
add_funds_20$20.00Add $20 of prepaid MCP credit

Data tools (deducted from balance)

ToolCost per callDescription
pingFreeHealth check โ€” no balance required
get_sun_timesFreeSunrise, sunset, daylight duration by island (HST)
get_moon_phaseFreeCurrent moon phase, illumination, moonrise/moonset times
get_weather$0.105-day forecast, UV index, wind, sunrise/sunset
get_surf_conditions$0.10Wave height, period, direction + 3-day forecast
get_trail_status$0.25NPS alerts and state trail closures
get_volcano_status$0.25Live Kīlauea status from USGS HVO
get_ocean_safety$0.50Box jellyfish, rip currents, NOAA marine alerts
get_full_briefing$2.00All five data sources in one call โ€” best value
search_restaurants$0.25Find restaurants by location, cuisine, price, open hours
get_restaurant_details$0.15Full hours, reviews, photos by place_id

๐Ÿค– When AI agents should use this

๐Ÿฝ Restaurant intelligence

Supports neighbourhood targeting (Waikiki, North Shore, Lahaina, Hilo, etc.), cuisine filters (poke, sushi, vegan, seafood, etc.), price filtering ($ → $$$$), and open-now filtering.

Two-step flow: call search_restaurants, then get_restaurant_details with the returned place_id.

๐Ÿ Supported islands

oahu ยท maui ยท big-island ยท kauai ยท molokai ยท lanai

๐Ÿ” Discovery

๐Ÿงฉ Built for