MCP Postgres サーバー
このサーバーは、Cursor 用のモデル コンテキスト プロトコル (MCP) を実装し、PostgreSQL データベースをモデル コンテキストのストレージとして使用できるようにします。
前提条件
ドッカー
Dockerコンポーズ
インストールと起動
このリポジトリをクローンする
Docker Compose を使用してサーバーを起動します。
カーソル内の設定
オープンカーソル
設定 > MCP へ移動
次の設定で新しい接続を追加します。
名前: MCP Postgres サーバー
タイプ: コマンド
コマンド:
docker exec -i mcp-postgres-server node dist/index.js
トラブルシューティング
サーバーが正しく起動しない場合は、次の手順に従ってください。
コンテナのログを確認します。
サーバーを再起動するには:
MCP サーバーの機能
MCP PostgreSQL サーバーは、Cursor 用の次のツールを公開します。
postgres_query
- 読み取り専用のSQLクエリを実行するpostgres_list_tables
- データベース内のすべてのテーブルを一覧表示するpostgres_describe_table
- 特定のテーブルのスキーマを取得する
これらのツールにより、Cursor はデータベースを安全に探索およびクエリできます。
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.
Tools
Cursor 用のモデル コンテキスト プロトコル (MCP) を実装したサーバー。これにより、PostgreSQL データベースをモデル コンテキストのストレージとして使用し、安全なデータベースの探索とクエリが可能になります。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.Last updated -95MIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.Last updated -37570MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.Last updated -26MIT License
- -securityAlicense-qualityA 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 -31MIT License