MCP Setup Guide

How to Set Up PostgreSQL MCP with ClawdBot

Query local or remote Postgres for dashboards and reports.

Overview

Quick Start

If your provider offers a hosted MCP endpoint, use a URL-based config:

Hosted MCP Config json
{
  "postgresql": {
    "url": "https://YOUR_POSTGRESQL_MCP_ENDPOINT"
  }
}

For local or self-hosted servers, use a CLI bridge and keep secrets in environment variables:

Local CLI Config json
{
  "postgresql": {
    "command": "npx",
    "args": ["-y", "mcp-remote", "https://YOUR_POSTGRESQL_MCP_ENDPOINT"],
    "env": {
      "POSTGRESQL_API_KEY": "YOUR_POSTGRESQL_API_KEY"
    }
  }
}

Common Pitfalls

Example Prompts

Related MCPs