SQL for Claude, Cursor, ChatGPT & agents
SQL — read-only access to Postgres and MySQL databases via a BYO connection URL
curl -fsSL https://syncorelabs.ai/install.sh | shmacOS / Linux. Windows + manual install.
What it does
SQL — read-only access to Postgres and MySQL databases via a BYO connection URL. Run SELECT / WITH / EXPLAIN / SHOW / DESCRIBE statements, list databases / schemas / tables, describe table columns + types + nullability, list indexes, fast COUNT and sample previews, EXPLAIN query plans, and identify the connected server. Read-only enforced at session level; multi-statements blocked. Use when the user mentions SQL, Postgres, MySQL, database, query, schema introspection, table sample, EXPLAIN, or wants to read / explore relational data.
The SQL skill is one of 75+ pre-wired Syncore integrations that any MCP-compatible client — Claude Desktop, Claude Code, Cursor, Windsurf, Codex CLI, and ChatGPT desktop — can call out of the box. You don't configure MCP servers or copy API keys into a JSON file; the Syncore daemon discovers the skill at startup and exposes its tools to whichever AI client is running.
Sample prompts
Once Syncore is installed and SQL is connected, ask your agent something like:
- “Query from SQL.”
- “List databases from SQL.”
- “List schemas from SQL.”
Tools available (10)
sql__queryRun a read-only SQL statement (SELECT / WITH / EXPLAIN / SHOW / DESCRIBE) and return columns + rows. Multiple statements are blocked.
sql__list_databasesList databases on the server (Postgres: pg_database; MySQL: SHOW DATABASES). May fail on permission-restricted users.
sql__list_schemasList schemas (Postgres) or treat databases as schemas (MySQL)
sql__list_tablesList tables in a schema (Postgres) or database (MySQL)
sql__describe_tableGet column metadata (name, type, nullable, default, key/extra) for a table
sql__list_indexesList indexes on a table (name, columns, unique, primary)
sql__count_tableConvenience: SELECT COUNT(*) FROM <schema>.<table>. Identifiers are validated.
sql__sample_tableConvenience: SELECT * FROM <schema>.<table> LIMIT N for a quick preview
sql__explainEXPLAIN a SELECT / WITH query. Postgres returns FORMAT JSON; MySQL returns the table form.
sql__get_database_infoReturn server version, current database, and current user / role for the connection
How to connect
SQL needs a provider API key to talk to sql. Connect it from the Syncore dashboard:
- Run
curl -fsSL https://syncorelabs.ai/install.sh | shon macOS / Linux (or the PowerShell command on Windows). - Run
syncore loginto create your account and a device-bound encryption key. - Visit syncorelabs.ai/connect and authorize SQL.
- Run
syncore updateto sync the skill + credentials to every installed AI client.
Pricing
Free at every Syncore tier. Connect your account once at /connect; the OAuth or API-key credential stays encrypted on your machine and syncs to your other devices via the Syncore vault.
See the full Syncore pricing breakdown — Free $0/mo, Pro $29/mo, Ultra $99/mo — on the homepage.