Skip to content
⠀⠶⠀Nodes

Explore

LearnMapResourcesStacks

Updates

Changelog
⠀⠶⠀NodesResources
← Resources

MCP Postgres server

Read-only SQL access for agents to query schemas and run safe, scoped database operations.

Visit site (opens in new tab)
MCPmcpstableReviewed 2026-05-19

Hosting

LocalSelf-hosted

Setup snippet

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost/db"]
    }
  }
}

Explained in Learn

  • What is an AI Agent?

Pairs well with

  • Supabase
  • Model Context Protocol

Tags

databasesqlreadonly