ThinAir Data
OfficialThinAir Data is a read-only, multi-database MCP server providing AI agents with secure, dialect-aware access to PostgreSQL, MySQL, and SQL Server through 23 tools.
Database Connectivity & Management
Add, list, and test database connections at runtime via DSN — no config file changes needed
Dialect-aware routing (e.g.,
SELECT TOP 10for MSSQL vs.LIMITfor others)
Secure Read-Only Querying
Execute SELECT/WITH/EXPLAIN queries; writes (INSERT, UPDATE, DELETE, DROP, ALTER) are blocked at multiple enforcement layers
Run federated queries across 2–4 connections with unified results and per-source provenance
View query history with timing, row counts, and status; save and reuse queries
Schema & Data Introspection
Describe tables, columns, types, primary keys, foreign keys, and indexes
Quick table snapshots (row counts, null rates, cardinality, ranges) or full data quality reports with 0–100 health scores
Get schema-aware query suggestions for unfamiliar databases
Anomaly Detection & Data Quality
Detect volume spikes/drops, data gaps, high null rates, and stale data with severity-ranked alerts
Scan for PII patterns (emails, SSNs, credit cards, phone numbers, JWTs, bearer tokens)
Query Optimization
Explain query plans with plain-English recommendations
Get rewritten SQL with identified inefficiencies (missing indexes, sequential scans, join problems) and index DDL suggestions
Detect N+1 query patterns from history
Security & Monitoring
Manage a query firewall with per-connection rules to block dangerous patterns, require WHERE clauses, or log PII access
Show active sessions and blocking locks
Monitor table row count changes over time
Developer Utilities
Generate dialect-correct ALTER TABLE migration SQL + rollback statements from plain English (never executes)
Generate realistic seed data (INSERT statements) respecting types, constraints, and FK relationships (never executes)
Analyze blast radius of proposed schema changes including FK dependencies and risk scores
Account & Administration
Check API usage, daily limits, and plan details
Issue fresh API keys (rate-limited to 5/day)
Execute SQL queries, list tables, describe schema, and manage data in MySQL databases.
Execute SQL queries, list tables, describe schema, and manage data in PostgreSQL databases.
ThinAir Data MCP Server
The only MCP database server for PostgreSQL, MySQL, and SQL Server in one session — 23 dialect-aware tools across 4 tiers, from schema introspection to cross-database compare, query firewall, PII scanning, and N+1 detection. Read-only by design.
What It Does
ThinAir Data is a Model Context Protocol (MCP) server that gives AI agents secure, read-only access to your databases — no custom backend required. Three independent enforcement layers (SQL guard, session READ ONLY, optional per-connection custom firewall) reject INSERT / UPDATE / DELETE / DROP / ALTER before they hit your DB. Safe to point any agent at production.
Multi-database — PostgreSQL, MySQL, SQL Server in a single session. Cross-database compare with one tool call.
Read-only by design — three-layer enforcement; write statements never reach your DB.
Dialect-aware — every tool understands
SELECT TOP 10(mssql) vsLIMIT(others) and routes syntax correctly per connection.Tiered capability — 23 tools across 4 tiers: schema introspection, query execution + history, EXPLAIN/optimization, anomaly detection, PII scanning, N+1 detection, query firewall, cross-DB compare.
Connections are managed at runtime — added per-tenant via the
add_connectiontool after sign-in. Never an env var or install-time config.
Product Links
Main: https://data.thinair.co
Connect a database: https://data.thinair.co/connect
Pricing: https://data.thinair.co/checkout
Tools (selected — full list of 23 in docs)
Tool | Tier | Description |
| discover | List connected databases with names + dialects |
| discover | Get schema, columns, indexes, FKs across any connection |
| discover | Execute a parameterized read-only SQL query |
| build | Recent queries with timing, row counts, status |
| build | Distributions, null rates, cardinality on a table |
| architect | Run the same query across 2–4 connections (regional/dialect compare) |
| architect | Statistical outliers in row growth, latency, value distributions |
| architect | Scan a table for PII patterns (SSN, email, phone, credit card) |
| architect | Identify N+1 query patterns in |
| architect | Per-connection custom-block rules (deny specific tables/queries) |
add_connection, query_optimize, explain_query, suggest_queries, generate_migration, watch_table, saved_queries, impact_analysis, and others round out the 23-tool surface.
Quick Start
Claude Desktop, Cursor, Windsurf — OAuth (recommended, keyless)
Add to your client's MCP config (e.g. ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"thinair-data": {
"url": "https://data.thinair.co/mcp"
}
}
}The OAuth flow completes at first use — no manual token setup required. After sign-in, your agent calls add_connection to register a database with its DSN — connections are tenant-scoped and reusable across sessions.
API key (for non-OAuth clients)
{
"mcpServers": {
"thinair-data": {
"url": "https://data.thinair.co/mcp",
"headers": {
"Authorization": "Bearer ta_live_..."
}
}
}
}Get a key at https://data.thinair.co/connect.
npx (CLI / scripts)
npx -y @thinairtelematics/dataPrints a config block to stdout. OAuth-keyless by default.
Supported Databases
Database connections are added at runtime via the add_connection MCP tool — pass the DSN once, the connection becomes a named resource the agent can reuse across sessions. Three dialects supported:
Database | Connection string format |
PostgreSQL |
|
MySQL |
|
SQL Server |
|
You do not put a DSN in your client's config. The add_connection tool is how connections enter the session.
Example Usage
Once connected, ask your AI:
"Show me all rows that haven’t updated in the last 24 hours across staging and prod"
"What are the top 10 slowest queries this week?"
"Scan the customers table for PII patterns"
"Which tables have the most N+1 query exposure?"
npm Package
npmjs.com/package/@thinairtelematics/data
Previously published as
thinair-data(now deprecated in favor of the scoped package).
License
MIT © ThinAir Telematics
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThinAirTelematics/thinair-data'
If you have feedback or need assistance with the MCP directory API, please join our Discord server