Neon MCP by usefulapi

v1.1.0
io.usefulapi/neon Checked 7 hours ago Published 7 days ago

Read 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.

ParameterTypeDescription
cursorstringPagination cursor from the previous page's `next` value.
limitintegerResults per page.
org_idstringOrganization id, when the key belongs to several organizations.
searchstringFilter 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}.

ParameterTypeDescription
project_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe Neon project id, for example `silent-sun-12345678` (from neon_list_projects).
cursorstringPagination cursor from the previous page's `next` value.
include_deletedbooleanInclude deleted branches (default false).
limitintegerResults per page.
searchstringFilter 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}.

ParameterTypeDescription
branch_id *stringThe branch id, for example `br-misty-glade-12345678` (from neon_list_branches).
project_id *stringThe 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.

ParameterTypeDescription
name *stringName for the new branch.
project_id *stringThe Neon project id, for example `silent-sun-12345678` (from neon_list_projects).
add_read_write_endpointbooleanCreate a read-write compute endpoint with the branch (default false).
parent_idstringBranch 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.

ParameterTypeDescription
branch_id *stringThe branch id, for example `br-misty-glade-12345678` (from neon_list_branches).
project_id *stringThe 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.

ParameterTypeDescription
branch_id *stringThe branch id, for example `br-misty-glade-12345678` (from neon_list_branches).
project_id *stringThe 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.

ParameterTypeDescription
branch_id *stringThe branch id, for example `br-misty-glade-12345678` (from neon_list_branches).
db_name *stringThe database name on the branch (from neon_list_databases).
project_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe 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.

ParameterTypeDescription
endpoint_id *stringThe compute endpoint id, for example `ep-cool-darkness-12345678` (from neon_list_endpoints).
project_id *stringThe 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.

ParameterTypeDescription
endpoint_id *stringThe compute endpoint id, for example `ep-cool-darkness-12345678` (from neon_list_endpoints).
project_id *stringThe 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.

ParameterTypeDescription
project_id *stringThe Neon project id, for example `silent-sun-12345678` (from neon_list_projects).
cursorstringPagination cursor from the previous page's `next` value.
limitintegerResults 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}.

ParameterTypeDescription
operation_id *stringThe operation id (from neon_list_operations).
project_id *stringThe 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.

ParameterTypeDescription
from *stringStart of the range, ISO 8601 (for example 2026-11-01T00:00:00Z).
granularity *stringTime bucket size.
metrics *arrayMetric names, for example compute_time_seconds, active_time_seconds, written_data_bytes.
org_id *stringThe organization id that owns the projects.
to *stringEnd of the range, ISO 8601.
cursorstringPagination cursor from the previous page's `next` value.
limitintegerResults per page.
project_idsarrayLimit to these project ids.