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 はデータベースを安全に探索およびクエリできます。

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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
              5
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.
              Last updated -
              3
              131
              65
              JavaScript
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.
              Last updated -
              26
              JavaScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A template project for building custom MCP servers that enables direct access to PostgreSQL databases, allowing SQL query execution and schema information retrieval through the Model Context Protocol.
              Last updated -
              30
              Python
              MIT License
              • Apple
              • Linux

            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