Neo4j · Capability

Neo4j HTTP API — Query

Neo4j HTTP API — Query. 1 operations. Lead operation: Execute a Cypher query. Self-contained Naftiko capability covering one Neo4j business surface.

Run with Naftiko Neo4jQuery

What You Can Do

POST
Executequery — Execute a Cypher query
/v1/db/{databasename}/query

MCP Tools

execute-cypher-query

Execute a Cypher query

read-only

Capability Spec

http-query.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Neo4j HTTP API — Query
  description: 'Neo4j HTTP API — Query. 1 operations. Lead operation: Execute a Cypher query. Self-contained Naftiko capability
    covering one Neo4j business surface.'
  tags:
  - Neo4j
  - Query
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NEO4J_API_KEY: NEO4J_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-query
    baseUri: http://localhost:7474
    description: Neo4j HTTP API — Query business capability. Self-contained, no shared references.
    resources:
    - name: db-databaseName-query
      path: /db/{databaseName}/query
      operations:
      - name: executequery
        method: POST
        description: Execute a Cypher query
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: basic
      username: '{{env.NEO4J_USER}}'
      password: '{{env.NEO4J_PASS}}'
  exposes:
  - type: rest
    namespace: http-query-rest
    port: 8080
    description: REST adapter for Neo4j HTTP API — Query. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/db/{databasename}/query
      name: db-databasename-query
      description: REST surface for db-databaseName-query.
      operations:
      - method: POST
        name: executequery
        description: Execute a Cypher query
        call: http-query.executequery
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-query-mcp
    port: 9090
    transport: http
    description: MCP adapter for Neo4j HTTP API — Query. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: execute-cypher-query
      description: Execute a Cypher query
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: http-query.executequery
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.