導入と接続
第三者のコードです。実行前に内容を確認してください。HPSILab はこの手順を審査しましたが、このサーバーを運営していません。
クライアント別のインストール
claude mcp add postgres-mcp-pro -- uvx postgres-mcp
追加の引数や環境変数(キー、パスなど)が必要なサーバーもあります。下の公式ガイドをご確認ください。
この掲載のエンドポイントとパッケージから、各クライアントの公式ドキュメントの形式で HPSILab が生成しました。引数・キー・バージョンは公式ガイドに従ってください。
公式ガイド
# From the official README: https://github.com/crystaldba/postgres-mcp
pipx install postgres-mcp
# Or with Docker
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "DATABASE_URI", "crystaldba/postgres-mcp", "--access-mode=unrestricted"],
"env": { "DATABASE_URI": "postgresql://username:password@localhost:5432/dbname" }
}
}
}
# The README also documents a restricted (read-only) access mode.リンク
「データ・データベース」の他の MCP サーバー
- Airtable MCP Server
Read and write Airtable bases, tables and records, and inspect their schemas, from an AI client.
- Confluent MCP Server
Manage Confluent Cloud Kafka topics, connectors and Flink SQL for streaming data in natural language.
- InfluxDB 3 MCP Server
Query and write time-series data in InfluxDB 3 — a fit for market ticks, metrics and sensor data.
- Couchbase MCP Server
Query and manage data in Couchbase clusters with SQL++ from an AI client.
- Neo4j MCP Servers
Neo4j's servers for running Cypher queries, inspecting graph schemas and storing agent memory in a graph.
- Upstash MCP Server
Manage Upstash Redis databases in natural language: create databases, run commands and inspect usage.