Connector guide1-minute read8 MCP toolsEN · DE · IT

Postgres を Cursor に接続する方法 — 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 + Cursor

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 — Cursor にコネクタを追加

Cursor は ~/.cursor/mcp.json から MCP サーバを読み込みます。次のエントリを追加してください:

{
  "mcpServers": {
    "anythingmcp": {
      "url": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. AnythingMCP の Profile → MCP API Keys → New KeyMCP API key を取得。
  2. ファイルを保存し Cursor を再起動。
  3. Cursor → Settings → MCP を開き、Postgres が "Connected" として表示されることを確認。
  4. チャット開始 — Postgres のすべてのツールが呼び出し可能になります。

利用可能なツール

FAQ

Cursor の Free プランでカスタム MCP サーバは使えますか? はい — Hobby/Pro/Business で利用可能です。

次のステップ

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

Ready to ship

Your Postgres agent is one click away.

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

関連ガイド