places-new-mcp field-masks every Google Places call and caps each session at 25 calls
An MCP server with eight read-only tools over Places API (New), Geocoding v4 and the Routes API. Every call carries a field mask, repeats hit a cache, and a session budget stops runaway agents.
By David Discua
Measured in the lab
- 8
- read-only tools
- 25
- default calls per session
- 46.6%
- smaller than masked JSON (synthetic)
- 2
- bad masks refused before the network
- A wildcard field mask is refused before any network call
- An Enterprise + Atmosphere field is refused at the default tier ceiling
- A repeated text search is served from cache with no budget used
- With a budget of 2, calls three and four return budget_exceeded
- No legacy maps.googleapis.com endpoint is called
From reports/places-new-mcp.json · run on October 21, 2026. Keyless run of the real MCP server over synthetic responses (invented places, real response shapes); byte counts are illustrative
How it is wired
01/04Your agent calls one of eight read-only tools.
places-new-mcp is a small MCP server and CLI over Google's Places API (New), Geocoding API v4 and the Routes API. Every request carries a field mask, answers come back as flat compact JSON, identical calls are cached for the session, and each session has a hard upstream call budget (25 by default). We ran the real MCP server keyless over synthetic responses and checked that it refuses bad masks, serves repeats from cache and stops at the budget. The catch is that every byte count in the run comes from invented places, so read the 46.6% size cut as a picture of the compaction on made-up data.
The catch
The keyless numbers use synthetic responses: invented values in the same JSON shape as real Google responses. A shape test checks them against real responses, which stay out of the repo, and a live smoke test (text search, geocode, route, plus a cache hit) passed against the real APIs on October 21, 2026. The byte counts still depend on the invented values.
The SKU labels are estimates. Field tiers were copied from Google's docs for the 27 supported fields, the Geocoding v4 SKU name was not verified, and no prices are quoted. The cache needs care too. Google's Places policies restrict caching Places content beyond allowed exceptions, so the cache here lives in memory, per process, for 60 seconds by default, and PLACES_MCP_CACHE_TTL_S=0 turns it off. The budget is per process or MCP connection, not per key or per day, so set Cloud quotas for hard limits.
What we ran (keyless)
bun install --frozen-lockfile
bun run src/cli.ts text-search "coffee near Example Market Hall, Sampletown" --limit 5 --fixtures
bun run report
From reports/places-new-mcp.json, run on October 21, 2026, over synthetic responses:
| Tool | Billed SKU (from mask) | Masked bytes | Compact bytes | Smaller by |
|---|---|---|---|---|
places_text_search | Text Search Pro | 1863 | 1238 | 33.5% |
places_nearby_search | Nearby Search Pro | 1356 | 736 | 45.7% |
place_details | Place Details Pro | 355 | 240 | 32.4% |
place_details (Enterprise fields) | Place Details Enterprise | 1134 | 437 | 61.5% |
places_autocomplete | Autocomplete Requests | 1715 | 1271 | 25.9% |
geocode_address | Geocoding (v4) | 239 | 206 | 13.8% |
reverse_geocode | Geocoding (v4) | 2976 | 963 | 67.6% |
compute_route | Compute Routes Essentials | 184 | 154 | 16.3% |
| total | 9822 | 5245 | 46.6% |
The guard checks behaved as designed. fields: ["*"] was refused before any network call, and so was editorialSummary (Enterprise + Atmosphere) under the default tier ceiling. A repeated text search came from cache with no budget used. A malformed place id returned google_INVALID_ARGUMENT. With the budget set to 2, four different calls returned ok, ok, budget_exceeded, budget_exceeded. Reverse geocode keeps the top 5 of 14 results, a client-side trim that does not change the bill.
How it is wired
Each tool builds its request from a curated list of 27 place fields, each tagged with the tier Google's docs assign it. The priciest field sets the SKU, which the tool reports in meta.sku. A transport refuses to send any request without X-Goog-FieldMask, and PLACES_MCP_MAX_TIER refuses fields above the ceiling. Google moved the old Places, Directions and Distance Matrix APIs to Legacy on March 1, 2025, and this server never calls a legacy endpoint.
Minilab (open source)
The upstreams are Google's hosted Places API (New), Geocoding API v4 and Routes API, so there is no GitHub repo to count stars on. Run bun run report keyless, then add a key restricted to those three APIs and run bun test to repeat the live smoke test.
Run it yourself
SkilledDragonCorp/places-new-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 reportSkilledDragon is not affiliated with Google. Keyless numbers come from synthetic responses with invented places and are illustrative; your Google Cloud bill is the source of truth for cost. Marks belong to their owners.
All labs