@microsoft/postgres-mcp
Microsoft's MCP server that connects a coding agent to any PostgreSQL database, whether local, on-premises or hosted on Azure, AWS or Google Cloud.
Resumo
Microsoft's MCP server that connects a coding agent to any PostgreSQL database, whether local, on-premises or hosted on Azure, AWS or Google Cloud. Connection profiles are saved once from the command line, with passwords kept in the operating system keyring rather than in client configuration, and Microsoft Entra ID is used for Azure databases. The agent can run read-only queries, run statements that change data or schema, fetch create scripts for tables and other objects, load a CSV file with COPY, and collect performance metrics. Profiles allow writes unless set to read-only. It runs locally over stdio through npx, needs Node.js 22 and is marked as a preview.
O que faz
- Save PostgreSQL connection profiles with keyring passwords
- Run read-only SQL queries
- Run DDL and DML statements when the profile allows writes
- Fetch create scripts for tables, indexes and functions
- Bulk-load a CSV file with COPY
- Collect server performance metrics
Sobre
- Publicador
- Microsoft
- Ferramenta
- PostgreSQL
Instalação
- Execute este comando para adicionar ao Qualquer cliente:
npx -y @microsoft/postgres-mcp connection add local "postgresql://postgres@localhost:5432/postgres"
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Servidor MCP | |
| Ferramenta | PostgreSQL | |
| Publicador | Microsoft | fonte |
| Status oficial | Comunidade (não publicado pelo fornecedor da ferramenta) | fonte |
| Status | Preview | fonte |
| Conexão | Local (roda no seu computador) | fonte |
| Pode alterar dados | Sim | fonte |
| Exige chave de API ou login | Sim | fonte |
| Plataformas | Linux, macOS, Windows | fonte |
| Clientes de IA | Claude Code, Claude Desktop, Cursor, Visual Studio Code, Codex | fonte |
| Licença | Proprietária | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 5 de nov. de 2026Versão 0.3.081 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site npm: @microsoft/postgres-mcp |
Fontes
- README (README.md)github.com/microsoft/postgres-mcp · Comprova: Clientes de IA, Pode alterar dados, Conexão, Licença, Exige chave de API ou login, Plataformas, Status12 de nov. de 2026
- Repositório no GitHubgithub.com/microsoft/postgres-mcp · Comprova: Status oficial, Publicador, Atividade, Licença10 de nov. de 2026
- Registro do pacote no npmnpmjs.com/package/@microsoft/postgres-mcp14 de nov. de 2026