fhir-upstream-proxy

fhir-upstream-proxy is a skill for Claude Code from aks129/HealthClawGuardrails. It costs 91 tokens per session (972 once invoked), scanned A, original, MIT.

A guarded connection between an AI agent and FHIR servers, which are systems for storing and exchanging health records. It supports servers such as HAPI FHIR, SMART Health IT, and Epic sandboxes.

In plain words
What is it for?
Connecting agents to test or production electronic health record systems while controlling access to clinical data.
Why use it?
It keeps upstream server details hidden while applying protections such as redaction, audit logging, tenant isolation, and URL rewriting.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the healthclaw-guardrails plugin — 14 skills, 3 MCP servers shipped together

Good fit Connecting agents to test or production electronic health record systems while controlling access to clinical data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aks129/healthclawguardrails/fhir-upstream-proxy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aks129/HealthClawGuardrails --skill fhir-upstream-proxy
Clone the repo
git clone --depth 1 https://github.com/aks129/HealthClawGuardrails

Made for: Claude Code.

Or install healthclaw-guardrails, the plugin that ships this one along with the rest of its 14 skills, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fhir-upstream-proxy

README.md
[![agentmods](https://agentmods.dev/badge/skills/aks129/healthclawguardrails/fhir-upstream-proxy/github.svg)](https://agentmods.dev/skills/aks129/healthclawguardrails/fhir-upstream-proxy)
Your own site
<a href="https://agentmods.dev/skills/aks129/healthclawguardrails/fhir-upstream-proxy"><img src="https://agentmods.dev/badge/skills/aks129/healthclawguardrails/fhir-upstream-proxy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fhir-upstream-proxy

Your own site · 80×15
<a href="https://agentmods.dev/skills/aks129/healthclawguardrails/fhir-upstream-proxy"><img src="https://agentmods.dev/badge/skills/aks129/healthclawguardrails/fhir-upstream-proxy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.00972
Opus 5 $0.00046 $0.00486
Sonnet 5 $0.00018 $0.00194
Haiku 4.5 $0.00009 $0.00097

Measured 12d ago against content hash b5a5fd540278, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fhir-upstream-proxy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fhir-upstream-proxy/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FHIR Upstream Server Proxy

Connect to real FHIR servers while keeping the full MCP guardrail stack active.

Client -> MCP Server -> Flask (guardrails) -> Upstream FHIR Server
                             |
               redaction, audit, step-up,
               tenant isolation, disclaimers,
               URL rewriting

When to Use This Skill

  • You need to connect an AI agent to a real FHIR server (HAPI, SMART, Epic)
  • You want automatic PHI redaction on upstream server responses
  • You need audit trails for agent access to production clinical data
  • You want URL rewriting so upstream server details never leak to clients

Configuration

Set the FHIR_UPSTREAM_URL environment variable to enable proxy mode:

# HAPI FHIR R4 (open, no auth)
FHIR_UPSTREAM_URL=https://hapi.fhir.org/baseR4 python main.py

# SMART Health IT (open, no auth)
FHIR_UPSTREAM_URL=https://r4.smarthealthit.org python main.py

# HAPI FHIR R5 (open, no auth)
FHIR_UPSTREAM_URL=https://hapi.fhir.org/baseR5 python main.py

# Local HAPI instance
FHIR_UPSTREAM_URL=http://localhost:8080/fhir python main.py

# Docker Compose with upstream
FHIR_UPSTREAM_URL=https://hapi.fhir.org/baseR4 docker-compose up -d --build

Environment Variables

Variable Default Description
FHIR_UPSTREAM_URL (empty) Upstream FHIR server base URL. Enables proxy when set.
FHIR_UPSTREAM_TIMEOUT 15 HTTP timeout for upstream requests (seconds)
FHIR_LOCAL_BASE_URL (empty) Local server URL for URL rewriting in responses

What the Proxy Does

Reads

Fetched from upstream, then redacted + audited + disclaimers added. The agent never sees unredacted upstream data.

Searches

All query parameters forwarded to upstream. Results redacted per entry. Upstream's full search capabilities are available (chaining, _include, etc.).

Writes

Validated locally first (structural checks), then forwarded to upstream with step-up auth verification. Both local and upstream audit records created.

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 112 lines · 91 tokens per session scan A b5a5fd540278

Subscribe to this mod's changes

fhir-upstream-proxy is a skill published in the GitHub repository aks129/HealthClawGuardrails (30 stars, last pushed today), licensed MIT. It adds 91 tokens to every session and 972 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

healthcare-fhir

Design RESTful clinical data exchanges using HL7 FHIR standards.

andreibesleaga/GABBE · 17 tokens

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

workflow-orchestration-patterns

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

wshobson/agents · 49 tokens

microservices-patterns

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

wshobson/agents · 38 tokens

python-sdk

Implement or modify Python SDK behavior under python/composio, including tools, toolkits, sessions, auth configs, connected accounts, client integration, and shared Python models. Use for Python core runtime/API work; pair with python-testing and cross-sdk-parity when TypeScript must match.

ComposioHQ/composio · 60 tokens