インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、PostgreSQL をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
PostgreSQLデータベースを直接照会: テーブル一覧、カラム情報の確認、読み取り専用SQLの実行に対応。読み取り専用でインストール。認証情報は接続文字列ではなく暗号化して保持。
こう聞いてみよう
PostgreSQL のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → PostgreSQL をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も
git cloneもローカルサーバーも不要。
PostgreSQL
PostgreSQLデータベースを直接照会: テーブル一覧、カラム情報の確認、読み取り専用SQLの実行に対応。読み取り専用でインストール。認証情報は接続文字列ではなく暗号化して保持。
セットアップ
Setup
- Create a dedicated role for the agent and grant it only what it needs:
The last line matters: without it, tables created tomorrow are invisible.CREATE ROLE amcp_reader LOGIN PASSWORD 'change-me'; GRANT CONNECT ON DATABASE sales TO amcp_reader; GRANT USAGE ON SCHEMA public TO amcp_reader; GRANT SELECT ON ALL TABLES IN SCHEMA public TO amcp_reader; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO amcp_reader; - Set
POSTGRES_HOST,POSTGRES_PORT(5432),POSTGRES_DATABASE,POSTGRES_USERandPOSTGRES_PASSWORD.
…(continued in the in-app connector instructions)
前提条件: POSTGRES_HOST, POSTGRES_PORT, POSTGRES_DATABASE, POSTGRES_USER, POSTGRES_PASSWORD
ローカルでコネクタをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
http://localhost:3000/connectors/store を開き、 PostgreSQL を選択し、前提条件に記載された環境変数を入力します。
利用可能なツール
| Tool | What it does |
|---|---|
postgres_list_tables | List the tables and views in the database with their schema and, where the server tracks it, an approximate row count |
postgres_describe_table | Describe one table: every column with its data type, nullability and default |
postgres_find_columns | Find columns across every table whose name matches a pattern — the fast way to locate where customer e-mail addresses, IBANs or order number |
postgres_query | Run a read-only SQL statement against PostgreSQL and return up to 1000 rows |
postgres_query_examples | Show worked example queries for PostgreSQL: how to list schemas, find large tables, inspect indexes and check what is running right now |
次のステップ
このガイドは役に立ちましたか?