Servidor MCP

Postgres

MCP

SQL against the database you point at.

Official Postgres reference server. Queries go to the URL you set. Writes are yours to allow.

latest·MIT·Updated this quarter·github.com/modelcontextprotocol/servers·Transporte: stdio

Claude CodeCursorVS CodeDesktop
Verificado

claude_desktop_config.json

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres"
      ],
      "env": {
        "DATABASE_URL": "postgres://…"
      }
    }
  }
}

Por Model Context Protocol

Especificação

O que o servidor realmente oferece.

  • query

    leitura

    Run SQL and return rows.

Limites de segurança

  • URL is yours
  • Prefer a read-only role
  • No implicit migrations

mcp-postgres.mcp/tools

Ferramentas

  • query

    Run SQL and return rows.

    leitura

Última chamada

{ "ok": true,
  "tool": "query",
  "rows": 12 }

Outros servidores que valem a instalação

Discussão

Nenhum comentário ainda. Seja o primeiro leitor a contar como foi.