How hmmhmmhm/daiso-mcp works
DAISO MCP exposes Korean and Japanese retail, convenience-store, cinema, nearby-place, and fuel-price lookups through a hosted MCP server, REST endpoints, and a CLI. The main flow is an agent or user request entering the Worker, reaching a service-specific API handler or MCP tool, then querying an upstream service and returning a normalized result. The README documents supported capabilities; source-index references and excerpts support only selected internal links, so unsampled service wiring is not expanded into detailed call chains.
Main entry points: registry.ts MCP tools · index.ts Worker entry · client.ts Convenience stores · handlers.ts API handlers
Components 21
User interfaces
- Command interface
src/cli.ts
Worker and MCP
- Worker entry
src/index.ts - MCP tools
src/core/registry.ts - REST endpoints
src/api/routes/registerServiceRoutes.ts - API handlers
src/api/handlers.ts
Lookup services
- Convenience stores
src/services/gs25/client.ts - Daiso and Olive Young
src/services/daiso/client.ts - Japan Daiso
src/services/daisoJp/client.ts - Cinema listings
src/services/cgv/client.ts - Dtryx cinema
src/services/dtryx/transport.ts - Product comparison
src/services/compare/tools/compareProducts.ts - Places and fuel
src/services/places/client.ts
Shared runtime
- Relay and direct transport
src/utils/convenienceTransport.ts - Geocoding
src/utils/geocode.ts - HTTP requests
src/utils/http.ts - Response formatting
src/api/response.ts - Operational health
src/api/healthChecks.ts - Rate-limit metrics
src/durableObjects/rateLimitMetricsStore.ts
Other components
- AI agent
- CLI user
- Retail and information services
Connections 27
- AI agent → Worker entry: uses MCP
README.md - AI agent → REST endpoints: queries REST
README.md - CLI user → Command interface: runs lookup
README.md - Command interface → Worker entry: requests data
- Worker entry → MCP tools: dispatches tools
src/index.ts - Worker entry → REST endpoints: routes requests
src/index.ts - REST endpoints → API handlers: dispatches
- API handlers → Convenience stores: calls clients
src/api/handlers.ts - API handlers → Daiso and Olive Young: calls clients
- API handlers → Retail and information services: returns lookups
README.md - Convenience stores → Relay and direct transport: uses relay
src/services/gs25/client.ts - Convenience stores → Geocoding: resolves addresses
src/services/gs25/client.ts - Convenience stores → HTTP requests: fetches upstream
src/services/gs25/client.ts - Relay and direct transport → HTTP requests: sends requests
src/utils/convenienceTransport.ts - Geocoding → HTTP requests: fetches providers
src/utils/geocode.ts - Geocoding → Places and fuel: searches places
src/utils/geocode.ts - REST endpoints → Response formatting: formats results
- Worker entry → Operational health: serves checks
src/index.ts - Operational health → Retail and information services: checks services
- Worker entry → Rate-limit metrics: records limits
src/index.ts - MCP tools → Daiso and Olive Young: offers product lookup
README.md - MCP tools → Japan Daiso: offers Japan lookup
README.md - MCP tools → Cinema listings: offers cinema lookup
README.md - MCP tools → Dtryx cinema: offers seat lookup
README.md - MCP tools → Product comparison: offers price comparison
README.md - MCP tools → Places and fuel: offers nearby lookup
README.md - MCP tools → Convenience stores: offers inventory lookup
README.md