MCP Postgres Server

MCP Postgres Server

By MCP-Mirror GitHub

Mirror of

mcp-postgres database
Overview

what is MCP Postgres Server?

MCP Postgres Server implements the Model Context Protocol (MCP) for Cursor, allowing the use of a PostgreSQL database as storage for model contexts.

how to use MCP Postgres Server?

To use MCP Postgres Server, clone the repository and start the server using Docker Compose with the command docker-compose up -d. Then, configure it in Cursor by adding a new connection with the specified parameters.

key features of MCP Postgres Server?

  • Executes read-only SQL queries with postgres_query
  • Lists all tables in the database with postgres_list_tables
  • Retrieves the schema of a specific table with postgres_describe_table

use cases of MCP Postgres Server?

  1. Storing and managing model contexts for applications.
  2. Querying PostgreSQL databases securely through Cursor.
  3. Facilitating data exploration and management in a structured manner.

FAQ from MCP Postgres Server?

  • What are the prerequisites for using MCP Postgres Server?

You need Docker and Docker Compose installed.

  • How do I troubleshoot if the server doesn't start?

Check the container logs using docker logs mcp-postgres-server and restart the server with docker-compose restart.

Content

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.

No tools information available.
Postgres
Postgres by guoling2008

-

postgres database
View Details
Sqlite
Sqlite by sqlite

Database interaction and business intelligence capabilities

sqlite database
View Details
mcp-db-server
mcp-db-server by iotassss

-

mcp-db-server database
View Details
mcp-lancedb-server
mcp-lancedb-server by richard-gyiko

-

mcp-lancedb-server database
View Details
db-mcp
db-mcp by goru00

Database Model Context Protocol (DB-MCP) Server

db-mcp database
View Details

mysql数据库连接,改 f4ww4z/mcp-mysql-server中的连接配置支持cherry studio

mcp-mysql-server database
View Details

Mirror of

mysql database
View Details