PostgreSQL (hardened, read-only)
io.github.Eszetael/postgres-mcp-hardened ยท version 0.1.10
Community listing. Not installed or verified by cosmic-mcp. Read the source and its permissions before you run it.
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
https://github.com/Eszetael/postgres-mcp-hardenedQuick facts
- Listing: Community
- Published Sep 4, 23:18 UTC
- Transport: stdio
- Package: npm
postgres-mcp-hardened0.1.10 - Listed by cosmic-mcp: Nov 9, 04:25 UTC
Details
- Repository: https://github.com/Eszetael/postgres-mcp-hardened
- npm: https://www.npmjs.com/package/postgres-mcp-hardened
- Website: https://github.com/Eszetael/postgres-mcp-hardened
- Needs settings:
DATABASE_URLMCP_STATEMENT_TIMEOUTMCP_ALLOW_TABLESMCP_AUDIT_LOG
Setup snippets
Generated from the registry entry. cosmic-mcp has not run or reviewed this server; values in angle brackets are yours to fill in.
Run it locally (npm)
npx -y '[email protected]'Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"postgres-mcp-hardened": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"DATABASE_URL": "<your database url>",
"MCP_ALLOW_TABLES": "<your mcp allow tables>",
"MCP_AUDIT_LOG": "<your mcp audit log>",
"MCP_STATEMENT_TIMEOUT": "<your mcp statement timeout>"
}
}
}
}Claude Code
claude mcp add 'postgres-mcp-hardened' -- npx -y '[email protected]'Cursor (.cursor/mcp.json)
{
"mcpServers": {
"postgres-mcp-hardened": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"DATABASE_URL": "<your database url>",
"MCP_ALLOW_TABLES": "<your mcp allow tables>",
"MCP_AUDIT_LOG": "<your mcp audit log>",
"MCP_STATEMENT_TIMEOUT": "<your mcp statement timeout>"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"postgres-mcp-hardened": {
"args": [
"-y",
"[email protected]"
],
"command": "npx",
"env": {
"DATABASE_URL": "<your database url>",
"MCP_ALLOW_TABLES": "<your mcp allow tables>",
"MCP_AUDIT_LOG": "<your mcp audit log>",
"MCP_STATEMENT_TIMEOUT": "<your mcp statement timeout>"
},
"type": "stdio"
}
}
}Related servers
- spotdb Verified domain
Ephemeral data sandbox for AI workflows with guardrails and security - Reasonbook Verified domain
Reasonbook: decisions that survive the session, in a local record AI agents keep. - AI for Database Verified domain
Ask your databases questions in plain English, run read-only SQL and set up data alerts. - AI2SQL Verified domain
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema - AICasePredict Verified domain
Search a large legal database of 325M+ US court records: cases, attorneys, judges and courts. - APC Security Reference Server
Reference MCP server for synthetic APC action-security evaluation and local SQLite sandbox testin...