💼 Neon Automation
NeonのサーバーレスPostgresデータベースの運用を
📺 まず動画で見る(YouTube)
▶ 【自動化】AIガチ勢の最新活用術6選がこれ1本で丸分かり!【ClaudeCode・AIエージェント・AI経営・Skills・MCP】 ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Automate Neon serverless Postgres operations -- manage projects, branches, databases, roles, and connection URIs via the Composio MCP integration.
🇯🇵 日本人クリエイター向け解説
NeonのサーバーレスPostgresデータベースの運用を
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o neon-automation.zip https://jpskill.com/download/1856.zip && unzip -o neon-automation.zip && rm neon-automation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/1856.zip -OutFile "$d\neon-automation.zip"; Expand-Archive "$d\neon-automation.zip" -DestinationPath $d -Force; ri "$d\neon-automation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
neon-automation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
neon-automationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Neon Automation で、私のビジネスを分析して改善案を3つ提案して
- › Neon Automation を使って、来週の会議用の資料を作って
- › Neon Automation で、現状の課題を整理してアクションプランに落として
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Neon Automation
NeonサーバーレスPostgresワークフローを自動化します。プロジェクトとブランチのリスト表示、データベースの検査、接続URIの取得、ロールの管理、およびNeonデータベース操作のクロスアプリケーションパイプラインへの統合が可能です。
ツールキットのドキュメント: composio.dev/toolkits/neon
セットアップ
- Composio MCPサーバーをクライアントに追加します:
https://rube.app/mcp - プロンプトが表示されたらNeonアカウントを接続します(APIキー認証)
- 以下のワークフローの使用を開始します
コアワークフロー
1. プロジェクトのリスト表示
認証されたユーザーに関連付けられているすべてのプロジェクトを検出するには、NEON_RETRIEVE_PROJECTS_LISTを使用します。
Tool: NEON_RETRIEVE_PROJECTS_LIST
Inputs:
- org_id: string (REQUIRED when using a personal API key)
- limit: integer (1-400, default 10)
- cursor: string (pagination cursor from previous response)
- search: string (search by project name or ID, supports partial match)
- timeout: integer (milliseconds; returns partial results on timeout)
重要: 個人APIキーを使用する場合、org_idは必須です。まずNEON_GET_USER_ORGANIZATIONSを介して取得してください。
2. プロジェクト詳細の取得
プロジェクトの設定、所有者情報、および消費メトリクスを検査するには、NEON_ACCESS_PROJECT_DETAILS_BY_IDを使用します。
Tool: NEON_ACCESS_PROJECT_DETAILS_BY_ID
Inputs:
- project_id: string (required) -- format: "adjective-noun-number", e.g., "dry-smoke-26258271"
3. プロジェクトのブランチをリスト表示
プロジェクト内のブランチ(開発ステージ)を列挙するには、NEON_GET_BRANCHES_FOR_PROJECTを使用します。
Tool: NEON_GET_BRANCHES_FOR_PROJECT
Inputs:
- project_id: string (required)
- search: string (optional, search by branch name or ID)
4. ブランチ上のデータベースをリスト表示
特定のプロジェクトとブランチ内のデータベースをインベントリするには、NEON_FETCH_DATABASE_FOR_BRANCHを使用します。
Tool: NEON_FETCH_DATABASE_FOR_BRANCH
Inputs:
- project_id: string (required)
- branch_id: string (required)
5. 接続URIの取得
プロジェクト/ブランチ/データベースのPostgres接続文字列を取得するには、NEON_GET_PROJECT_CONNECTION_URIを使用します。
Tool: NEON_GET_PROJECT_CONNECTION_URI
Inputs:
- project_id: string (required)
- database_name: string (required) -- e.g., "neondb"
- role_name: string (required) -- e.g., "neondb_owner"
- branch_id: string (optional, defaults to project default branch)
- endpoint_id: string (optional, defaults to read-write endpoint)
- pooled: boolean (optional, adds -pooler for connection pooling)
セキュリティ: 返されるURIには認証情報が含まれています。秘密として扱い、ログに記録したり共有したりしないでください。
6. データベースの詳細とロールの検査
接続前にデータベースを確認するにはNEON_RETRIEVE_BRANCH_DATABASE_DETAILSを、利用可能なロールをリスト表示するにはNEON_GET_BRANCH_ROLES_FOR_PROJECTを使用します。
Tool: NEON_RETRIEVE_BRANCH_DATABASE_DETAILS
Inputs:
- project_id: string (required)
- branch_id: string (required)
- database_name: string (required)
Tool: NEON_GET_BRANCH_ROLES_FOR_PROJECT
Inputs:
- project_id: string (required)
- branch_id: string (required)
既知の落とし穴
| 落とし穴 | 詳細 |
|---|---|
org_idが必須 |
個人APIキーを使用している場合、NEON_RETRIEVE_PROJECTS_LISTはHTTP 400 "org_id is required"を返します。まずNEON_GET_USER_ORGANIZATIONSを呼び出してください。 |
| 不完全なページネーション | ページネーションを使用しない場合、プロジェクトリストが不完全になることがあります。cursorが空になるまで反復処理してください。 |
| レート制限 | NEON_RETRIEVE_PROJECTS_LISTは、バースト的なリスト表示でHTTP 429を返します。冗長な呼び出しを避け、再試行する前にバックオフしてください。 |
| 無効なロール/データベースのペアリング | NEON_GET_PROJECT_CONNECTION_URIは、database_name/role_nameのペアリングが無効な場合、401/403を返します。許可されたロールを選択するにはNEON_GET_BRANCH_ROLES_FOR_PROJECTを使用してください。 |
| 接続URIは秘密です | 返されるURIには認証情報が含まれています。プレーンテキストでログに記録したり、表示したり、共有したりしないでください。 |
クイックリファレンス
| ツールスラッグ | 説明 |
|---|---|
NEON_RETRIEVE_PROJECTS_LIST |
ページネーションと検索機能付きで、すべてのNeonプロジェクトをリスト表示します |
NEON_ACCESS_PROJECT_DETAILS_BY_ID |
プロジェクトの設定と消費メトリクスを取得します |
NEON_GET_BRANCHES_FOR_PROJECT |
プロジェクト内のブランチをリスト表示します |
NEON_FETCH_DATABASE_FOR_BRANCH |
特定のブランチ上のデータベースをリスト表示します |
NEON_GET_PROJECT_CONNECTION_URI |
Postgres接続URI(認証情報付き)を取得します |
NEON_RETRIEVE_BRANCH_DATABASE_DETAILS |
データベースのメタデータと設定を検査します |
NEON_GET_USER_ORGANIZATIONS |
認証されたユーザーの組織をリスト表示します |
NEON_CREATE_API_KEY_FOR_ORGANIZATION |
組織の新しいAPIキーを作成します |
NEON_GET_BRANCH_ROLES_FOR_PROJECT |
ブランチで利用可能なロールをリスト表示します |
Powered by Composio
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Neon Automation
Automate your Neon serverless Postgres workflows -- list projects and branches, inspect databases, retrieve connection URIs, manage roles, and integrate Neon database operations into cross-app pipelines.
Toolkit docs: composio.dev/toolkits/neon
Setup
- Add the Composio MCP server to your client:
https://rube.app/mcp - Connect your Neon account when prompted (API key authentication)
- Start using the workflows below
Core Workflows
1. List Projects
Use NEON_RETRIEVE_PROJECTS_LIST to discover all projects associated with the authenticated user.
Tool: NEON_RETRIEVE_PROJECTS_LIST
Inputs:
- org_id: string (REQUIRED when using a personal API key)
- limit: integer (1-400, default 10)
- cursor: string (pagination cursor from previous response)
- search: string (search by project name or ID, supports partial match)
- timeout: integer (milliseconds; returns partial results on timeout)
Important: When using a personal API key, org_id is required. Retrieve it first via NEON_GET_USER_ORGANIZATIONS.
2. Get Project Details
Use NEON_ACCESS_PROJECT_DETAILS_BY_ID to inspect project configuration, owner info, and consumption metrics.
Tool: NEON_ACCESS_PROJECT_DETAILS_BY_ID
Inputs:
- project_id: string (required) -- format: "adjective-noun-number", e.g., "dry-smoke-26258271"
3. List Branches for a Project
Use NEON_GET_BRANCHES_FOR_PROJECT to enumerate branches (development stages) within a project.
Tool: NEON_GET_BRANCHES_FOR_PROJECT
Inputs:
- project_id: string (required)
- search: string (optional, search by branch name or ID)
4. List Databases on a Branch
Use NEON_FETCH_DATABASE_FOR_BRANCH to inventory databases within a specific project and branch.
Tool: NEON_FETCH_DATABASE_FOR_BRANCH
Inputs:
- project_id: string (required)
- branch_id: string (required)
5. Get Connection URI
Use NEON_GET_PROJECT_CONNECTION_URI to obtain a Postgres connection string for a project/branch/database.
Tool: NEON_GET_PROJECT_CONNECTION_URI
Inputs:
- project_id: string (required)
- database_name: string (required) -- e.g., "neondb"
- role_name: string (required) -- e.g., "neondb_owner"
- branch_id: string (optional, defaults to project default branch)
- endpoint_id: string (optional, defaults to read-write endpoint)
- pooled: boolean (optional, adds -pooler for connection pooling)
Security: The returned URI includes credentials. Treat it as a secret -- do not log or share it.
6. Inspect Database Details and Roles
Use NEON_RETRIEVE_BRANCH_DATABASE_DETAILS to verify a database before connecting, and NEON_GET_BRANCH_ROLES_FOR_PROJECT to list available roles.
Tool: NEON_RETRIEVE_BRANCH_DATABASE_DETAILS
Inputs:
- project_id: string (required)
- branch_id: string (required)
- database_name: string (required)
Tool: NEON_GET_BRANCH_ROLES_FOR_PROJECT
Inputs:
- project_id: string (required)
- branch_id: string (required)
Known Pitfalls
| Pitfall | Detail |
|---|---|
| org_id required | NEON_RETRIEVE_PROJECTS_LIST returns HTTP 400 "org_id is required" when using a personal API key. Call NEON_GET_USER_ORGANIZATIONS first. |
| Incomplete pagination | Project lists may be incomplete without pagination. Iterate using cursor until it is empty. |
| Rate limiting | NEON_RETRIEVE_PROJECTS_LIST returns HTTP 429 on bursty listing. Avoid redundant calls and back off before retrying. |
| Invalid role/database pairing | NEON_GET_PROJECT_CONNECTION_URI returns 401/403 when the database_name/role_name pairing is invalid. Use NEON_GET_BRANCH_ROLES_FOR_PROJECT to select an allowed role. |
| Connection URI is a secret | The returned URI includes credentials. Never log, display, or share it in plain text. |
Quick Reference
| Tool Slug | Description |
|---|---|
NEON_RETRIEVE_PROJECTS_LIST |
List all Neon projects with pagination and search |
NEON_ACCESS_PROJECT_DETAILS_BY_ID |
Get project configuration and consumption metrics |
NEON_GET_BRANCHES_FOR_PROJECT |
List branches within a project |
NEON_FETCH_DATABASE_FOR_BRANCH |
List databases on a specific branch |
NEON_GET_PROJECT_CONNECTION_URI |
Get a Postgres connection URI (with credentials) |
NEON_RETRIEVE_BRANCH_DATABASE_DETAILS |
Inspect database metadata and settings |
NEON_GET_USER_ORGANIZATIONS |
List organizations for the authenticated user |
NEON_CREATE_API_KEY_FOR_ORGANIZATION |
Create a new API key for an organization |
NEON_GET_BRANCH_ROLES_FOR_PROJECT |
List roles available on a branch |
Powered by Composio