Healthcare REST API and MCP Server: X12, HL7, FHIR R4
Conversion and compliance tools through a REST API, with a browser-based sandbox for shipped sample conversions and MCP integration for AI clients. HIPAA X12, HL7 v2.x, and FHIR R4, with Python and Node.js SDKs and curl, C#, and Java examples.
- REST API
- MCP Server
- Python and Node.js SDKs
- X12 / HL7 / FHIR R4
Three paths from evaluation to production
Try the sandbox
Run the Swagger API or the web tools on Redix sample datasets, with no local installation. The public sandbox accepts registered Redix samples. Contact Redix for a demo to discuss testing your own files.
Browse tools →Contact us for a demo
Discuss how the engine, API server, and SDKs would fit your infrastructure.
Contact us for a demo →Deploy locally
The licensed engine runs on Windows or Linux as a CLI, native library, folder watcher, or Docker REST container. Kubernetes or your own AWS, Azure, or Google Cloud account are compatible targets for the container, confirmed for your deployment. Production PHI does not need to be sent to Redix.
Deployment options →Do not send PHI to the public sandbox. The public sandbox runs Redix sample files. To discuss testing your own files, contact us for a demo. Customer-hosted evaluations and production deployments run on your infrastructure, where API keys are managed under the delivered configuration.
Self-service testing on sample data
The public key demo-key-12345 (rate-limited) runs Redix sample payloads. To discuss testing your own files, contact Redix for a demo.
Live Conversion Tools
Choose a tool and run its shipped sample. The public tools use Redix samples. To discuss testing your own files, contact Redix for a demo.
Open the Live Tools →Database Explorer
Browse read-only PostgreSQL tables pre-loaded with the shipped samples, and see the INSERT statements the X12 to database tool generates.
Open the Database Explorer →API sandbox (Swagger)
The full REST reference with try-it-out on demo.redix.com. The demo key runs the provided samples; own payloads are not accepted on the public sandbox at present.
Open Swagger UI →HIPAA-to-FHIR sandbox
Run sample 837, 835, and 278 transactions and get FHIR R4 bundles back. Own-file testing is currently unavailable.
Open X12 to FHIR →Official SDKs, or any HTTP client
| Language | Install or approach | Runtime | Reference |
|---|---|---|---|
| Python | pip install redix-client | A currently supported Python 3 release | PyPI |
| Node.js | npm install redix-client | A currently supported Node.js release | npm |
| C# / .NET | HttpClient + X-API-Key header | A currently supported .NET release; VB.NET also works | C# example |
| Java | java.net.http.HttpClient | Java 11 or later (java.net.http); use a supported release | Java example |
| curl / CLI | curl with the X-API-Key header and a file upload | Bash (examples shown) | curl example |
| Any HTTP client | POST + X-API-Key + multipart/form-data | Go, Ruby, PHP, Rust | API spec |
Format conversion in a few lines
Examples using demo-key-12345 run Redix sample payloads only. Own-file conversion is not available on the public sandbox at present; Contact us for a demo.
# Bash syntax (lines continue with a backslash). # The demo key below runs registered Redix sample files only, sent with the # X-Submission-Method: sample header. Renaming another file does not make it # a sample; own files are not accepted on the public sandbox at present. # Save the Redix 837P 5010 A1 sample (uses jq), then convert it to RMap curl -s -H "X-API-Key: demo-key-12345" \ https://demo.redix.com/api/v2/hipaa-to-rmap/sample/837p | jq -r '.content' > claim_837p.edi curl -X POST https://demo.redix.com/api/v2/hipaa-to-rmap/convert \ -H "X-API-Key: demo-key-12345" \ -H "X-Submission-Method: sample" \ -F "file=@claim_837p.edi" # Save the Redix HL7 v2 ADT sample, then convert it to FHIR R4 curl -s -o patient_adt.hl7 https://demo.redix.com/static/samples/hl7/live-sandbox-adt-a01.hl7 curl -X POST https://demo.redix.com/api/v2/convert/hl7-to-fhir \ -H "X-API-Key: demo-key-12345" \ -H "X-Submission-Method: sample" \ -F "file=@patient_adt.hl7"
import os import requests # demo-key-12345 runs registered Redix sample files only, with the sample header. # Save the sample as test.hl7 first, e.g. with the HL7 curl download above. # Own HL7 files are not accepted on the public sandbox at present. api_key = os.getenv("REDIX_API_KEY", "demo-key-12345") headers = {"X-API-Key": api_key} if api_key == "demo-key-12345": headers["X-Submission-Method"] = "sample" with open("test.hl7", "rb") as f: r = requests.post("https://demo.redix.com/api/v2/convert/hl7-to-fhir", headers=headers, files={"file": ("test.hl7", f)}) r.raise_for_status() bundle = r.json()["fhir_bundle"] print(bundle["resourceType"]) # Bundle
using System.Text.Json; // claim_837p.edi: the Redix 837P sample saved as in the curl example (demo key: samples only) using var client = new HttpClient(); client.DefaultRequestHeaders.Add("X-API-Key", apiKey); client.DefaultRequestHeaders.Add("X-Submission-Method", "sample"); using var form = new MultipartFormDataContent(); form.Add(new ByteArrayContent(File.ReadAllBytes("claim_837p.edi")), "file", "claim_837p.edi"); var response = await client.PostAsync( "https://demo.redix.com/api/v2/hipaa-to-fhir/837-professional", form); response.EnsureSuccessStatusCode(); // e.g. 403 if the file is not a registered sample using var doc = JsonDocument.Parse(await response.Content.ReadAsStringAsync()); var fhirBundle = doc.RootElement.GetProperty("fhir_bundle"); // the FHIR R4 Bundle inside the API response
// Multipart upload of the Redix sample HL7 file saved as test.hl7 (demo key: samples only) HttpClient client = HttpClient.newHttpClient(); String boundary = "redix-" + System.currentTimeMillis(); byte[] file = Files.readAllBytes(Path.of("test.hl7")); byte[] head = ("--" + boundary + "\r\nContent-Disposition: form-data; name=\"file\"; filename=\"test.hl7\"\r\n" + "Content-Type: application/octet-stream\r\n\r\n").getBytes(StandardCharsets.UTF_8); byte[] tail = ("\r\n--" + boundary + "--\r\n").getBytes(StandardCharsets.UTF_8); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://demo.redix.com/api/v2/convert/hl7-to-fhir")) .header("X-API-Key", apiKey) .header("X-Submission-Method", "sample") .header("Content-Type", "multipart/form-data; boundary=" + boundary) .POST(HttpRequest.BodyPublishers.ofByteArrays(List.of(head, file, tail))) .build(); HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); if (response.statusCode() != 200) { throw new IOException("HTTP " + response.statusCode() + ": " + response.body()); } String json = response.body(); // the FHIR bundle is in "fhir_bundle"
The REST API is standard HTTP; no SDK is required. See the Swagger reference for every endpoint and schema.
Standards behind the API
HIPAA X12
Parse, validate, and convert the HIPAA 5010 transaction sets (837, 835, 834, 270/271, 276/277, 278, 820), to and from RMap.
HIPAA Package →HL7 v2.x to FHIR
ADT and ORU passed internal Tier-1 checks (validator acceptance pending); ORM, MDM, SIU, and VXU have demo samples, audits pending.
HL7 to FHIR →X12 to FHIR R4
Claims, remittance, and prior authorization in the live demo; enrollment, eligibility, and claim status mapped on request.
X12 to FHIR →Guides for the engine, API, and SDKs
REST API Guide
Endpoints, authentication, request and response formats, and error handling (January 2026). For the latest sandbox access rules, see the online API documentation.
Download PDF →AnyToAny Engine
Runtime architecture, the IFD/OFD mapping framework, modules, and deployment.
Engine details →SDK guides
Installation, authentication, and usage for the Python and Node.js clients.
Python SDK Guide →Prior authorization APIs
CMS-0057-F API requirements generally begin January 1, 2027; applicability and dates depend on payer type. The demonstrations below run synthetic data through Redix-hosted CRD, DTR, and PAS steps with simulated decisions. They are not an integration with your EHR or payer systems and do not by themselves establish standards conformance; connecting to your systems is implementation work scoped per customer.
Conversion tools for AI clients
The Model Context Protocol is an open standard that lets AI assistants call external tools. With the Redix MCP server, an assistant can validate, convert, and generate documents through the Redix engine in one conversation instead of copying data around.
The MCP server and REST API are fixed wrappers around Redix conversion engines: their routes, tool behavior, and access policies are coded. Underneath, IFD files define validation and OFD files define conversion, so mapping and validation definitions are configurable within the supported engine capabilities; CDA to FHIR uses a separate, open-source-based foundation. Checks are tool-specific: tools that take X12 check the incoming X12, and tools that generate X12 check their output, while FHIR results are returned without a separate FHIR profile validation. Pre-defined maps cover the standard transactions; consultation services add payer- or workflow-specific requirements.
Available tools
- validate_x12
- convert_x12_to_fhir
- convert_x12_to_rmap
- convert_rmap_to_x12
- convert_x12_to_database
- generate_x12_from_database
- convert_hl7_to_fhir
- convert_cda_to_fhir
- convert_fhir_to_rmap
- generate_claim_pdf
- list_supported_formats
MCP Inspector
The Redix-hosted MCP server and the browser Inspector are currently unavailable. The MCP server is a Redix product capability for customer-hosted use; the configurations below run it as a local process.
These examples start the Redix MCP server as a local STDIO process; the Python command and the redix-mcp-server files must already be installed at the path you give. In Claude Desktop, open Settings > Developer > Edit Config and add the entry below to claude_desktop_config.json.
{
"mcpServers": {
"redix": {
"command": "python3.11",
"args": ["/path/to/redix-mcp-server/server.py"],
"env": {
"REDIX_API_BASE": "https://your-redix-api.example",
"REDIX_API_KEY": "YOUR_DEPLOYMENT_KEY"
}
}
}
}{
"mcpServers": {
"redix": {
"command": "python3.11",
"args": ["/path/to/redix-mcp-server/server.py"],
"env": {
"REDIX_API_BASE": "https://your-redix-api.example",
"REDIX_API_KEY": "YOUR_DEPLOYMENT_KEY"
}
}
}
}Cursor uses the same mcpServers entry in .cursor/mcp.json in the project, or in ~/.cursor/mcp.json for all projects.
Local process, your Redix API. Set REDIX_API_BASE to your approved Redix API deployment; https://your-redix-api.example is a placeholder, not a working address. The public hosted MCP service and own-file access on the public sandbox are currently unavailable. Running the MCP process locally does not by itself keep data local: the Redix API server and engines, the AI client or model, logging, credentials, and network paths determine where data goes, so configure and approve them for your environment.
Key. Replace YOUR_DEPLOYMENT_KEY with a key issued for that deployment, scoped for the tools you use, and keep it private. If REDIX_API_BASE is not set, the server calls http://localhost:8080. The public demo key is not for MCP use: it runs registered samples only through direct HTTPS REST requests with X-Submission-Method: sample, as in the examples above.
# Legacy HTTP+SSE endpoint (not Streamable HTTP), for MCP clients that support it.
# The Redix-hosted endpoint and the browser MCP Inspector are currently unavailable.
# Customer-hosted: run the MCP server next to a Redix API server you host and connect
# your client to that server's /sse endpoint.STDIO for a local MCP process. The Redix-hosted HTTP+SSE endpoint is currently unavailable. MCP Server FAQ.
Runs on your infrastructure
- On-premises
- Windows or Linux
- Docker REST container
- Kubernetes / private cloud (compatible targets)
Production PHI does not need to be sent to Redix. The examples on this page authenticate with an X-API-Key header; key management, network controls, and identity integration for PAS workflows are set for the delivered configuration, not by these examples.
Technical support
Integration help, API questions, and deployment guidance for customers under active maintenance: support@redix.com.
Request a demo
Discuss how the engine, API server, and SDKs would fit your infrastructure.
Contact us for a demo →