What this kind of tool is for
- Query, inspect, or seed a database without writing a one-off script.
- Let your agent look up schema details before it writes migration code.
- Move a small dataset between tools without leaving the terminal.
How to compare servers like this
- Engine match:
- Confirm it speaks your exact database and version, not just the family.
- Access scope:
- Read-only connections are the safe default — start there before granting writes.
- Safety rails:
- Check whether destructive statements need an explicit confirmation before they run.
- Maintenance signal:
- Database drivers change; a recently updated tool is less likely to break mid-query.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the SQL MCP server?
Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
How to install SQL
Copy-paste configuration for popular MCP clients.
DB_CONN_defaultsecretConnection URL for the 'default' connection (postgres://… or sqlite:/abs/path). Additional connections use DB_CONN_<name>. Carries credentials — treated as secret.
DB_WRITABLESet to 1 or true to enable the write tools (execute, execute_script).
{
"mcpServers": {
"sql": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/sql"
],
"env": {
"DB_CONN_default": "<YOUR_DB_CONN_DEFAULT>",
"DB_WRITABLE": "<YOUR_DB_WRITABLE>"
}
}
}
}Related MCP servers

Files
Sandboxed local filesystem: read, search, edit, copy, archive, and safely manage files.

Git
Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.

GitHub
GitHub via MCP: search, repos, issues, PRs, files, notifications. OAuth device flow or token.

HTTP
HTTP/REST client with saved collections, env secrets, and SSRF-safe host allowlisting.

Local-first PHI detection for source code, LLM prompts, logs, and analytics
Cross-platform FastMCP server for authenticated remote Linux/macOS host administration
