Thinair Data

Communauté Données et bases de données

Dialect-aware tools for PostgreSQL, MySQL and SQL Server: queries, schema introspection, optimization, migrations and PII scanning.

Que pouvez-vous faire avec Thinair Data ?

  • 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.

Installation

Les étapes d'installation sont dans la documentation ci-dessous. Documentation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. ThinAir Data MCP Server
  2. Part of ThinAir
  3. Hosted product vs this repository
  4. What It Does
  5. Product Links
  6. Agent Discovery
  7. Tools (selected — full list of 26 in docs)
  8. Quick Start
  9. Supported Databases
  10. Example Usage
  11. Not for secrets
  12. npm Package
  13. License

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

> 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.

Agent Discovery

Autonomous agents and directory crawlers can discover this server's capabilities without parsing this README. All three surfaces are live and served by the hosted product:

SurfaceURLCarries
Agent card (A2A)https://data.thinair.co/.well-known/agent-card.jsonProtocol version, endpoint, transport, auth schemes, and all 26 skills
Skills indexhttps://data.thinair.co/.well-known/skills.jsonMachine-readable catalog of the 26 tools
LLM guidehttps://data.thinair.co/llms.txtPlain-text orientation for language models

The MCP endpoint itself is https://data.thinair.co/mcp (streamable-http; OAuth 2.1 keyless, or Authorization: Bearer).

Tools (selected — full list of 26 in docs)

ToolTierDescription
list_connectionsdiscoverList connected databases with names + dialects
describe_schemadiscoverIntrospect tables, columns, types, primary keys, and indexes for a connection (foreign keys are not reported; MySQL indexes not yet)
query_sqldiscoverExecute a parameterized read-only SQL query
query_historybuildRecent queries with timing, row counts, status
data_profilebuildDistributions, null rates, cardinality on a table
cross_db_queryarchitectRun the same query across 2–4 connections (regional/dialect compare)
detect_anomaliesdiscoverStatistical outliers in row growth, latency, value distributions
pii_scanbuildScan a table for PII patterns (SSN, email, phone, credit card)
find_n_plus_onearchitectIdentify N+1 query patterns in query_history
query_firewallarchitectPer-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

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:

DatabaseConnection string format
PostgreSQLpostgresql://user:pass@host:5432/db
MySQLmysql://user:pass@host:3306/db
SQL Serversqlserver://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

Questions fréquentes

Qu'est-ce que Thinair Data ?

Dialect-aware tools for PostgreSQL, MySQL and SQL Server: queries, schema introspection, optimization, migrations and PII scanning.

Comment installer Thinair Data ?

Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.

Thinair Data est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient Thinair Data ?

Il est publié par ThinAirTelematics. AI.tn le référence sans le maintenir ni le recommander.

Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.