Skip to main content
Glama

MCP Postgres Server

by MadeByNando

MCP Postgres Server

Ce serveur implémente le protocole MCP (Model Context Protocol) pour Cursor, permettant d'utiliser une base de données PostgreSQL comme stockage pour les contextes de modèle.

Prérequis

  • Docker
  • Docker Compose

Installation et démarrage

  1. Clonez ce dépôt
  2. Démarrez le serveur avec Docker Compose:
docker-compose up -d

Configuration dans Cursor

  1. Ouvrez Cursor
  2. Allez dans Paramètres > MCP
  3. Ajoutez une nouvelle connexion avec les paramètres suivants:
    • Nom: MCP Postgres Server
    • Type: command
    • Commande: docker exec -i mcp-postgres-server node dist/index.js

Résolution des problèmes

Si le serveur ne démarre pas correctement:

  1. Vérifiez les logs du conteneur:
    docker logs mcp-postgres-server
  2. Pour redémarrer le serveur:
    docker-compose restart

Fonctionnalités du serveur MCP

Le serveur MCP PostgreSQL expose les outils suivants pour Cursor:

  1. postgres_query - Exécuter une requête SQL en lecture seule
  2. postgres_list_tables - Lister toutes les tables de la base de données
  3. postgres_describe_table - Obtenir le schéma d'une table spécifique

Ces outils permettent à Cursor d'explorer et d'interroger la base de données de manière sécurisée.

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A server implementing the Model Context Protocol (MCP) for Cursor that allows using a PostgreSQL database as storage for model contexts, enabling secure database exploration and querying.

  1. Prérequis
    1. Installation et démarrage
      1. Configuration dans Cursor
        1. Résolution des problèmes
          1. Fonctionnalités du serveur MCP

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.
              Last updated -
              9
              3
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              🗂️ A Model Context Protocol (MCP) server that provides integration with Turso databases for LLMs. This server implements a two-level authentication system to handle both organization-level and database-level operations, making it easy to manage and query Turso databases directly from LLMs.
              Last updated -
              8
              35
              6
              TypeScript
              MIT License
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.
              Last updated -
              882
              23
              JavaScript
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables performing PostgreSQL database operations (create, read, update, delete) on User and Post entities through MCP tools.
              Last updated -
              TypeScript

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/MadeByNando/mcp-postgres-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server