工具 API
get_ connection_ string
Get a PostgreSQL connection string for a Neon database. The branch must have a compute endpoint. `create_project` and `create_branch` do not return one; call this after they succeed. Branch, compute, and database are optional and resolved automatically if not specified; `project_id` follows the connection scope. Requires write access: the connection string carries a privileged role password, so it is unavailable in read-only mode. A read-only caller who needs a DATABASE_URL must copy it from https://console.neon.tech manually.
调用信息
- 工具标识
- mcp-server-neon.get_connection_string
- 服务提供方
- Neon
- 平均响应
- 0 ms
- 近 7 天调用
- 0
输入参数
project_idThe ID of the project. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
branch_idThe ID or name of the branch. If not provided, the default branch will be used.
compute_idThe ID of the compute/endpoint. If not provided, the read-write compute associated with the branch will be used.
database_nameThe name of the database. If not provided, the default neondb or first available database is used.
role_nameThe name of the role to connect with. If not provided, the database owner name will be used.