Skip to main content
Glama
136,578 servers. Updated
Browse by product
20 Best PostgreSQL MCP Servers: compared and ranked, December 2026Ranked from 1,895 matching servers on stars, growth, downloads and maintenance. Updated .

Matching MCP tools:

Matching MCP Connectors:

"A guide to PostgreSQL architecture and internals" matching MCP servers:

GET /v1/servers – MCP directory API reference
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to call tools through a security gateway that intercepts requests, enforces deterministic policy and risk checks, blocks or escalates high-risk actions for human approval, and keeps tool credentials and audit logs protected.
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides secure access to databases for AI agents, enforcing authentication, authorization, human approval, logging, and notifications to prevent dangerous actions.
    -
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to safely execute privileged commands by routing them to a human approver, who runs them outside the agent's context and returns the output to the model.
    5
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides agent certification and trust verification tools for AI agents, enabling certification checks, trust score calculations, audit ticket issuance, and emergency kill switch activation through the A-SOC trust network.
    1 npm
    1
    -
  • A
    license
    A
    quality
    B
    maintenance
    Inspect SQLite and PostgreSQL schemas, trace foreign-key relationships, profile data quality, and run bounded read-only SQL. DataPilot generates tools for individual tables and applies row limits and query timeouts.
    2
    12
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Deterministic LIFO rollback, pre-flight blast-radius gates, net-zero Stripe holds, and a 60-second outbound Slack/Email airlock proxy for AI agents across PostgreSQL, Stripe, S3, and GitHub.
    2
    16
    1
    ISC
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to query PostgreSQL databases securely with read-only defaults, PII masking, rate limiting, and human-approved, expiring mutation tokens.
    9
    1
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Enables LLMs to run read-only queries against MySQL and PostgreSQL while detecting and masking PII in columns, values, and JSON/text fields before results reach the model.
    4
    48 npm
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Turns a description of an AI or agentic system's architecture into ranked adversary techniques, coverage-ordered mitigations with assigned owners and components, compounding risks, and real-world incidents of similar shape. Also provides reference lookup and cross-mappings to ATT&CK, STRIDE, OWASP Top 10 for LLM, and NIST AI RMF, entirely offline.
    17
    218 npm
    7
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides governed, read-only PostgreSQL access for AI agents via MCP. Enforces schema/table allowlists, query limits, and audit events.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A pre-action authorization server for AI agents that classifies tool calls into 14 intent categories, scores risk 0-100, and produces deterministic allow/deny/ask decisions with full audit trail.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables LLM clients to read and modify MS-SQL, PostgreSQL, MySQL/MariaDB and SQLite databases through 38 MCP tools, with every table, view, function and procedure gated by explicit permission rules that deny by default. Ships with a desktop GUI for authoring rules, approving destructive operations and auditing what the model did.
    GPL 3.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to run PostgreSQL SQL through a controlled MCP gateway that blocks destructive commands, holds risky writes for human approval, records changed rows, and supports undoing applied writes including cascades.
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI clients to inspect schemas and run guarded, single-statement read-only SQL against SQLite, MySQL, and PostgreSQL, with enforced row limits, engine-level read-only sessions, and JSONL audit logging.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables SQL query sanitization by rewriting queries at the AST level to prevent PII/PHI exposure, acting as a proxy between AI agents and PostgreSQL databases.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides a security and context-control layer that multiplexes multiple MCP servers behind a single endpoint, scanning tool definitions and results, enforcing authorization, rate limiting, and audit logging, and dynamically retrieving tools to manage context window usage.
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables autonomous agents to run shell and subprocess commands through a guardrail that blocks destructive system mutations, path traversals, and reverse shells. It also adds prompt-injection detection, spend circuit breakers, loop detection, and privacy sanitization so agent execution stays within safe, budgeted bounds.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Zero-dependency local proxy that wraps any MCP server to redact secrets, strip hidden-Unicode prompt injection, and block writes to protected paths like ~/.ssh and .env.
    4
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a security scanner for AI agent skills and MCP servers, detecting threats like prompt injection, identity hijacking, and memory poisoning.
    30 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI coding agents to submit proposed file writes for deterministic local validation before anything lands, checking scope, architecture, symbols, duplicates, dead code, behavior, secrets, and more. When a change is held, it returns a self-correction payload so the agent can fix and resubmit.
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI assistants to run fixed, read-only PostgreSQL health checks covering locks, sessions, queries, indexes, maintenance, replication, and backups, with results explained in plain language without generating SQL or exposing credentials or customer data.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to safely query PostgreSQL by intercepting and auditing every generated SQL statement before it reaches the database, blocking destructive commands like DROP/TRUNCATE, unbounded DELETE/UPDATE statements, stacked queries, and SQL injection probes. It exposes tools for validating query safety and enforcing a strict read-only (SELECT/EXPLAIN) policy.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Screens text for PHI/PII, classifies it, redacts sensitive content, and routes it to approved model tiers based on a declarative policy, with built-in evaluation metrics.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to query CRM accounts, tickets, orders, and invoices and to issue controlled credit memos over PostgreSQL with OAuth scopes, audit logging, and human-confirmed writes.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server to scan a repository for hidden prompt injection payloads and return a REFUSE/WARN/OK verdict, allowing AI agents to gate their own trust.
    28 npm
    5
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides AI agents with read-only access to a PostgreSQL database through fixed query tools and, for authorized agents, free SELECT on a PII-free view, with per-agent API keys, scopes, hardened SQL validation, audit logging, and Prometheus metrics.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables LLM agents to run read-only SQL against PostgreSQL with safety enforced by the database itself — forced row-level security, signed tenant context, role limits, and fail-closed auditing. Queries stay confined to the rows and columns a principal may read, cannot modify or exhaust the database, and remain audited even when the SQL validator is switched off.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to query, profile, validate, and append governance data in PostgreSQL under their own least-privilege database roles. Every tool call is authenticated and enforced by database GRANTs rather than prompts.
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents to safely invoke enterprise tools such as Supabase PostgreSQL and the Notion API through a zero-trust gateway that performs server-side policy and risk evaluation, cryptographically binds approval tickets to exact parameters, and requires out-of-band human approval for destructive operations. It also scrubs credentials from logs and responses while providing audit trails, rate limiting, and a web console for reviewing pending authorizations.
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to execute on-chain transactions through policy validation, KeeperHub orchestration, and tamper-evident evidence recording.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Zero-trust PostgreSQL MCP server and wire-protocol proxy in Go for safe AI agent database access (listing tables, inspecting schemas, running read-only queries, and viewing query plans). Enforces a PostgreSQL 17 AST SQL firewall, PII side-channel blocking, dynamic PII and secret masking across 8 compliance packs, row caps, and runaway loop protection.
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    AI red teaming toolkit exposed as a Model Context Protocol (MCP) server. Connect any MCP client and test AI systems for safety vulnerabilities.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to propose, preview, and execute governed GitHub changes, pinned Kubernetes deployment operations, and non-production PostgreSQL credential rotations through human-approved, single-use permits and short-lived scoped tokens, without exposing credentials or secret values.
    -
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    MCP security gateway by J&K Advanced Technologies. One architecture, three engines — Quezar (100% local offline storage), Diamonize (in-process screening of AI tool calls), and Maxion V16 (governed throughput) — running on your own hardware, with no phone-home and no telemetry.
    1
    -
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server that validates tool calls against JSON Schema, performs deterministic repair, redacts secrets, and maintains a hash-chained audit ledger.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides policy-driven runtime authorization and security evaluation for MCP-based agents, including MCP streaming HTTP gateway, mock MCP servers, deterministic agent demos, and audited tool invocation with redacted PostgreSQL audit chains.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A zero-trust gateway for securely brokering interactions between AI models and internal tools via the Model Context Protocol, with DLP, prompt injection defense, and LLM-as-a-Judge.
    -
  • A
    license
    A
    quality
    B
    maintenance
    An MCP server implementing the PAARA F1–F7 connector governance scoring method. Exposes three MCP tools over stdio — score_connector, lookup_connector, list_connectors — backed by a published 13-connector audit dataset. Stdlib-only Python, hand-rolled JSON-RPC; server code at mcp-server/paara_mcp_server.py in the repo, documented in the root README.
    2
    3
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    This MCP server enables agents to discover roadside services, submit sandbox or permitted requests, and verify signed station decisions with pinned keys so held actions can be guarded, recovered, and replayed offline.
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    SchemaBrain is an MCP server that sits between AI agents (Claude, Cursor, Windsurf) and your SQL database as a read-only trust + intelligence layer. The agent never writes SQL — 12 tools compile it from definitions you control, PII and secret categories are refused before the query runs, and every call lands in a tamper-evident (SHA-256-chained) audit log. Postgres today.
    12
    13
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Provides a local MCP server that exposes the check_prompt_injection tool to MCP clients, letting agents scan untrusted text (web pages, documents, tool outputs, emails) for prompt injection before passing it to another LLM.
    1
    26 PyPI
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    8 standalone MCP servers for SMBs — Guardrails (prompt injection, PII, secrets detection), FinOps (AI cost tracking and budgets), Observability (agent tracing), Smart Router (17+ models, 9 providers), Trust Score (governance scoring 0-100), Memory (persistent agent memory), ThinkSecure (runtime security + SOC2/GDPR audit), and A2A Lite (agent-to-agent protocol). 37 tools total, TNC credits
    4
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Drop-in stdio interceptor that gates MCP tools/call requests through a YAML policy (block / require_approval / audit / budget cap) before they reach the real server. The same policy file is reused by @jamjet/claude-code-hook and @jamjet/openai-guardrail, so one rule set covers Claude Desktop, Cursor, OpenAI Agents, and custom clients.
    3
    2
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Local MCP decision gate for AI agents and CI/CD: check candidate actions against owner-controlled policy and proposal-bound evidence. Three read-only tools report admissible options, missing evidence, and SHA-256 receipts. No selection, execution, or DeltaX API key.
    3
    22 npm
    1
    Apache 2.0
  • A
    license
    A
    quality
    A
    maintenance
    Supply-chain gate for AI agent skills and MCP servers: poison-scan tool definitions, hash-pin the vetted set into a lock file and verify drift in CI. truecopy-mcp is a drop-in stdio proxy that filters a live server's tools/list down to its pinned, unmodified, unpoisoned tools.
    2
    63 npm
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Governed MCP gateway for AI agents: clients see only admin-approved tools, and every call is checked against your policies, recorded and signed with agent-held keys (Ed25519 + ML-DSA-65). Self-hosted; run with uvx provenza-mcp.
    1
    7
    Apache 2.0
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that protects AI agents and RAG systems from adversarial poisoning attacks like prompt injection, steganography, and data anomalies through multi-layer sanitization, entropy-based detection, and consensus verification.
    3
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI coding agents to inspect GitHub repositories and shell commands for download-and-execute payloads, obfuscation, typosquatted dependencies, autorun hooks, and fake-star signals before following or running them.
    3
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    An MCP front-end for AnB. The tool surface is "use-don't-reveal": no tool returns a plaintext secret. Reveal paths require a TTY the server doesn't have, so the no-reveal guarantee is structural, not prompt-based — it holds even against a prompt-injected agent. Runs as a dedicated, narrowly-scoped AnB identity; exec is default-deny (only allowlist rules tagged scope=mcp run); command output
    5
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Lets AI agents pause before risky or external actions (deploys, deletions, db changes, outbound sends) & request one-tap human approval on iOS or Android phone via Face ID or biometrics, resuming or halting with a recorded audit receipt. Also exposes pairing, push notification, & kill-switch tools so agents can be linked to a mobile device, report run status, and be terminated if they go rogue.
    2
    5
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A cooperative guardrail for AI agents that blocks destructive shell commands, SQL statements, or cloud operations until a human approves them out-of-band, with a tamper-evident local ledger.
    4
    AGPL 3.0