Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv0.6.24MITIn 1 marketplace
Lets agents query and inspect SQL Server and Azure SQL Database. Access is read-only by default under a read-only database principal, and writes are off unless a registration opts in with --write and a person approves each call.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
azure-sql, t-sql, database-access, read-only-queries, sql-queries, read-only, mcp
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Read-only access to SQL Server-family databases (a local SQL Server container, Azure SQL Database) for agents. The design is ADR 0086.
This release ships the versioned config schema, its loader, the single-statement reject list, the
stdio MCP server with its five tools, the executor that runs each call on SQL Server through
tedious, and the setup skill that checks a config and registers its environments. A
registration is read-only unless it opts in to writes, which a person approves on
every call. The plugin is off by default.
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install sql-server@melodic-software
/sql-server:setup check --config <path>, then /sql-server:setup apply --config <path>.
apply installs the server into the plugin's data directory, which keeps its path across
plugin updates, and prints one claude mcp add command per environment, which it runs once you
confirm. The command names each credential by reference, --env 'NAME=${NAME}', never by
value, and apply reads each registration back to confirm it. Project scope is refused, because
the agent can edit the repository.The check is a script you can run on its own. From a checkout of this repository:
node plugins/sql-server/skills/setup/scripts/check-setup.mjs --config <path> [--environment <name>] [--data-dir <dir>]
It prints one PASS, FAIL or INFO row for Node.js, the config, each environment, each credential
variable (set or not, never its value) and, with --data-dir, the installed server copy, then each
environment's claude mcp add command. It exits 1 when a row fails, as it does for a config with a
literal password, and writes nothing.
One process serves one registration over stdio:
node plugins/sql-server/src/launch.mjs --config <path> --environment <name> [--write]
--environment picks one environment from the config: one server and its database allow-list.
Every registration exposes the same five tools, whether or not it passes --write, and
tools/list returns the same list every time. The tools capability declares listChanged
false.
| Tool | Arguments | Returns |
|---|---|---|
query | sql (one SELECT, optionally led by WITH), database | The rows |
list_objects | database, schema | Schemas, tables and views |
describe_object | name, schema, database | Columns, keys and indexes |
preview_write | name, schema, database | The triggers on a table, the foreign keys that cascade from it, and the triggers on each table a cascade reaches |
write | sql (one INSERT, UPDATE, DELETE or MERGE, optionally led by WITH), expectedRows, database | The committed row count; refused without --write |
database is optional and defaults to the first database in the allow-list. A name outside the
list is refused before any connection opens. No argument names a server or an environment, so
reaching another environment takes another registration. A refusal, whether it comes from the
allow-list, an unknown argument or the reject list, comes back as a tool error (isError: true)
with the reason.
The server answers the stateless 2026-07-28 MCP protocol (server/discover and per-request
_meta) and the initialize-based 2025-11-25 protocol.
The write tier is off by default. A registration opts in with --write, and its environment must
hold a write block naming a write principal: a second login or Entra identity, separate from
the read principal in auth (see Config). The read tools keep connecting as the read
principal. Without --write, write refuses every call before it connects. The setup skill's
registration commands leave --write out, so add it yourself to a registration you want to write
through. They also forward only the read principal's credential variables. For a sql-login
write principal, add one --env 'NAME=${NAME}' entry for each variable its write.auth names,
such as --env 'SQL_WRITER_USER=${SQL_WRITER_USER}' --env 'SQL_WRITER_PASSWORD=${SQL_WRITER_PASSWORD}',
or the first approved write fails because the variable is not set. An entra-default write
identity needs no extra --env entry: its clientId comes from the config.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub melodic-software/claude-code-plugins --plugin sql-serverPlugins from other owners that cover similar ground