L'Atlas / Serveurs MCP / PostgreSQL
Serveur MCP

PostgreSQL

io.github.antonorlov/mcp-postgres-server

Serveur MCP Non testé

Faire examiner Voir les tarifs

MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.

Fiche technique

Auteur
antonorlov (espace de noms du registre)
Dépôt
github.com/antonorlov/mcp-postgres-server
Site
github.com/antonorlov/mcp-postgres-server#readme
Version
0.3.1
Transport
stdio
Authentification
Aucune (déclarée au registre)
Paquets
mcp-postgres-server 0.3.1 npm stdio
Outils
—
Catégories
Bases de données, Cloud et infrastructure
Dernière mise à jour
14 sept. 2026
Publication
14 sept. 2026

Auteur vérifié et popularité

Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la

Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.

  • Visiteurs distincts de la fiche sur 30 jours : 2 (il en faut 30) pas encore
  • ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
  • et un test réussi de moins de 14 jours : pas de test réussi pas encore

Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche

MarkdownREADME.md
[![Statut sur L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.antonorlov/mcp-postgres-server.svg)](https://latlas.dev/mcp/io.github.antonorlov/mcp-postgres-server)
HTML
<a href="https://latlas.dev/mcp/io.github.antonorlov/mcp-postgres-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.antonorlov/mcp-postgres-server.svg" alt="Statut sur L’Atlas" height="20"></a>

Badge pour votre README

Référencé sur L’Atlas

Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi. Dernier test non réussi : le badge affiche seulement « référencé ».

MarkdownREADME.md
[![Référencé sur L’Atlas](https://latlas.dev/badge/fiche/io.github.antonorlov/mcp-postgres-server.svg)](https://latlas.dev/mcp/io.github.antonorlov/mcp-postgres-server)
HTML
<a href="https://latlas.dev/mcp/io.github.antonorlov/mcp-postgres-server"><img src="https://latlas.dev/badge/fiche/io.github.antonorlov/mcp-postgres-server.svg" alt="Référencé sur L’Atlas" height="20"></a>

Nos tests

Aucune adresse distante publiée : ce serveur se lance en local, nous ne le testons pas.

Compatibilité clients

Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.

ClientTransports documentésCe serveurSource
Claude Codestdio Streamable HTTP SSEtransport acceptédoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport acceptédoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport non listédoc
Cursorstdio Streamable HTTP SSEtransport acceptédoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport acceptédoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport acceptédoc
Gemini CLIstdio Streamable HTTP SSEtransport acceptédoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport acceptédoc

Configs prêtes à copier

Lancement local du paquet mcp-postgres-server (npm). Formats repris de la documentation de chaque client.

Claude Code
claude mcp add-json mcp-postgres-server '{"command":"npx","args":["-y","[email protected]"]}'
Claude (claude.ai, Claude Desktop, Cowork)claude_desktop_config.json (macOS : ~/Library/Application Support/Claude/ ; Windows : %APPDATA%\Claude\ ; Linux : ~/.config/Claude/)
{
  "mcpServers": {
    "mcp-postgres-server": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "mcp-postgres-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "mcp-postgres-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y","[email protected]"],
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "mcp-postgres-server": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "mcp-postgres-server": {
      "command": "npx",
      "args": ["-y","[email protected]"]
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.mcp-postgres-server]
command = "npx"
args = ["-y","[email protected]"]

Variables d’environnement déclarées

NomRequiseDescription
DATABASE_URLnon (secret)Full connection string (preferred). Supports sslmode in the URL.
PG_HOSTnonDatabase host (fallback when DATABASE_URL is not set).
PG_PORTnonDatabase port.
PG_USERnonDatabase user.
PG_PASSWORDnon (secret)Database password.
PG_DATABASEnonDatabase name.
PG_ALLOW_WRITEnonWhen true, execute performs writes and reads are sent directly. Off (default) is read-only: execute refuses writes and each read runs in a READ ONLY transaction.
PG_SSLMODEnonTLS mode. require/allow/prefer encrypt without verifying the certificate; verify-ca/verify-full verify it (supply a CA via PG_SSL_CA). Unlike libpq, allow/prefer do not fall back to plaintext, so a s…
PG_SSL_CAnonPath to a CA certificate file. Setting it by itself implies verify-full.
PG_ENABLE_RUNTIME_CONNECTnonRegister the connect_db tool (runtime credential switching).
PG_MAX_RESULT_BYTESnonByte budget for a query result sent to the model. Whole rows are kept while they fit; over the budget returnedRows < rowCount and truncated is true.
PG_STATEMENT_TIMEOUTnonStatement timeout in milliseconds, applied to every session.
PG_CONNECT_TIMEOUTnonTimeout in milliseconds for a single connect attempt (raise it for slow links or SSH tunnels).
PG_SSH_HOSTnonSSH bastion host. Setting it enables tunneling: the server reaches the database only through an SSH tunnel to this host. Needs the ssh2 optional dependency.
PG_SSH_PORTnonSSH bastion port.
PG_SSH_USERnonSSH username.
PG_SSH_PRIVATE_KEYnonPath to a private key file. If unset, auth falls back like ssh: a running agent (SSH_AUTH_SOCK), then a default key (~/.ssh/id_ed25519, id_rsa, id_ecdsa).
PG_SSH_PASSPHRASEnon (secret)Passphrase for the private key, if encrypted.
PG_SSH_AGENTnontrue to use the ambient agent (SSH_AUTH_SOCK), or an explicit socket path / Windows named pipe.
PG_SSH_PASSWORDnon (secret)SSH login password. Opt-in; a key or agent takes precedence. Prefer keys, a bastion often disables password auth.
PG_SSH_FINGERPRINTnonPinned host-key fingerprint (SHA256:...). Host-key verification is mandatory and set only this way: without it the tunnel refuses to connect. Get it with ssh-keygen -lF host.
PG_SSH_KEEPALIVE_INTERVALnonSSH keepalive interval in ms; the tunnel drops after 3 unanswered keepalives, and the next call reconnects.

Citer cette source

Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.

PostgreSQL · L’Atlas

Markdown
[PostgreSQL — L’Atlas](https://latlas.dev/mcp/io.github.antonorlov/mcp-postgres-server)
Méthode et limites des tests

Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.