postgres-mcp-server

postgres-mcp-server

A read-only MCP server for querying PostgreSQL databases. It exposes a tool that runs SELECT queries and returns results to the agent.

Category
Visit Server

README

postgres-mcp-server

Servidor MCP (Model Context Protocol) para consultar bases PostgreSQL en modo solo lectura. Expone una tool que ejecuta consultas SELECT y las devuelve al agente.

Origen y por qué existe este repo. Es una copia del componente original @modelcontextprotocol/server-postgres de Anthropic, publicado bajo licencia MIT. Ese paquete fue deprecado por sus autores ("no longer supported"). Como lo usamos en la POC, lo conservamos acá para no depender de que siga publicado en npm y tener el código bajo nuestro control. Se mantiene la licencia y la atribución originales (ver LICENSE).

Requisitos

  • Node.js >= 18
  • Una base PostgreSQL accesible

Instalación

git clone https://github.com/negrip/postgres-mcp-server.git
cd postgres-mcp-server
npm install

npm install baja las dependencias (pg y @modelcontextprotocol/sdk), que no están deprecadas y siguen mantenidas.

Uso

Se ejecuta con node, pasando el connection string de PostgreSQL como argumento:

node dist/index.js "postgresql://usuario:password@host:5432/basededatos"

Integración con el proxy GEAI (GLOB.AI OS)

En el archivo de configuración de MCP servers del proxy:

{
  "mcpServers": {
    "PostgresReportes": {
      "command": "node",
      "args": [
        "C:/ruta/a/postgres-mcp-server/dist/index.js",
        "postgresql://usuario:password@localhost:5432/basededatos"
      ]
    }
  }
}

La tool queda registrada como PostgresReportes__query (nombre del server + __query).

Nota de mantenimiento

Este componente ya no recibe actualizaciones de su autor original. Funciona para uso de solo lectura acotado. Si a futuro se necesita un conector PostgreSQL MCP con mantenimiento activo, evaluar alternativas mantenidas por la comunidad o vendors.

Licencia

MIT — ver LICENSE. Se conserva la licencia y el copyright del proyecto original de Anthropic, PBC.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured