Fly a 3D globe, click any city, and see what it actually loves β every venue scored 0β100 by the Grounding Score, Qloo's taste graph underneath, an MCP server on top so any AI agent can query cultural ground truth.
Remove Qloo and TopoVibe is an empty basemap β cultural intelligence is not a feature, it is the product. TopoVibe runs as a CesiumJS globe for humans and a first-class MCP server for agents, answering the hackathon's brief literally: an agentic tool that only works because it knows what people love.
Built for the Qloo Agentic Hackathon Β· MIT License Β· Development brief
π Live demo: topovibe.onrender.com Β· MCP: https://topovibe.onrender.com/mcp (see mcp.json) Β· Verified end-to-end with scripts/verify-deploy.mjs (7/7)
AI agents are culturally blind: they recommend fluent, generic, popularity-ranked "agentic slop." Review sites measure popularity; LLMs hallucinate taste. TopoVibe grounds every answer in Qloo's taste graph (250M+ entities, billions of anonymized signals) β the LLM/agent never invents taste, it calls Qloo and narrates verified results. On top of raw answers, TopoVibe computes the Grounding Score (GS), a 0β100 proof-of-human authenticity index, rendered FLIR-style: loved analog venues glow hot red, viral tourist traps glow cold blue.
GS(venue) = 100 Γ clamp(0.6Β·A + 0.4Β·T β 0.3Β·N)
| Component | Meaning | How computed (documented Qloo data only) |
|---|---|---|
| A β Affinity | How strongly Qloo's graph associates this venue with the cohort | Rank-normalized position in the /v2/insights result set (top β 1.0), blended with the venue's popularity field |
| T β Analog density | Proof-of-human texture | venue tag-URNs β© analog lexicon / lexicon size. The lexicon (8 keywords: vinyl, independent bookshop, ceramics, craft, quiet, heritage, record store, third place) is resolved to real tag URNs via /v2/tags at server startup |
| N β Viral noise | Tourist-trap penalty | /v2/trending acceleration β but /v2/trending does not support urn:entity:place (verified live against the hackathon API), so for venues N = 0 and n.unknown = true (pre-agreed kill-switch, shown in the UI, never hidden) |
GS is withheld (gs: null, confidence: insufficient-data) when affinity results are empty or the lexicon failed to resolve. It is never interpolated. Every panel shows the three component bars β the score shows its work.
The 7-hour MVP cut:
- CesiumJS 3D globe on keyless Esri World Imagery, bundled demo cities (Austin Β· New York City Β· Tokyo), no geocoder dependency
- Cultural DNA panel β click a city β signature tags, demographics (age + gender affinity deltas), top 10 places
- Cultural heatmap β one tag draped over one city as affinity-colored points (blue β red), toggleable
- Grounding Score markers β red/amber/blue/grey venue markers; click β A/T/N breakdown panel
- TopoVibe MCP server β 5 tools for AI agents over streamable HTTP
- Share links β camera + city + tag round-trip through the URL hash
- Honest data everywhere β coverage badges (
live | cached | insufficient-data) on every panel, and the raw Qloo query echo behind every taste claim
Post-submission additions (from user feedback):
- Any-city search β type any city; Qloo resolves the locality itself (no geocoder) and the globe flies there
- Any-tag heatmaps β drape any keyword (resolved to a real tag URN via
/v2/tags), not just the 3 presets - Venue detail β real photos, descriptions and websites from Qloo entity records in the breakdown panel
- Clickable heat cells β every cell reports its affinity + popularity
- Zoom +/- controls, DNA tag chips remain clickable shortcuts to heat + GS layers
AGENTS (MCP) HUMANS (browser)
Claude/Cursor Β· agent loops TopoVibe globe (static, Vite + CesiumJS)
β HTTP + JSON-RPC (streamable) β REST/JSON
βββββββββ΄ββββββββββββββββββββββββββββββββββββββ΄βββββββββββββ
β TopoVibe SERVER (Node.js, Express) β
β server/qloo.js broker: X-Api-Key server-side only, β
β GET-only, 6h TTL cache, validity β
β server/validity.js param β filter.type matrix β
β server/grounding.js Grounding Score engine (A/T/N) β
β server/routes.js /api/dna Β· /api/heatmap Β· β
β /api/grounding Β· /api/resolve Β· β
β /api/health β
β server/mcp.js MCP endpoint: 5 tools β
β server/cache.js TTL cache + demo pre-cache loader β
βββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββ
β GET, query string, X-Api-Key
βββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Qloo API β https://hackathon.api.qloo.com β
β /search Β· /v2/tags Β· /v2/insights Β· /v2/trending β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
git clone <repo-url> && cd topovibe
npm install # Windows sandbox note: use --ignore-scripts if esbuild's postinstall is blocked
cp .env.example .env # paste your Qloo hackathon key into QLOO_API_KEY
npm run selfcheck # MUST be green before anything else
npm run dev # globe at http://localhost:4173 (API proxied)Click Austin β DNA panel. Click a preset (π πΈ β) β heatmap + GS venue markers. Click a marker β the score shows its work.
npm run precache # burn quota once: 3 cities Γ 3 presets β cache/precache.json (git-ignored)
npm run dev # demo flows now serve with coverage=cachednpm run build # Vite build β dist/
npm start # Express serves dist/ + API + MCP on PORT (4173)5 tools, streamable HTTP, per-IP rate limit (30/min). Every response embeds the raw Qloo query echo for auditability; errors are named and actionable.
| Tool | Args | Returns |
|---|---|---|
resolve_entities |
query, types? |
[{name, entity_id, subtype, popularity}] |
resolve_tags |
keyword |
[{tag_id, name, subtype}] |
get_insights |
filterType, signals{}, filters{}, take?, page? |
ranked entities (validity-checked against the Qloo matrix) |
get_taste_profile |
locationQuery |
signature tags + demographics + top places |
get_grounding_score |
city, tag or city, entityIds[] |
[{entity, gs, components, confidence}] |
Wire any MCP client with mcp.json:
{ "mcpServers": { "topovibe": { "type": "streamable-http", "url": "http://localhost:4173/mcp" } } }Inspect interactively: npx @modelcontextprotocol/inspector β connect β http://localhost:4173/mcp.
| Endpoint | Wraps | Used by |
|---|---|---|
GET /api/health |
self-check | boot banner |
GET /api/resolve?q=&types= |
/search |
entity pickers |
GET /api/dna?city= |
urn:tag + urn:demographics + urn:entity:place |
DNA panel |
GET /api/heatmap?city=&tag= |
urn:heatmap |
heat layer |
GET /api/grounding?city=&tag= |
insights + tags + GS engine | GS markers |
- Base URL is
QLOO_BASE_URL, defaulthttps://hackathon.api.qloo.comβ startup self-check fails loudly otherwise. - Auth is
X-Api-Keyheader β never Bearer, never query param. The key lives only in.env(git-ignored) and is read from the environment at runtime. /v2/insightsis GET with query-string params only.filter.typevalues are full URNs;PLACE-style shorthand is rejected with a named error.- IDs are resolved before signaling (
/search,/v2/tags) β never invented. - Location modes:
signal.location.query,signal.location,filter.location.query,filter.location.radius. - The validity matrix (
server/validity.js) strips + logs invalid params client-side β the API ignores them silently, we refuse to. - Legacy
/recsand/recommendationsthrowQlooForbiddenEndpointwithout a network call.
/v2/tagsrequiresfilter.query(a bare?query=400s with a helpful error listing valid filters)./v2/trendingfilter.typeaccepts onlyactor, artist, brand, movie, person, podcast, tv_showβ noturn:entity:place(hencen.unknownfor venues).filter.location.queryhard-filters places to a locality;signal.location.queryalone can drift out-of-town (an Austin record-store query leaks San Antonio venues).- Demographics coverage is sparse: niche tags return empty; the DNA panel falls back through top tags β top places and says
insufficient-datahonestly when all fail. - The indie-music keyword tag yields no place heat grid; demo presets use place-genre tags (verified dense in all three demo cities).
- No taste claim without a Qloo
queryecho behind it. - GS withheld, never interpolated, on insufficient data.
- People are not a query type β no person-tracking affordances.
- No PII collected; no accounts.
- Coverage badge on every panel:
live | cached | insufficient-data.
One service serves everything (static client + REST + MCP) β so one host covers the whole app:
- Render free instance (used for this submission) β
render.yamlBlueprint: Render β New β Blueprint Instance β repokvmtest/topovibeβ setQLOO_API_KEYwhen prompted β Deploy. Render injectsPORTitself; the service listens on it. Free instances sleep after ~15 min idle β point a free uptime ping (e.g. UptimeRobot, 5-min interval) at/api/healthto keep it warm for judges. Manual alternative: New β Web Service β buildnpm install && npm run buildβ startnpm start. - AWS Elastic Beanstalk (planned for the final version) β upload a source bundle (
git archiveof tracked files β no secrets, no cache), Node.js 22 platform, set env varQLOO_API_KEY. EB runsnpm installandnpm start, which auto-builds the client on first boot (scripts/start.mjs). - AWS App Runner β
apprunner.yamlincluded, but note: App Runner stopped accepting new customers (AWS notice, April 30, 2026); existing-customer accounts can still use it. - Fly.io β
fly launch(Node 20+, port 4173),fly secrets set QLOO_API_KEY=....
After deploying, point mcp.json at https://<your-host>/mcp.
| Kill-switch | Status |
|---|---|
| MCP SDK trouble β plain REST | Not needed β @modelcontextprotocol/sdk streamable HTTP works; verified headlessly via raw JSON-RPC (initialize β tools/list β 5 tools/call β 429 rate limit). |
Sparse trending β N=0 + unknown flag |
ENGAGED β /v2/trending has no urn:entity:place support; every venue shows n.unknown = true. |
| Sparse heatmap city β backup city | Not needed β Austin/NYC/Tokyo grids are dense for all 3 presets. Two tags were swapped instead (indie-music keyword β live-music-venue; specialty-coffee β coffee-shop genre). |
| Deploy trouble β flawless local run | Available; npm start after npm run build is the judged fallback. |
topovibe/
βββ LICENSE # MIT + attribution note
βββ README.md Β· mcp.json Β· render.yaml
βββ .env.example # QLOO_API_KEY, QLOO_BASE_URL, PORT, DEMO_CITIES
βββ package.json Β· vite.config.js Β· index.html
βββ src/ # CLIENT (Vanilla JS + CesiumJS + Vite)
β βββ main.js # boot: viewer, basemap, wire modules
β βββ globe.js # Cesium init (Esri), fly-to
β βββ cities.js # bundled demo-city list (keyless search)
β βββ layers/insights.js # GS-colored venue markers
β βββ layers/heatmap.js # urn:heatmap β affinity-colored points
β βββ panels/dna.js # Cultural DNA panel
β βββ panels/grounding.js # GS badge + A/T/N bars
β βββ share.js # scene β URL hash
βββ server/
β βββ index.js # Express boot, static, startup self-check
β βββ qloo.js # broker (X-Api-Key, GET-only, cache, validity)
β βββ validity.js # param β filter.type matrix
β βββ grounding.js # Grounding Score engine
β βββ routes.js # /api/* REST (+ shared builders for MCP)
β βββ mcp.js # MCP server (streamable HTTP), 5 tools
β βββ cache.js # TTL cache + demo pre-cache loader
βββ scripts/
βββ selfcheck.mjs # one /v2/insights ping β green at minute 0
βββ precache.mjs # warms cache for 3 demo cities Γ 3 presets
βββ probe.mjs / probe-raw.mjs / probe-entity.mjs # API shape discovery
βββ phase1/4/5-check.mjs # acceptance checks
- TopoVibe is a clean-room build, inspired by the open-source "God's Eye View" project (MIT) β no God's Eye View code, assets, or data were copied.
- Qloo: hackathon key, valid only on
hackathon.api.qloo.com, subject to rate/monthly quotas, expires post-judging. Responses are cached privately per Qloo terms; nothing cached is committed (cache/is git-ignored). Production use requires a commercial Qloo agreement. - Basemap: Esri World Imagery per Esri terms; attribution rendered on-globe.
- Demo geography: Austin Β· New York City Β· Tokyo (the cities Qloo's own docs use in examples).
MIT β see LICENSE.


