Skip to content
Machine-Readable Access

ThaiSafe for AI Agents

Connect your agent to live Thailand safety data — safety scores, alerts, hospitals, beaches, scams, and news — through an MCP server, an OpenAPI 3.1 spec, and llms.txt. Free, read-only, no API key required.

Integration endpoints

MCP Server

Native Model Context Protocol endpoint. Point any MCP-capable agent (Claude, ChatGPT, custom agents) at this URL to query live safety data as tools.

https://api.thaisafe.app/mcp

OpenAPI 3.1 Spec

Full machine-readable spec of the public REST API — every read-only endpoint, parameter, and response schema. Generate a typed client or feed it to your agent directly.

https://thailandsafe.app/openapi.json

llms.txt

A concise, LLM-friendly index of the whole site and API — the fastest way for an agent to discover what ThaiSafe offers.

https://thailandsafe.app/llms.txt

llms-full.txt

The complete ThaiSafe knowledge base as one plain-text document — emergency numbers, regions, scams, hospitals, and more. Suitable for RAG.

https://thailandsafe.app/llms-full.txt

MCP quick start

Add ThaiSafe to any MCP client configuration. The server exposes read-only tools for regions, alerts, hospitals, beaches, scams, and news.

{
  "mcpServers": {
    "thaisafe": {
      "url": "https://api.thaisafe.app/mcp"
    }
  }
}

REST quick start

Every endpoint is a plain GET request returning JSON — no auth, no key. One call returns the live safety picture for a region.

curl https://api.thaisafe.app/regions/phuket/summary

{
  "success": true,
  "data": {
    "region": "phuket",
    "score": { "overall": 7.8, "colorBand": "green", ... },
    "counts": { "activeAlerts": 2, "hospitals": 12, ... },
    "quotes": [ ... ]
  }
}

Rate limits & fair use

Free tier

100 requests/minute per IP globally; region summaries and news are limited to 60 requests/minute. Exceeding the limit returns HTTP 429 — back off and retry.

Fair use

Read-only data is free for agents and research. Please cache responses (most are already edge-cached for 5 minutes), identify your agent with a descriptive User-Agent, and link back to thaisafe.app when displaying our data.

Need higher volume or SLAs?

For commercial products, bulk feeds, historical data, or guaranteed uptime, our data licensing program offers dedicated keys with 1,000 requests/minute and tailored delivery.

api@thaisafe.app

ThaiSafe for AI Agents - MCP Server, OpenAPI & llms.txt | ThaiSafe