Purpose: ThinAir Data is a Model Context Protocol (MCP) server that lets AI agents securely access PostgreSQL, MySQL, and SQL Server in read-only mode, without building a backend, for operational analytics, reporting, and AI-assisted database workflows.
Key capabilities: Supports all three databases within a single session; 26 tools across 4 tiers, including schema exploration, query execution and history, EXPLAIN/optimization, anomaly detection, PII scanning, N+1 detection, query firewall, cross-database comparison, and runtime connection management (add_connection, remove_connection). Tools are dialect-aware and can correctly route syntax such as SELECT TOP 10 (mssql) and LIMIT (others) by connection.
Usage: The MCP endpoint is https://data.thinair.co/mcp(streamable-http,支持 OAuth 2.1 keyless or Authorization: Bearer). Claude Desktop, Cursor, and Windsurf recommend using OAuth; add it to the client MCP configuration and complete authorization on first use; non-OAuth clients can obtain an API key at https://data.thinair.co/connect obtain an API key; you can also use npx to print the configuration block. Connections are added at runtime per tenant via the add_connection tool; after passing in a DSN once, it becomes a named resource reusable across sessions and is not written to client configuration or environment variables.
Use cases: Querying stale data across staging and prod, finding the slowest queries, scanning for PII, assessing N+1 exposure, etc.
Limitations: Read-only by design, enforced through SQL guards, database session read-only mode (where supported), and optional per-connection firewall rules; you should still use least-privilege credentials and avoid exposing sensitive tables. Production use may require a ThinAir account, API key, OAuth connection, or managed workspace. Do not submit DSNs, passwords, tokens, or production credentials. The npm package is @thinairtelematics/data; the old package thinair-data is deprecated.