fhir-inspector-mcp
v0.0.6Zero-cost MCP server to inspect, validate, summarize, and generate FHIR R4/R5 resources from CytoCync
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_resource Inspect Resource
Inspect a FHIR resource: element tree, references, and contained resources. Structural (pydantic) parsing only; FHIRPath invariants are not evaluated. Returns the unified envelope with data containing resource_type, fhir_version, element_tree, references, contained, and summary counts.
| Parameter | Type | Description |
|---|---|---|
resource * | string | The FHIR resource as a JSON string. |
include_types | boolean | Include the FHIR type of each element node. |
max_depth | integer | Element-tree depth, clamped to [1, 10]. |
version | FHIR version, 'R4' (default) or 'R5'. |
validate_resource Validate Resource
Validate a FHIR resource structurally (pydantic only). Structural (pydantic) validation only. FHIRPath invariants and ValueSet terminology bindings are NOT enforced - the fhir.resources library has no engine for them.
| Parameter | Type | Description |
|---|---|---|
resource * | string | The FHIR resource as a JSON string. |
version | FHIR version, 'R4' (default) or 'R5'. |
summarize_bundle Summarize Bundle
Summarize a FHIR Bundle: type, entry counts, resource distribution, references. Accepts all 9 FHIR bundle types. O(n) over entries with a bounded, cycle-safe reference graph. Non-Bundle resources return E_NOT_A_BUNDLE.
| Parameter | Type | Description |
|---|---|---|
bundle * | string | The FHIR Bundle as a JSON string. |
include_references | boolean | Include the bounded reference edge list. |
max_entries | integer | Caller cap on entries summarised, clamped to [1, 10000]. |
version | FHIR version, 'R4' (default) or 'R5'. |
generate_example Generate Example
Generate a minimal valid example of any FHIR resource type. Introspection-driven: covers every resource type in the selected FHIR version without hand-written templates. Only required fields are populated; overrides are flat dotted-path patches applied as JSON data.
| Parameter | Type | Description |
|---|---|---|
resource_type * | string | FHIR resource type name, e.g. 'Patient'. |
overrides | Optional flat dotted-path overrides, e.g. {"gender": "male"}. | |
version | FHIR version, 'R4' (default) or 'R5'. |