Skip to main content
Glama

MCP Postgres Server

by MadeByNando

MCP Postgres サーバー

このサーバーは、Cursor 用のモデル コンテキスト プロトコル (MCP) を実装し、PostgreSQL データベースをモデル コンテキストのストレージとして使用できるようにします。

前提条件

  • ドッカー
  • Dockerコンポーズ

インストールと起動

  1. このリポジトリをクローンする
  2. Docker Compose を使用してサーバーを起動します。
docker-compose up -d

カーソル内の設定

  1. オープンカーソル
  2. 設定 > MCP へ移動
  3. 次の設定で新しい接続を追加します。
    • 名前: MCP Postgres サーバー
    • タイプ: コマンド
    • コマンド: docker exec -i mcp-postgres-server node dist/index.js

トラブルシューティング

サーバーが正しく起動しない場合は、次の手順に従ってください。

  1. コンテナのログを確認します。
    docker logs mcp-postgres-server
  2. サーバーを再起動するには:
    docker-compose restart

MCP サーバーの機能

MCP PostgreSQL サーバーは、Cursor 用の次のツールを公開します。

  1. postgres_query - 読み取り専用のSQLクエリを実行する
  2. postgres_list_tables - データベース内のすべてのテーブルを一覧表示する
  3. postgres_describe_table - 特定のテーブルのスキーマを取得する

これらのツールにより、Cursor はデータベースを安全に探索およびクエリできます。

-
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.

Cursor 用のモデル コンテキスト プロトコル (MCP) を実装したサーバー。これにより、PostgreSQL データベースをモデル コンテキストのストレージとして使用し、安全なデータベースの探索とクエリが可能になります。

  1. 前提条件
    1. インストールと起動
      1. カーソル内の設定
        1. トラブルシューティング
          1. 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