Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
Connect Runs on your machine
claude mcp add sql -e DB_CONN_default=<DB_CONN_default> -e DB_WRITABLE=<DB_WRITABLE> -- npx -y @abhishekmcp/[email protected]
{
"mcpServers": {
"sql": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"DB_CONN_default": "<DB_CONN_default>",
"DB_WRITABLE": "<DB_WRITABLE>"
}
}
}
}
{
"mcpServers": {
"sql": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"DB_CONN_default": "<DB_CONN_default>",
"DB_WRITABLE": "<DB_WRITABLE>"
}
}
}
}
{
"servers": {
"sql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/[email protected]"
],
"env": {
"DB_CONN_default": "<DB_CONN_default>",
"DB_WRITABLE": "<DB_WRITABLE>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DB_CONN_defaultOptional, secret | Connection URL for the 'default' connection (postgres://… or sqlite:/abs/path). Additional connections use DB_CONN_<name>. Carries credentials — treated as secret. |
DB_WRITABLEOptional | Set to 1 or true to enable the write tools (execute, execute_script). |
Details
| Package | @abhishekmcp/[email protected] (NPM, stdio) |
| First published | 4 Jul 2026 |
| Last updated | 4 Jul 2026 |
| Registry name | io.github.Abhishekkumar2021/sql |
More databases servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
