Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

tusk

by volveezzversion 0.4.0i★ 0iRuns on your computerRepository ↗

How to install

What it does

Postgres for agents: named local/stage/prod targets, READ ONLY reads, opt-in writes, SSH tunnels

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Databases & datasets

Use together with

Skills that teach the AI this kind of work; they work alongside this one

last30days-skill

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

by mvanhorn★ 75,1131 skills

Skill · How-to guide

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6991 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6311 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install tusk. Follow https://mcp.popnx.com/i/volveezz-tusk-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 25, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server tusk for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "tusk": { "command": "npx", "args": [ "-y", "tusk-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the tusk tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "tusk": {
          "command": "npx",
          "args": [
            "-y",
            "tusk-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use tusk and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using tusk or shows a tusk tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect tusk yet

tusk runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect tusk

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Databases & datasets that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server tusk for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user tusk -- npx -y tusk-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the tusk tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user tusk -- npx -y tusk-mcp
  4. Type /mcp in Claude Code

    You should see tusk listed as connected

  5. Try it

    Use tusk and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using tusk or shows a tusk tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server tusk for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "tusk": { "command": "npx", "args": [ "-y", "tusk-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the tusk tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use tusk and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using tusk or shows a tusk tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server tusk for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "tusk": { "type": "stdio", "command": "npx", "args": [ "-y", "tusk-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the tusk tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use tusk and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using tusk or shows a tusk tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use tusk💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user tusk -- npx -y tusk-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "tusk": {
      "command": "npx",
      "args": [
        "-y",
        "tusk-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "tusk": {
      "command": "npx",
      "args": [
        "-y",
        "tusk-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "tusk": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tusk-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
io.github.volveezz/tusk-mcp
Downloads per weeki
15/wk
Connection
Runs on your computer
Latest versioni
0.4.0
Published to registryi
Nov 25, 2026
Code last changedi
Nov 25, 2026
Maker
volveezz
Packages
npm: tusk-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account volveezz, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for tusk-mcp@0.4.0

Checks only this package version, not every dependency · checked Nov 25, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/volveezz-tusk-mcp.svg)](https://mcp.popnx.com/en/servers/volveezz-tusk-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Databases & datasetsi

  • More stars than 0% of the other 1316 servers in this category
  • Published to the registry more recently than 95% of the other 1316 servers in this category
  • Basic checks equal to or better than 99% of the other 1316 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is tusk safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (0.4.0) reached the registry yesterday.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Supabase, Neon, DBCode, Keboola MCP, WaveHouse Cloud

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Supabase

Supabase’s official server lets AI create tables, query data and review project settings in your Supabase database.

by supabaseWidely used↓ 245.5K/wk★ 3K Stars for the whole repoUpdated 6 days ago

Connect now (has URL) · sign-in✓ service owner · supabase.com

Neon

Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

by neondatabaseGrowing★ 667Updated 20 days ago

Connect now (has URL) · sign-in✓ service owner · neon.com

DBCode

Query and explore 100+ databases through your DBCode connections.

by dbcodeioEarly↓ 118/wk★ 369 Stars for the whole repoUpdated 2 months ago

Runs on your computer✓ service owner · dbcode.io

Keboola MCP

Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...

by keboolaGrowing↓ 1.4K/wk★ 84Updated 7 days ago

Connect now (has URL) · sign-in✓ service owner · keboola.com

WaveHouse Cloud

Browse, query, and administer your managed WaveHouse + ClickHouse projects (schema, pipes, policy).

by Wave-RFEarly★ 41Updated 5 days ago

Connect now (has URL) · sign-in✓ service owner · wavehouse.cloud
Compared with similar ones
This one
tusk
SupabaseNeonDBCodeKeboola MCPWaveHouse Cloud
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to install
Needs a keyNoYesNoNoNoNo
Add with + in ClaudeNoYesYesNoNoNo
Basic checks3/35/55/52/35/54/4
LicenseMITApache-2.0MITNOASSERTIONMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

tusk-mcp

Postgres MCP server that gives an agent your local, stage and prod databases as named targets. Every query runs inside a READ ONLY transaction, so Postgres refuses a write the SQL check misses. Writes stay off until a target sets access: "write" in the config file. Databases behind a bastion connect through the built-in SSH tunnel or any proxy command: ssh, docker exec, kubectl exec. compare-schemas diffs a schema between any two targets.

Install

npx tusk-mcp --host db.example.com --database mydb

or clone + run

bun install bun run src/index.ts --host localhost --database mydb

Setup UI

Opens a browser form that tests the connection and writes the config for Claude Desktop, Claude Code, Cursor, Windsurf or OpenAI Codex.

npx tusk-mcp setup

Build standalone binary

bun run build                            # host platform, dist/tusk-mcp

bun run build --target=bun-windows-x64 # cross-compile: bun-linux-arm64, bun-darwin-arm64, ...

Connection

Flags
tusk-mcp --host db.example.com --port 5432 --user admin --password 'p@ss' --database mydb
Connection string
tusk-mcp --connection-string "postgres://admin:p%40ss@db.example.com:5432/mydb"

Unencoded special characters in passwords (@, #) are handled automatically.

Environment variables
PGHOST=db.example.com PGDATABASE=mydb tusk-mcp

Priority: flags > --connection-string > DATABASE_URL > PG* env vars

Multiple environments / databases

A config file defines named targets: environments (local/stage/prod) or entirely different databases within one app. tusk.config.jsonc or tusk.config.json in the working directory is picked up automatically when no connection flags are given; --config (relative or absolute) loads an explicit file. Connection flags cannot be combined with a config file.

{

"defaultTarget": "local", // used when a tool call omits target "defaults": { // merged under every target "user": "app", "database": "myapp" }, "targets": { "local": { "host": "localhost", "access": "write", "description": "dev" }, "stage": { "host": "stage.db.internal", "password": "${STAGE_DB_PASSWORD}", // env var interpolation "ssl": true }, "prod": { "connectionString": "postgres://ro:${PROD_DB_PASSWORD}@10.0.0.5:5432/myapp", "ssh": { "host": "bastion.example.com", "user": "deploy", "key": "~/.ssh/id_rsa" }, "access": "structure", // schema visible, queries disabled "description": "production" }, "analytics": { "host": "warehouse.db", "database": "events" } } }

Target fields mirror the CLI flags: host, port, user, password, passwordFile, passwordCmd, database, connectionString, ssl (true or {ca, cert, key} paths), ssh ({host, port, user, key, password}), proxyCommand, access, description. structureOnly: true is still read as access: "structure"; setting both to different levels is a config error.

Priority: explicit fields > connectionString > defaults. ssh/ssl objects deep-merge, so defaults.ssh can hold the shared bastion and a target override just the port. ${VAR} interpolates from the environment in any string, so the file is safe to commit. Config-file targets ignore PG* env vars; use ${PGPASSWORD} explicitly if wanted.

With multiple targets every tool takes a target enum parameter (optional when defaultTarget is set, absent entirely with a single target), the target list is announced via MCP instructions, and compare-schemas becomes available. Connections are lazy per target: an unreachable bastion never blocks startup or the other targets.

Password security

# From file (Docker/K8s secrets)

tusk-mcp --host db --database mydb --password-file /run/secrets/db_pass

From command (any secrets manager)

tusk-mcp --host db --database mydb --password-cmd 'vault kv get -field=password secret/db' tusk-mcp --host db --database mydb --password-cmd 'op read op://vault/db/password'

SSL

Providing any certificate file automatically enables SSL.

tusk-mcp --host db --database mydb --ssl-ca /path/to/ca.crt       # CA verification

tusk-mcp --host db --database mydb \ # mutual TLS --ssl-ca ca.crt --ssl-cert client.crt --ssl-key client.key

SSH tunnel

tusk-mcp --host db-internal --database mydb \

--ssh-host bastion.example.com --ssh-user deploy --ssh-key ~/.ssh/id_rsa

Proxy command

For databases behind something the built-in tunnel cannot express, a command's stdio can carry the connection, the way OpenSSH's ProxyCommand does. tusk listens on a loopback port and spawns one child per connection.

# your own ssh config, agent, and jump hosts, rather than tusk's ssh2 client

tusk-mcp --database mydb --proxy-command 'ssh bastion nc db.internal 5432'

a database published nowhere, reachable only inside a container network

tusk-mcp --database mydb --proxy-command \ 'ssh swarm-node sudo docker run --rm -i --network app_net alpine/socat - TCP:postgres:5432'

kubernetes, or anything else that speaks stdio

tusk-mcp --database mydb --proxy-command 'kubectl exec -i deploy/pg -- socat - TCP:localhost:5432'

In a config file it is the proxyCommand field. It and ssh both describe the hop to the database, so a target sets one; a target setting either replaces the other inherited from defaults. host and port are rejected alongside it, since the command reaches the database itself, while a connectionString on such a target still supplies user, password, and database.

The command is spawned once when the target connects, and a command that exits during that probe fails the tool call with its own stderr (target "prod": proxyCommand exited 255: ssh: Could not resolve hostname ...). After that it runs per connection, in its own process group so a piped command is killed whole. Three consecutive hops that carry no data stop the tunnel accepting for 30 seconds, since postgres.js reconnects without backoff.

Access levels

Each target has one access level, read by default.

accessToolsConnection
structureoverview, describe-tablesread-only transactions
readplus execute-queryread-only transactions
writeplus execute-writewrites allowed, through execute-write only
tusk-mcp --host db --database mydb --structure-only   # every target: structure

tusk-mcp --host db --database mydb --allow-writes # every target: write

The two flags are mutually exclusive. --structure-only also narrows a config file, but --allow-writes is rejected alongside one: escalating a target to writes has to be written in the file, where it is reviewable, rather than in an MCP client's command line.

execute-query cannot mutate on any target, write-enabled ones included: every query runs inside a READ ONLY transaction, so a SELECT that hides an INSERT behind a volatile function is refused by the server, not just by the SQL parser. read and structure connections additionally start with default_transaction_read_only. Writes therefore only ever happen through execute-write, which is registered only when some target allows them and whose target parameter lists write-enabled targets only.

execute-write takes one statement per call, reports the affected row count, and previews RETURNING rows. Beyond the target gate it does not filter SQL: on a write target the database role is the boundary, so give that role only the privileges the agent should have.

Tools

ToolDescription
overviewAll schemas with tables, views, and estimated row counts in one call (partitions filtered out)
describe-tablesColumns, types, PKs, FKs, and enum values for one or more tables per call
execute-queryRead-only SQL with limit (rejected on structure-only targets)
execute-writeOne mutating statement with affected rows and RETURNING preview (write-enabled targets only)
compare-schemasStructural diff of a schema between two targets (multi-target only)

Output format

Tool results use compact text in content for the AI model and JSON-safe preview data in structuredContent for clients that support structured MCP output. Query text uses a tab-delimited preview with null=\N; strings are JSON-quoted, so empty strings render as "" and the literal string "\\N" is distinct from SQL null. With multiple targets, results start with a target= line.

MCP config

{

"mcpServers": { "tusk": { "command": "npx", "args": ["-y", "tusk-mcp", "--host", "localhost", "--database", "mydb"] } } }

Claude Code
claude mcp add --transport stdio tusk -- npx -y tusk-mcp --host localhost --database mydb
OpenAI Codex (~/.codex/config.toml)
[mcp_servers.tusk]

command = "npx" args = ["-y", "tusk-mcp", "--host", "localhost", "--database", "mydb"]

All flags

FlagTypeDefaultDescription
--configstring-Multi-target config file (see above)
--hoststringlocalhostPostgreSQL host
--portnumber5432PostgreSQL port
--userstring-Database user
--passwordstring-Database password
--password-filestring-Read password from file
--password-cmdstring-Run command for password
--databasestring-Database name
--connection-stringstring-Full connection URL
--sslbooleanfalseEnable SSL without certificate verification
--ssl-castring-CA certificate path (enables SSL)
--ssl-certstring-Client certificate path (enables SSL)
--ssl-keystring-Client key path (enables SSL)
--ssh-hoststring-SSH tunnel host
--ssh-portnumber22SSH tunnel port
--ssh-userstring-SSH username
--ssh-keystring-SSH private key path
--ssh-passwordstring-SSH password
--proxy-commandstring-Shell command whose stdio carries the connection
--structure-onlybooleanfalseSchema only, no execute-query
--allow-writesbooleanfalseAdd execute-write (no config file)