SQL
v0.1.0Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
Values you need
| Variable | What it is | |
|---|---|---|
DB_CONN_default | optional secret | Connection URL for the 'default' connection (postgres://… or sqlite:/abs/path). Additional connections use DB_CONN_<name>. Carries credentials — treated as secret. |
DB_WRITABLE | optional | Set to 1 or true to enable the write tools (execute, execute_script). |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add sql -- npx -y --package=@abhishekmcp/sql@0.1.0 mcp-sqlAdd to
claude_desktop_config.json{
"mcpServers": {
"sql": {
"args": [
"-y",
"--package=@abhishekmcp/sql@0.1.0",
"mcp-sql"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"sql": {
"args": [
"-y",
"--package=@abhishekmcp/sql@0.1.0",
"mcp-sql"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"sql": {
"args": [
"-y",
"--package=@abhishekmcp/sql@0.1.0",
"mcp-sql"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.sql]
command = "npx"
args = ["-y", "--package=@abhishekmcp/sql@0.1.0", "mcp-sql"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_connections, list_schemas, list_tables, describe_table, list_indexes, relationships, query, explain, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json