PostgreSQL MCP Server

Integrations

  • Required runtime environment for the MCP server, enabling the execution of database management operations through a Node.js application.

  • Provides PostgreSQL database management capabilities, including analyzing existing PostgreSQL setups, implementation guidance, debugging database issues, managing schemas, migrating data, and monitoring database performance.

PostgreSQL MCP サーバー

PostgreSQLデータベースへの直接クエリ実行機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。このサーバーは、パラメータ化されたクエリと設定可能なタイムアウトをサポートし、PostgreSQLデータベースに対するカスタムSQLクエリ実行を可能にします。このプロジェクトは、Cursor IDEで使用するために特別に設計されています。

前提条件

  • Node.js >= 18.0.0
  • PostgreSQL サーバー (ターゲット データベース操作用)
  • 対象のPostgreSQLインスタンスへのネットワークアクセス

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の PostgreSQL データベース クエリ サーバーを自動的にインストールするには:

npx -y @smithery/cli install @1Levick3/postgresql-mcp-server --client claude

手動インストール

  1. リポジトリをクローンする
  2. 依存関係をインストールします:
    npm install
  3. サーバーを構築します。
    npm run build
  4. MCP 設定ファイルに追加:
    { "mcpServers": { "postgresql-mcp": { "command": "node", "args": ["/Users/1Levick3/Desktop/postgresql-mcp-server/build/index.js"], "disabled": false, "alwaysAllow": [], "env": { "POSTGRES_CONNECTION_STRING": "postgresUrl", "POSTGRES_SSL_CERT_PATH": "/Users/1levick3/Desktop/root.crt" } } } }

発達

  • npm run dev - ホットリロードで開発サーバーを起動する
  • npm run lint - ESLint を実行する
  • npm test - テストを実行する

セキュリティに関する考慮事項

  1. 接続セキュリティ
    • 接続プールを使用する
    • 接続タイムアウトを実装する
    • 接続文字列を検証する
    • SSL/TLS接続をサポート

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを作成する
-
security - not tested
A
license - permissive license
-
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.

セットアップの分析、問題のデバッグ、スキーマの管理、データの移行、パフォーマンスの監視のために PostgreSQL データベースとの対話を可能にするモデル コンテキスト プロトコル サーバー。

  1. 前提条件
    1. インストール
      1. Smithery経由でインストール
      2. 手動インストール
    2. 発達
      1. セキュリティに関する考慮事項
        1. 貢献

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server providing both read and write access to PostgreSQL databases, enabling LLMs to query data, modify records, and manage database schemas.
            Last updated -
            4
            JavaScript
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables powerful PostgreSQL database management capabilities including analysis, schema management, data migration, and monitoring through natural language interactions.
            Last updated -
            6
            19
            TypeScript
            AGPL 3.0
            • Linux
            • Apple
          • -
            security
            -
            license
            -
            quality
            A Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.
            Last updated -
            Python
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides tools for interacting with databases, including PostgreSQL, DuckDB, and Google Cloud Storage Parquet files.
            Last updated -
            2
            TypeScript
            • Linux
            • Apple

          View all related MCP servers

          ID: kok5ghbt5a