Medplum · Capability

Medplum — GraphQL

Medplum exposes a FHIR-aware GraphQL endpoint at /fhir/R4/$graphql, enabling typed, nested queries across FHIR resources, reverse-reference traversal (_reference), and FHIRPath-style filtering. This capability wraps the GraphQL POST operation.

Medplum — GraphQL is a Naftiko capability published by Medplum, one of 3 capabilities the APIs.io network indexes for this provider.

Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Medplum, GraphQL, and FHIR.

Run with Naftiko MedplumGraphQLFHIR

Capability Spec

medplum-graphql.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Medplum — GraphQL
  description: >-
    Medplum exposes a FHIR-aware GraphQL endpoint at /fhir/R4/$graphql, enabling typed,
    nested queries across FHIR resources, reverse-reference traversal (_reference), and
    FHIRPath-style filtering. This capability wraps the GraphQL POST operation.
  tags:
    - Medplum
    - GraphQL
    - FHIR
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
  - namespace: env
    keys:
      MEDPLUM_ACCESS_TOKEN: MEDPLUM_ACCESS_TOKEN
capability:
  consumes:
    - type: http
      namespace: medplum-graphql
      baseUri: https://api.medplum.com/fhir/R4
      description: Medplum FHIR GraphQL endpoint.
      resources:
        - name: GraphQL
          path: /$graphql
          operations:
            - name: graphqlQuery
              method: POST
              description: Execute a GraphQL query or mutation against the Medplum FHIR GraphQL endpoint.
              outputRawFormat: json
              inputParameters:
                - name: query
                  in: body
                  type: string
                  required: true
                  description: GraphQL query document.
                - name: variables
                  in: body
                  type: object
                  description: Variables map for the query.
                - name: operationName
                  in: body
                  type: string
                  description: Optional operation name when the document contains multiple operations.