
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@infoinlet/mcp-postgres-nl-query
Advanced tools
RLS/tenant-aware Postgres access for AI agents — list/describe schema, run read-only SQL, and NL→SQL with safety rails. MCP server.
RLS/tenant-aware Postgres access for AI agents, as an MCP server. Five tools:
list_tables, describe_table, query_sql, query_nl (NL→SQL via OpenRouter), explain_query.
Design doc: ../../docs/06-POSTGRES-NL-QUERY-MCP.md.
PG_WRITE_ALLOWED=false): query_sql rejects anything that isn't a single SELECT/WITH/EXPLAIN (static guard in sql-guard.ts), and runs it inside a BEGIN READ ONLY transaction.LIMIT (PG_MAX_ROWS) and a statement_timeout (PG_STATEMENT_TIMEOUT_MS).PG_TENANT_COLUMN/PG_TENANT_VALUE and NL→SQL is instructed to filter every tenant-scoped table (RLS still backs it).PG_NL_REQUIRE_APPROVAL=true makes query_nl return the generated SQL without executing — the agent (or a human) then runs it via query_sql.cp .env.example .env # set PG_URL (+ OPENROUTER_API_KEY for query_nl)
npm install
npm run build
node dist/server.js # stdio MCP server
MCP client config (e.g. Claude Desktop / Code):
{
"mcpServers": {
"postgres-nl-query": {
"command": "node",
"args": ["/opt/postgres-nl-query/dist/server.js"],
"env": { "PG_URL": "postgres://agent_readonly:...@host:5432/appdb", "OPENROUTER_API_KEY": "sk-or-..." }
}
}
}
Generic Postgres MCP servers exist; this one is multi-tenant aware (per-tenant filtering), read-only-by-default with a real static guard + READ ONLY tx, and supports an approval gate for NL→SQL — the things enterprises need before letting an agent near production data.
FAQs
RLS/tenant-aware Postgres access for AI agents — list/describe schema, run read-only SQL, and NL→SQL with safety rails. MCP server.
We found that @infoinlet/mcp-postgres-nl-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.