Claude SQL skill vs MCP connector: which one do you need?

A skill changes how Claude writes SQL. A connector lets Claude see your schema and run queries against your data. They solve different problems, and many teams use both.

Short answer: if you want Claude to follow your SQL conventions, write a skill. If you want Claude to answer questions from your real database, you need an MCP connector. A skill alone cannot see your tables, and a connector alone does not know your team's naming rules or business definitions.

Side by side

SQL skillMCP connector
What it isInstructions and files Claude loads when relevantA server exposing tools Claude can call
Sees your real schemaOnly what you write into itYes, read live
Runs queriesNo (unless it calls a tool)Yes
Good forStyle guides, dialect rules, metric definitions, query templatesAnswering questions from data, exploring a schema, checking a query's result
Goes stale whenThe schema changes and nobody updates the fileRarely: the schema is read at question time
Main riskOutdated or wrong instructionsWrite access or leaked credentials, if the connector allows them

When a skill is enough

When you need a connector

Using both

A common setup is a small SQL skill with your conventions and metric definitions, plus a read-only connector for the data. The skill shapes the SQL; the connector grounds it in the real schema and runs it. Keep schema details out of the skill when a connector can read them live, so there is one source of truth.

What to check in a SQL connector

AI2SQL is an MCP connector built this way for PostgreSQL, MySQL and SQL Server. Setup guides: PostgreSQL, MySQL, SQL Server.

Frequently asked

What is a Claude SQL skill? +

A Claude skill is a folder of instructions (a SKILL.md file, optionally with scripts and reference files) that Claude loads when a task matches it. A SQL skill typically holds your SQL style guide, dialect rules, naming conventions, common query patterns or a description of your schema. It changes how Claude writes SQL; on its own it does not connect Claude to a database.

What is a SQL MCP connector? +

An MCP connector is a server that gives Claude tools it can call, for example list_connections, describe_schema and run_query. With a database connector Claude reads your real schema and runs queries, so answers come from your data instead of from guesses.

Do I need a skill or an MCP connector to query my database with Claude? +

To answer questions from live data you need a connector (or another tool that can reach the database). A skill alone can only teach Claude how to write SQL. Many teams use both: a skill for house rules and a connector for the actual data.

Is a skill or a connector safer? +

A skill has no database access, so it cannot change data. With a connector, safety depends on the connector: use one that only runs read-only statements, keeps the database password off the client, caps result size and logs every query, and connect it with a read-only database user.

Does AI2SQL have a Claude skill? +

No. AI2SQL is an MCP connector for PostgreSQL, MySQL and SQL Server that works in claude.ai, Claude Desktop and Claude Code. You can still pair it with your own SQL skill for team conventions.

Give your agent a database it can't break

Connect a database, grab a key, paste one config. Read-only, logged and revocable from the first query.

Start free →

Related guides