pollenbrief-mcp turns a Google Pollen forecast into alert days at thresholds you set
An MCP server and CLI that applies rules like GRASS>=4 to a five-day pollen forecast. The keyless run uses synthetic responses in the documented shape; no real Pollen API response was observed.
By David Discua
Measured in the lab
- 6
- synthetic scenarios
- 6/6
- MCP output equal to service
- 2
- upstream calls per address check
- 0
- real Pollen responses observed
- Paged forecast (pageSize 2) matched the one-page result
- Synthetic 403 SERVICE_DISABLED mapped to google_PERMISSION_DENIED
- Call budget of 2 refused the second address check
- Phrasing reply with numbers not in its input was rejected
- Out-of-season WEED rule reported as unable to fire
From reports/pollenbrief-mcp.json · run on October 21, 2026. Keyless run of the real MCP server over synthetic fixtures: invented values in the response shape from Google's API reference, not a real forecast
How it is wired
01/03Your agent asks for a pollen check at an address.
pollenbrief-mcp is an MCP server and CLI that takes an address or a point, asks the Google Pollen API for up to five days of forecast, and applies rules you write, such as GRASS>=4, per day and per pollen type or plant. Every number in this post comes from synthetic responses built in the documented response shape, because no real Pollen API response was observed in this lab. What the keyless run shows is the wiring: thresholds, paging, error mapping, the call budget, and an MCP tool that returns the same output as the service code.
The catch
The live Pollen path was not run in this lab. A live Geocoding v4 call returned HTTP 200, but the forecast:lookup fixtures are built field by field from Google's reference, and real responses may carry fields or value formats we have not seen. The optional Gemini rewording of the summary line was tested only with mocked replies.
Thresholds are whole Universal Pollen Index levels from 0 to 5, one value per day, with no hourly data. The output repeats the API's health recommendations and your own action text and adds no advice of its own. Keyless mode answers only the demo inputs listed in fixtures/synthetic/INDEX.json, and anything else returns google_NO_FIXTURE.
What we ran (keyless)
bun install --frozen-lockfile
bun run src/cli.ts brief --address "100 Example Ave, Sampletown" --profile grass-allergy --fixtures
bun run src/cli.ts brief --at 47.25,8.5 --days 3 --alert "GRASS>=3" --format json --fixtures
bun run report
From reports/pollenbrief-mcp.json, run on October 21, 2026 over synthetic fixtures (fictional address, invented values):
| Scenario | Input | Upstream calls | Alert days | Watch days | Status | MCP = service |
|---|---|---|---|---|---|---|
| levels only | address, no rules | 2 | 0 | 0 | clear | true |
| grass-allergy | address, profile | 2 | 2 | 2 | alert | true |
| tree-allergy | address, profile | 2 | 3 | 1 | alert | true |
| outdoor-crew | address, profile | 2 | 4 | 1 | alert | true |
| ragweed-season | address, weeds out of season | 2 | 0 | 0 | clear | true |
| calm point | lat/lng, 3 days, GRASS>=3 | 1 | 0 | 1 | watch | true |
With pageSize=2 over five days, the server took 3 pages and 4 upstream calls, geocode included, and produced the same days as one page. Asking for plant descriptions grows the same synthetic forecast from 11782 to 25437 bytes, so the default asks for none. A synthetic copy of the 403 SERVICE_DISABLED error came back as the tool error google_PERMISSION_DENIED. With a budget of 2 calls, the first address check succeeded and the second returned budget_exceeded. A mocked phrasing reply that slipped in two numbers not present in its input was rejected, and the template wording stayed.
How it is wired
An address costs one Geocoding v4 call, then one forecast:lookup call per page, with the key sent in the X-Goog-Api-Key header. A rule alerts on a day when that entry's UPI value is at least the level, and puts the day on watch when the value is exactly one below. Entries the API returns without indexInfo never fire, and the output adds a note when a rule cannot fire at all. The three tools are pollen_brief, pollen_rules and session_status. Every JSON and Markdown result carries "Includes data from Google Maps", and the server keeps nothing between calls, following the Pollen API policies.
Minilab (open source)
The upstream is Google's Pollen API, so there is no repo to star. To go live, enable the Pollen API in your own Cloud project, put GOOGLE_MAPS_API_KEY in .env, and run bun run record to save one real response for the shape check in tests/live.
Run it yourself
SkilledDragonCorp/pollenbrief-mcp
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run src/cli.ts brief --address "100 Example Ave, Sampletown" --profile grass-allergy --fixturesSkilledDragon is not affiliated with Google LLC. Google Maps Platform, Pollen API and Gemini are trademarks of Google LLC. Numbers come from synthetic fixtures, not real forecasts, and nothing here is medical advice.
All labs