madebynando_mcp-postgres-server
镜像://github.com/madebynando/mcp-postgres-server
0
Github Watches
1
Github Forks
0
Github Stars
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
- Clonez ce dépôt
- Démarrez le serveur avec Docker Compose:
docker-compose up -d
Configuration dans Cursor
- Ouvrez Cursor
- Allez dans Paramètres > MCP
- 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:
-
Vérifiez les logs du conteneur:
docker logs mcp-postgres-server -
Pour redémarrer le serveur:
docker-compose restart
Fonctionnalités du serveur MCP
Le serveur MCP PostgreSQL expose les outils suivants pour Cursor:
-
postgres_query- Exécuter une requête SQL en lecture seule -
postgres_list_tables- Lister toutes les tables de la base de données -
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.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Reviews
user_rjHCxHTO
I've been using the MadeByNando_mcp-postgres-server by MCP-Mirror, and it has been a game-changer! The integration with MCP applications is seamless, and the performance is outstanding. It’s straightforward to set up and manage, making it ideal for both beginners and experienced users. Highly recommended! https://github.com/MCP-Mirror/MadeByNando_mcp-postgres-server