mirthcraft
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MirthCraft
MCP bridge for Mirth Connect and Open Integration Engine (OIE). Safe discovery, diagnostics, workspace sync, and authoring — with environment policy gates and PHI/PII redaction.
License: Apache-2.0
Status: Alpha — Phases 1–4 shipped; PyPI mirthcraft live
Python: 3.12+
Why MirthCraft
This is not a 1:1 REST wrapper. Design principles:
Token economy + deterministic XML — LLMs edit
.js/.json; MirthCraft patches.mirth_base.xml.Zero-trust by environment —
PRODnever registers write/deploy tools.Privacy by design — message content is redacted before it reaches the model.
Git-friendly workspace — develop locally; MCP syncs, validates, and prepares releases.
Related MCP server: MCP-MedImg
Install
pip install mirthcraft
# pin: pip install mirthcraft==0.1.2
mirthcraft --version
mirthcraft infoPoint at a lab or server with env vars (or a custom environments.yaml):
export MIRTHCRAFT_TARGET=dev
export MIRTHCRAFT_BASE_URL=https://127.0.0.1:18443
export MIRTHCRAFT_PASSWORD_FILE=/path/to/password
# Optional: MIRTHCRAFT_CONFIG=/path/to/environments.yaml
# (redaction_rules.yaml / coding_standards.yaml fall back to packaged defaults)Develop from source
git clone https://github.com/gusmartinuk/mirthcraft.git
cd mirthcraft
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env
# Prefer MIRTHCRAFT_PASSWORD_FILE for oielab (see docs/lab/PASSWORD_WIRING.md)
make check # ruff + mypy + pytest
mirthcraft infoMCP (stdio) for IDEs
mirthcraft serve --transport stdioStreamable HTTP (loopback):
mirthcraft serve --transport http --host 127.0.0.1 --port 8080
# or: docker compose --profile http up mirthcraft-httpPoint Cursor / Antigravity / OpenHands at the mirthcraft CLI. See docs/AI_ORCHESTRATION.md and docs/agents/CURSOR.md.
Docker
docker compose build
docker compose run --rm mirthcraft info --jsonLocal labs
Lab | Role | Docs |
Sibling OpenIntegration ( | Primary DEV ( | |
mirthoss ( | Second DEV ( |
make smoke-labs # skip-friendly if a lab is down
make e2e-phase2 # oielab pull→lint→diff→dry-run→MLLP
make e2e-mirthoss-mllp # mirthoss ADT ACKDocumentation
All project records live under docs/ and are written in English (public-repo ready). Local spoken/command language may be Turkish; committed artifacts stay English.
Doc | Purpose |
Normative product/technical specification | |
Prioritized work items | |
Trusted Publishing / install | |
Architecture Decision Records index | |
Multi-AI workflow | |
Release / session change log |
Naming
Component | Value |
Repo / product |
|
Python package |
|
MCP server name |
|
CLI |
|
Resource URI scheme |
|
Env prefix |
|
Safety
Never commit real PHI, passwords, or production URLs.
Fixtures must be synthetic.
PRODpolicy is read-only by construction (seetests/test_policy_gate.py).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables LLMs to securely interact with FHIR healthcare servers and HL7 terminology services. Provides comprehensive healthcare data operations with built-in PHI protection, audit logging, and SMART on FHIR authentication.MIT
- AlicenseNot gradedqualityCmaintenanceEnables standardized PACS-AI integration through the Model Context Protocol, providing medical imaging workflows with DICOMweb transport, hierarchical PHI de-identification, and AI model orchestration.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables healthcare systems to parse HL7 v2 messages, convert them to FHIR R4 Bundles, validate FHIR resources, and detect/govern PHI with HIPAA, EU MDR, and GDPR compliance evidence for AI governance.MIT
- AlicenseNot gradedqualityBmaintenanceConnects frontier AI agents to HL7 FHIR R4 electronic health record repositories, enabling patient, observation, condition, medication, allergy, and diagnostic report queries plus draft-only clinical writes. Enforces mathematical safety gates, HIPAA-compliant tamper-evident audit logging, and token distillation of bulky FHIR payloads.Apache 2.0