Neon MCP 与 API 接入

团队应用鉴权:api_key

团队 Neon Postgres 数据库:项目、分支、数据库、计算节点、快照备份、用量与组织成员。

本地 Neon MCP 配置

每台设备存放明文密钥

  • 原始 Neon Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 Neon

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

全部操作(146)

操作价格
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/ai_gateway

Get branch AI Gateway endpoint

自备 Key
GET console.neon.tech/api/v2/api_keys

List API keys

自备 Key
DELETE console.neon.tech/api/v2/api_keys/{key_id}

Revoke API key

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth

Retrieve Neon Auth details for the branch

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth

Disable Neon Auth for the branch

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/domains

List domains in redirect_uri whitelist

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/domains

Add domain to redirect_uri whitelist

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/domains

Delete domain from redirect_uri whitelist

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/users

Create new auth user

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}

Delete auth user

自备 Key
PUT console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/users/{auth_user_id}/role

Update auth user role

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/oauth_providers/{oauth_provider_id}

Delete OAuth provider

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/email_and_password

Retrieve email and password configuration

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/email_and_password

Update email and password configuration

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/allow_localhost

Retrieve localhost allow setting

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/allow_localhost

Update localhost allow setting

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/logs_export

Update Neon Auth logs export setting

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/organization

Update organization plugin configuration

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/config

Update auth configuration

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/magic-link

Update magic link plugin configuration

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/phone-number

Retrieve phone number plugin configuration

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/phone-number

Update phone number plugin configuration

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/oauth-provider

Retrieve OAuth provider plugin configuration

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/plugins/oauth-provider

Update OAuth provider plugin configuration

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/oauth-provider/clients/{client_id}

Delete an OAuth client

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/webhooks

Retrieve Neon Auth webhook configuration

自备 Key
PUT console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/auth/webhooks

Update Neon Auth webhook configuration

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches

List branches

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/count

Retrieve number of branches

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}

Retrieve branch details

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}

Delete branch

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}

Update branch

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/restore

Restore branch to a historical state

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/schema

Retrieve database schema

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/compare_schema

Compare database schema

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/masking_rules

Retrieve masking rules

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/masking_rules

Update masking rules

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/anonymized_status

Retrieve anonymized branch status

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/anonymize

Start anonymization

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/set_as_default

Set branch as default

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/finalize_restore

Finalize branch restore from snapshot

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/endpoints

List branch endpoints

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/databases

List databases

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/databases

Create database

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/databases/{database_name}

Retrieve database details

自备 Key
PATCH console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/databases/{database_name}

Update database

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/databases/{database_name}

Delete database

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/roles

List roles

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/roles/{role_name}

Retrieve role details

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/roles/{role_name}

Delete role

自备 Key
POST console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets

Create a bucket on the branch

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets

List buckets on the branch

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets/{bucket_name}

Delete a bucket on the branch

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets/{bucket_name}/objects

List objects in a bucket

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets/{bucket_name}/objects/{object_key}

Delete an object in a bucket

自备 Key
GET console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets/{bucket_name}/objects/{object_key}/download

Download an object's bytes

自备 Key
DELETE console.neon.tech/api/v2/projects/{project_id}/branches/{branch_id}/buckets/{bucket_name}/objects-by-prefix

Delete every object under a key prefix (folder) in a bucket

自备 Key
GET console.neon.tech/api/v2/consumption_history/projects

Retrieve project consumption metrics (legacy plans)

自备 Key
GET console.neon.tech/api/v2/consumption_history/v2/projects

Retrieve project consumption metrics

自备 Key
GET console.neon.tech/api/v2/consumption_history/v2/branches

Retrieve branch consumption metrics

自备 Key
已展示 60 / 146 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 Neon?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 Neon 全部 146 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 Neon 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 Neon 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用