Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

ThinAir Data MCP server](https://glama.ai/mcp/servers/ThinAirTelematics/thinair-data/badges/score.svg)](https://glama.ai/mcp/servers/ThinAirTelematics/thinair-data) πŸ“‡ ☁️ - Connect any AI to PostgreSQL, MySQL, or SQL Server β€” 24 dialect-aware tools for...

README.md

ThinAir Data MCP Server

The only MCP database server for PostgreSQL, MySQL, and SQL Server in one session β€” 26 tools across 4 tiers β€” schema introspection, cross-database compare, query firewall, PII scanning, N+1 detection, and runtime connection management. Read-only data access by design.

26 tools Β· PostgreSQL Β· MySQL Β· SQL Server Β· Read-only data access, schema discovery, profiling, SQL safety, anomaly detection

![npm version](https://www.npmjs.com/package/@thinairtelematics/data) ![License: MIT](LICENSE) ![smithery badge](https://smithery.ai/servers/thinair/data)

> describe_schema("fleet")
βœ“ 42 tables discovered Β· 6 high-value entities
βœ“ no write permissions enabled
> ask("Which vehicles had the most idle time last week?")
βœ“ generated safe read-only SQL Β· returned 10 rows Β· flagged 3 exceptions

Part of ThinAir

ThinAir Data is part of the ThinAir platform for fleet visibility, analytics, operational search, reporting, and AI-assisted decision support.

Hosted product vs this repository

  • data.thinair.co is the hosted ThinAir product.
  • This repository is the thin public MCP package/pointer for developers and AI-agent clients.
  • Production use may require a ThinAir account, API key, OAuth connection, or hosted workspace.

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. Designed for read-only production access when configured correctly. ThinAir Data enforces read-only behavior through SQL guards, database-session read-only mode where supported, and optional per-connection firewall rules. You should still use least-privilege database credentials and avoid exposing sensitive tables unless required.

  • Multi-database β€” PostgreSQL, MySQL, SQL Server in a single session. Cross-database compare with one tool call.
  • Read-only by design β€” SQL guards, database-session read-only mode where supported, and optional per-connection firewall rules.
  • Dialect-aware β€” every tool understands SELECT TOP 10 (mssql) vs LIMIT (others) and routes syntax correctly per connection.
  • Tiered capability β€” 26 tools across 4 tiers: schema introspection, query execution + history, EXPLAIN/optimization, anomaly detection, PII scanning, N+1 detection, query firewall, cross-DB compare, and runtime connection management (add/remove).
  • Connections are managed at runtime β€” added per-tenant via the add_connection tool after sign-in. Never an env var or install-time config.

Product Links

  • Product: https://data.thinair.co
  • Connect a database: https://data.thinair.co/connect
  • Docs: https://data.thinair.co/docs/getting-started
  • Pricing: https://data.thinair.co/checkout
  • ThinAir: https://thinair.co

Tools (selected β€” full list of 26 in docs)

| Tool | Tier | Description | |------|------|-------------| | list_connections | discover | List connected databases with names + dialects | | describe_schema | discover | Get schema, columns, indexes, FKs across any connection | | query_sql | discover | Execute a parameterized read-only SQL query | | query_history | build | Recent queries with timing, row counts, status | | data_profile | build | Distributions, null rates, cardinality on a table | | cross_db_query | architect | Run the same query across 2–4 connections (regional/dialect compare) | | detect_anomalies | architect | Statistical outliers in row growth, latency, value distributions | | pii_scan | architect | Scan a table for PII patterns (SSN, email, phone, credit card) | | find_n_plus_one | architect | Identify N+1 query patterns in query_history | | query_firewall | architect | Per-connection custom-block rules (deny specific tables/queries) |

add_connection, remove_connection, optimize_query, explain_query, suggest_queries, generate_migration, generate_seed_data, watch_table, saved_queries, impact_analysis, configure_allowlist, and others round out the 26-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/data

Prints 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 | postgresql://user:pass@host:5432/db | | MySQL | mysql://user:pass@host:3306/db | | SQL Server | sqlserver://user:pass@host:1433/db |

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?"

Not for secrets

Do not commit DSNs, passwords, tokens, private keys, or production credentials. Use OAuth, the hosted connection flow, or your MCP client's secret storage.

npm Package

npmjs.com/package/@thinairtelematics/data

Previously published as thinair-data (now deprecated in favor of the scoped package).

License

MIT Β© ThinAir Telematics

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Databases servers.