MCP Server
ให้ AI Agents เรียกเครื่องมือข้อมูลผ่าน Streamable HTTP สาธารณะ อ่านอย่างเดียว ไม่ต้องเข้าสู่ระบบ ข้อมูลชุดเดียวกับ REST API
การเชื่อมต่อ
- Endpoint
https://thailands-daily-pulse.lovable.app/mcp- ชื่อ server / เวอร์ชัน
thailand-daily-signals1.0.0- Transport
- Streamable HTTP — POST JSON-RPC 2.0 พร้อม
Accept: application/json, text/event-stream - Origins
- ทุก origin ไม่ต้องใช้ token
ขอบเขตความปลอดภัย
ทุก tool ติดป้าย readOnlyHint และ idempotentHint อ่านผ่านสิทธิ์สาธารณะเท่านั้น ไม่มี tool สำหรับ ingest, publish, rerun, backfill, สร้างภาพ, settings, queue, jobs หรือไฟล์หลักฐานส่วนตัว
ผลลัพธ์คืนทั้ง content (ข้อความ JSON) และ structuredContent = {data, meta:{timezone:"Asia/Bangkok", read_only:true, note}} ข่าวและ Social มี note ว่าเป็นบริบทเท่านั้น
Tool catalog (17)
Brief
get_today_brief | Return today's Bangkok Daily Brief, including completeness and cutoff window. | — |
get_brief_by_date | Return Daily Briefs; date filters brief_date (Bangkok calendar date). | limit 1–100 (25), date YYYY-MM-DD?, id? (id ignored) |
compare_briefs | Return two Daily Brief editions for direct comparison. | date, previous_date (YYYY-MM-DD) |
Signals
list_signals | List detected meaningful changes. date filters signal_date, id filters metric_id. News and social posts are excluded. | limit 1–100 (25), date YYYY-MM-DD?, id? |
get_signal | Get one signal by event ID (metric_id:YYYY-MM-DD) with its event record and version history. | id = event_id, e.g. dit_pork:2026-10-04 |
list_signal_events | List correction and withdrawal-aware signal events. id filters event_id. | limit 1–100 (25), date YYYY-MM-DD?, id? |
get_household_impact | Return signal versions with their reproducible household-impact fields and advice. id filters event_id. | limit, id? |
Sources
list_sources | List the public source registry and collection cadence. | limit, id? (source name) |
get_source_health | List recent public source collection outcomes and failure reasons. id filters source. | limit, id? |
get_evidence_metadata | List public evidence metadata only; raw files and storage paths are never returned. id filters source. | limit, id? |
Data
get_observations | List real and illustrative observations with source timestamps. date filters observed_on, id filters metric_id. | limit 1–100 (25), date YYYY-MM-DD?, id? |
get_dam_levels | List hourly readings for dams affecting Bangkok. id filters metric_id. | limit, id? |
get_weather_observations | List Bangkok-area TMD station observations. date filters obs_date, id filters station_id. | limit 1–100 (25), date YYYY-MM-DD?, id? |
get_latest_lottery | Return verified GLO draw records, newest first. | limit |
Context
list_social_updates | List FM91 and BTS/MRT posts; context only, these records are not signals. | limit |
list_news_mentions | List tagged and general news context; news never creates or ranks signals. | limit |
Calendar
get_calendar | Return holidays, tax deadlines, and scheduled official releases (soonest first). | limit 1–100 (50) |
ตัวอย่างคำขอ
1. initialize
curl -X POST https://thailands-daily-pulse.lovable.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"demo","version":"1"}}}'2. tools/list
curl -X POST https://thailands-daily-pulse.lovable.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'3. tools/call — Brief วันนี้
curl -X POST https://thailands-daily-pulse.lovable.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_today_brief","arguments":{}}}'4. tools/call — สัญญาณรายตัว
curl -X POST https://thailands-daily-pulse.lovable.app/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_signal","arguments":{"id":"dit_pork:2026-10-04"}}}'ตั้งค่าใน AI client (mcp.json)
{
"mcpServers": {
"thailand-daily-signals": {
"type": "http",
"url": "https://thailands-daily-pulse.lovable.app/mcp"
}
}
}