工具 API

run_sql

Execute one SQL statement on a Neon database. If a prior step created a temporary branch, pass that branch_id. NEVER run destructive SQL autonomously; always ask the user first.

devOAuth1 积分

调用信息

工具标识
mcp-server-neon.run_sql
服务提供方
Neon
平均响应
0 ms
近 7 天调用
0

输入参数

sql必填

The SQL query to execute

project_id

The ID of the project to execute the query against. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.

branch_id

An optional ID of the branch to execute the query against. If not provided the default branch is used.

database_name

The name of the database. If not provided, the default neondb or first available database is used.

role_name

An optional Postgres role to log in as. The server resolves its credentials internally and never returns them. If not provided, the database owner is used. On a connection pinned to a role, omit this or pass that role.

compute_id

An optional ID of the compute/endpoint to run on. If not provided, the read-write compute of the branch is used.