MCP server · Audited from source
Ai Agents Postgres MCP server
by vignesh-codes/ai-agents-mcp-pgMIT licenceAudited 8 Oct 2026 · source 56eb21e18732
Is it safe? Yes — SAFE, grade B (89/100). It exposes 6 tools: 0 read, 4 write and 2 destructive. The audit recorded 2 findings (0 critical, 0 high, 1 medium, 1 low). Maintainer's description: This repo is an extension of PostgreSQL MCP Server providing functionalities to create tables, insert entries, update entries, delete entries, and drop tables.
Cite
Cite this page
ModelsAtlas. “Ai Agents Postgres MCP server (vignesh-codes/ai-agents-mcp-pg)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/vignesh-codes/ai-agents-postgres
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
2 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | PASS 1 finding |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
vignesh-codesUser accountAccount type recorded when we read the repository. - PackagePublished on npm
@modelcontextprotocol/server-postgresat version 0.6.2 - LicenceMITFrom the repository, as read at the audited commit.
- Last push18 months agoActivity of the repository when we read it.
- Source commit read56eb21e18732The audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory6 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (2)
Sorted by severity
MEDIUMFilesystem / pathmcp.destructive_tools
delete_entry, delete_table
- Why
- 2 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chainsupply.unpinned · src/package.json
pg, @types/pg, shx, typescript
- Why
- 4 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
6 declared in source · 2 destructive
2 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
delete_entry | destructive | Delete rows/records from a PostgreSQL table that match specified conditions. Use this tool to remove data from your database tables. Example: Delete all inactive users or users who haven |
delete_table | destructive | Permanently delete/drop an entire table from the PostgreSQL database, including all its data. Use with caution as this operation cannot be undone. Example: Delete a temporary_logs table that is no longer needed. |
create_table | write | Create a new table in the PostgreSQL database with specified columns and data types. Use this tool to define new database tables with custom schemas. Example: Create a users table with id, name, email, and created_at columns. |
insert_entry | write | Insert a new row/record into an existing table in the PostgreSQL database. Use this tool to add data to your tables. Example: Add a new user with name |
query | write | Run a read-only SQL query against the PostgreSQL database and return the results as JSON. Use this tool to retrieve data without modifying the database. Only SELECT statements and other non-modifying operations are allowed. Example: Query all users with age greater than 18. |
update_entry | write | Update existing rows in a PostgreSQL table that match specified conditions. Use this tool to modify data that already exists in the database. Example: Update the status to |
Install
Package version 0.6.2 · audited commit 56eb21e
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.6.2. The audit covers commit 56eb21e only.
claude mcp add server-postgres -- npx -y @modelcontextprotocol/[email protected]
{
"mcpServers": {
"server-postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/[email protected]"
]
}
}
}The command pins the package version recorded in the source (0.6.2); the audit covers commit 56eb21e18732. Transport: stdio. No environment variables required.
Audit history
- ✓SAFE B 89 / 100
First audit ·
56eb21e18732
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/vignesh-codes/ai-agents-postgres/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Ai Agents Postgres MCP server
What is the Ai Agents Postgres MCP server?
What tools does Ai Agents Postgres expose?
Is Ai Agents Postgres safe to connect to an agent?
What credentials does Ai Agents Postgres need?
How does Ai Agents Postgres run?
How current is this page?
Sources
- vignesh-codes/ai-agents-mcp-pg on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit 56eb21e18732Observed · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Ai Agents Postgres MCP server?
- What tools does Ai Agents Postgres expose?
- Is Ai Agents Postgres safe to connect to an agent?