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>"
}
}
}
}{
"mcpServers": {
"sql": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/sql"
],
"env": {
"DB_CONN_default": "<YOUR_DB_CONN_DEFAULT>",
"DB_WRITABLE": "<YOUR_DB_WRITABLE>"
}
}
}
}{
"mcpServers": {
"sql": {
"command": "npx",
"args": [
"-y",
"@abhishekmcp/sql"
],
"env": {
"DB_CONN_default": "<YOUR_DB_CONN_DEFAULT>",
"DB_WRITABLE": "<YOUR_DB_WRITABLE>"
}
}
}
}{
"servers": {
"sql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@abhishekmcp/sql"
],
"env": {
"DB_CONN_default": "<YOUR_DB_CONN_DEFAULT>",
"DB_WRITABLE": "<YOUR_DB_WRITABLE>"
}
}
}
}claude mcp add sql --env DB_CONN_default=<YOUR_DB_CONN_DEFAULT> --env DB_WRITABLE=<YOUR_DB_WRITABLE> -- npx -y @abhishekmcp/sqlRelated 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.
Notes
Local markdown notes: ranked + semantic search, tags, todos, and a wiki-link knowledge graph.