Neon · Capability

Neon Management API — Databases

Neon Management API — Databases. 5 operations. Lead operation: List databases. Self-contained Naftiko capability covering one Neon business surface.

Run with Naftiko NeonDatabases

What You Can Do

GET
Listprojectbranchdatabases — List databases
/v1/projects/{project-id}/branches/{branch-id}/databases
POST
Createprojectbranchdatabase — Create a database
/v1/projects/{project-id}/branches/{branch-id}/databases
GET
Getprojectbranchdatabase — Retrieve database details
/v1/projects/{project-id}/branches/{branch-id}/databases/{database-name}
PATCH
Updateprojectbranchdatabase — Update a database
/v1/projects/{project-id}/branches/{branch-id}/databases/{database-name}
DELETE
Deleteprojectbranchdatabase — Delete a database
/v1/projects/{project-id}/branches/{branch-id}/databases/{database-name}

MCP Tools

list-databases

List databases

read-only idempotent
create-database

Create a database

retrieve-database-details

Retrieve database details

read-only idempotent
update-database

Update a database

idempotent
delete-database

Delete a database

idempotent

Capability Spec

management-databases.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Neon Management API — Databases
  description: 'Neon Management API — Databases. 5 operations. Lead operation: List databases. Self-contained Naftiko capability
    covering one Neon business surface.'
  tags:
  - Neon
  - Databases
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NEON_API_KEY: NEON_API_KEY
capability:
  consumes:
  - type: http
    namespace: management-databases
    baseUri: https://console.neon.tech/api/v2
    description: Neon Management API — Databases business capability. Self-contained, no shared references.
    resources:
    - name: projects-project_id-branches-branch_id-databases
      path: /projects/{project_id}/branches/{branch_id}/databases
      operations:
      - name: listprojectbranchdatabases
        method: GET
        description: List databases
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createprojectbranchdatabase
        method: POST
        description: Create a database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-project_id-branches-branch_id-databases-database_name
      path: /projects/{project_id}/branches/{branch_id}/databases/{database_name}
      operations:
      - name: getprojectbranchdatabase
        method: GET
        description: Retrieve database details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateprojectbranchdatabase
        method: PATCH
        description: Update a database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteprojectbranchdatabase
        method: DELETE
        description: Delete a database
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.NEON_API_KEY}}'
  exposes:
  - type: rest
    namespace: management-databases-rest
    port: 8080
    description: REST adapter for Neon Management API — Databases. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{project-id}/branches/{branch-id}/databases
      name: projects-project-id-branches-branch-id-databases
      description: REST surface for projects-project_id-branches-branch_id-databases.
      operations:
      - method: GET
        name: listprojectbranchdatabases
        description: List databases
        call: management-databases.listprojectbranchdatabases
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createprojectbranchdatabase
        description: Create a database
        call: management-databases.createprojectbranchdatabase
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{project-id}/branches/{branch-id}/databases/{database-name}
      name: projects-project-id-branches-branch-id-databases-database-name
      description: REST surface for projects-project_id-branches-branch_id-databases-database_name.
      operations:
      - method: GET
        name: getprojectbranchdatabase
        description: Retrieve database details
        call: management-databases.getprojectbranchdatabase
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateprojectbranchdatabase
        description: Update a database
        call: management-databases.updateprojectbranchdatabase
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteprojectbranchdatabase
        description: Delete a database
        call: management-databases.deleteprojectbranchdatabase
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: management-databases-mcp
    port: 9090
    transport: http
    description: MCP adapter for Neon Management API — Databases. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-databases
      description: List databases
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-databases.listprojectbranchdatabases
      outputParameters:
      - type: object
        mapping: $.
    - name: create-database
      description: Create a database
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-databases.createprojectbranchdatabase
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-database-details
      description: Retrieve database details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-databases.getprojectbranchdatabase
      outputParameters:
      - type: object
        mapping: $.
    - name: update-database
      description: Update a database
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: management-databases.updateprojectbranchdatabase
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-database
      description: Delete a database
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: management-databases.deleteprojectbranchdatabase
      outputParameters:
      - type: object
        mapping: $.