跳到正文
Skillpedia
智能体77k · #2273

Neon Automation

它能做什么

这个工具可以帮你管理 Neon 上的数据库。Neon 是一个 Postgres 数据库平台。你可以查看自己的项目和数据库,并获取连接详情。

适用场景

  • ✓当你想查看所有 Neon 项目时。
  • ✓当你需要找到某个特定数据库的连接详情时。
  • ✓当你想列出某个项目中可用的数据库或角色时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/neon-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/neon-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“列出我的 Neon 项目。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会使用你的凭据连接到你的 Neon 账户。然后,它会通过特定的命令获取你的项目、数据库以及连接方式等信息。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

  1. Add the Composio MCP server to your client: https://rube.app/mcp
  2. Connect your Neon account when prompted (API key authentication)
  3. 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

…

常见问题

我需要先做什么设置吗?

需要。你需要添加 Composio MCP server,并使用 API key 连接你的 Neon 账户。

什么是 org_id?

它是你在 Neon 中所属组织的标识符。使用个人 API key 列出项目时需要用到它。

连接 URI 安全吗?

不安全。连接 URI 中包含凭据,应当像对待密码一样对待它,不要分享,也不要记录到日志中。

详情

作者的原始描述

Automate Neon serverless Postgres operations -- manage projects, branches, databases, roles, and connection URIs via the Composio MCP integration.

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#2273
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能