Connector guide1-minute read8 MCP toolsEN · DE · IT

Postgres を Claude に接続する方法 — MCP 経由

Direct Postgres connection over libpq — execute SELECT/EXPLAIN queries, list schemas/tables/indexes, sample rows, fetch column stats. Read-only role recommended for AI use.

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Postgres

MCP connector

Postgres

Direct Postgres connection over libpq — execute SELECT/EXPLAIN queries, list schemas/tables/indexes, sample rows, fetch column stats. Read-only role recommended for AI use.

Tools

8

Region

SELF-HOST

Category

Data & Analytics

Authentication

Basic Auth

Required env vars

POSTGRES_URL
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Postgres in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Direct Postgres connection over libpq — execute SELECT/EXPLAIN queries, list schemas/tables/indexes, sample rows, fetch column stats. Read-only role recommended for AI use.

こう聞いてみよう

Postgres のサンプルプロンプト

プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。

Postgres · MCP 経由でライブ
共有
Opus 4.7

Claude は AI のため誤ることがあります。回答をご確認ください。

💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Postgres をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も git clone もローカルサーバーも不要。

Postgres + Claude

Direct Postgres connection over libpq — execute SELECT/EXPLAIN queries, list schemas/tables/indexes, sample rows, fetch column stats. Read-only role recommended for AI use.

前提条件

完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:

POSTGRES_URL

ステップ 1 — 認証情報を取得

ステップ 2 — アダプターをインストール

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

ステップ 3 — Claude にコネクタを追加

推奨ルート — 設定ファイルを触らずに claude.ai web で動作します。

  1. claude.ai/customize/connectors を開きます。
  2. "Add custom connector" をクリック。
  3. 入力:
    • Name: Postgres
    • URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → MCP API キーを貼り付け (AnythingMCP → Profile → MCP API Keys → New Key)
  4. Connect をクリックして認可。

下記のすべてのツールがチャットに表示されます — プロンプトを入力し始めてください。

利用可能なツール

FAQ

Claude Code は Claude Desktop と同じように動作しますか? はい — 両方を https://cloud.anythingmcp.com/mcp に向けてください。

次のステップ

このガイドは役に立ちましたか?

Ready to ship

Your Postgres agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

関連ガイド