Neon MCP by usefulapi
v1.1.0Read projects, branches, endpoints and usage; create branches, start or suspend endpoints in Neon.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
neon_list_projects List projects
List Neon projects the API key can see (personal, organization or project-scoped key). Good first call to find project ids. Neon API: GET /projects.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Pagination cursor from the previous page's `next` value. |
limit | integer | Results per page. |
org_id | string | Organization id, when the key belongs to several organizations. |
search | string | Filter projects by name. |
neon_get_project Get a project
Get one Neon project: name, region, Postgres version, storage, compute settings and quotas. Neon API: GET /projects/{project_id}.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_list_branches List branches
List the branches of a Neon project (main, dev, preview and restored copies). Each branch has its id, parent and state. Neon API: GET /projects/{project_id}/branches.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
cursor | string | Pagination cursor from the previous page's `next` value. |
include_deleted | boolean | Include deleted branches (default false). |
limit | integer | Results per page. |
search | string | Filter branches by name. |
neon_get_branch Get a branch
Get one branch: state, parent, logical size, creation time and whether it is the default branch. Neon API: GET /projects/{project_id}/branches/{branch_id}.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The branch id, for example `br-misty-glade-12345678` (from neon_list_branches). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_create_branch Create a branch
Create a branch in a Neon project, copied from a parent branch (copy-on-write, no data is duplicated). Optionally add a read-write compute endpoint, which is billed while it runs. Neon API: POST /projects/{project_id}/branches.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new branch. |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
add_read_write_endpoint | boolean | Create a read-write compute endpoint with the branch (default false). |
parent_id | string | Branch id to copy from. Omit to use the project default branch. |
neon_list_databases List databases
List the Postgres databases on a branch (name, owner). Neon API: GET /projects/{project_id}/branches/{branch_id}/databases.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The branch id, for example `br-misty-glade-12345678` (from neon_list_branches). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_list_roles List roles
List the Postgres roles on a branch (names and protection flags only; passwords are never returned). Neon API: GET /projects/{project_id}/branches/{branch_id}/roles.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The branch id, for example `br-misty-glade-12345678` (from neon_list_branches). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_get_branch_schema Get a branch schema
Get the schema (DDL) of one database on a branch, as text. Neon API: GET /projects/{project_id}/branches/{branch_id}/schema.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The branch id, for example `br-misty-glade-12345678` (from neon_list_branches). |
db_name * | string | The database name on the branch (from neon_list_databases). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_list_endpoints List compute endpoints
List the compute endpoints of a project: id, branch, type (read_write or read_only), state and autoscaling limits. Neon API: GET /projects/{project_id}/endpoints.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_start_endpoint Start a compute endpoint
Start a suspended compute endpoint so it accepts connections again. Starting compute is billed while it runs. Neon API: POST /projects/{project_id}/endpoints/{endpoint_id}/start.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The compute endpoint id, for example `ep-cool-darkness-12345678` (from neon_list_endpoints). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_suspend_endpoint Suspend a compute endpoint
Suspend a running compute endpoint now. Connections to it stop until it starts again. Neon API: POST /projects/{project_id}/endpoints/{endpoint_id}/suspend.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The compute endpoint id, for example `ep-cool-darkness-12345678` (from neon_list_endpoints). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_list_operations List operations
List recent operations of a project (branch creation, endpoint start and suspend, restores). Use it to check whether a change finished. Neon API: GET /projects/{project_id}/operations.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
cursor | string | Pagination cursor from the previous page's `next` value. |
limit | integer | Results per page. |
neon_get_operation Get an operation
Get one operation: status (running, finished, failed), action and timestamps. Neon API: GET /projects/{project_id}/operations/{operation_id}.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | The operation id (from neon_list_operations). |
project_id * | string | The Neon project id, for example `silent-sun-12345678` (from neon_list_projects). |
neon_get_consumption Get consumption metrics
Get usage per project for an organization over a time range: compute time, active time, written data. Neon API: GET /consumption_history/v2/projects.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the range, ISO 8601 (for example 2026-11-01T00:00:00Z). |
granularity * | string | Time bucket size. |
metrics * | array | Metric names, for example compute_time_seconds, active_time_seconds, written_data_bytes. |
org_id * | string | The organization id that owns the projects. |
to * | string | End of the range, ISO 8601. |
cursor | string | Pagination cursor from the previous page's `next` value. |
limit | integer | Results per page. |
project_ids | array | Limit to these project ids. |