ASTM LIS Analyzer Receiver — MCP server for lab analyzers
Collects results from clinical and lab analyzers over ASTM E1381/E1394 and lets an agent look them up by sample, patient, test or time.
claude mcp add --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> --transport stdio astm-lis-analyzer -- uvx labmcp-astm-lisWhat ASTM LIS Analyzer Receiver does
The server runs a receive-only LIS endpoint on your machine. It answers the analyzer's frames, checks checksums and stitches multi-frame messages back together. Your agent then queries the tools to pull results by sample ID, patient ID, test code, arrival time or abnormal flag. Host queries and order downloads are out of scope — this side only listens.
Three link types are supported: RS-232 via serial://, TCP with the analyzer as the server, and TCP with this server listening (--option listen_port=5000). On the instrument, switch on the ASTM protocol and automatic result upload, and turn off host query or order request mode. Leave bidirectional mode on and the analyzer sits waiting for a reply it will never get, then times out before running samples. To test the whole path without hardware, run uvx labmcp-astm-lis --simulate --check.
This is not a medical device and not a validated LIS. Results travel through an AI agent that can misread them, so they must not be used to release reports or make clinical decisions — that stays with your validated LIS and release process. Patient identifiers are masked by default; change that only if your institution's privacy rules allow it.
What it helps with
- pull results off a hematology analyzer over RS-232
- find every result for one sample ID within a shift
- filter out runs with flagged abnormal values
- inspect raw ASTM frames when the link misbehaves
- keep a local log of incoming messages for later review
Example prompts for the agent
- Show me the results that arrived from the analyzer in the last hour
- Find the results for sample
S-1042and show their comments - Report the analyzer link state and the link-layer error counters
How to install ASTM LIS Analyzer Receiver
Platform CLI
claude mcp add --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> --transport stdio astm-lis-analyzer -- uvx labmcp-astm-lisReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-astm-lis <command>
Platform CLI
codex mcp add astm-lis-analyzer --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> -- uvx labmcp-astm-lisReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-astm-lis <command>
Config file
{
"mcpServers": {
"astm-lis-analyzer": {
"command": "uvx",
"args": [
"labmcp-astm-lis"
],
"env": {
"LABMCP_ADDRESS": "<LABMCP_ADDRESS>",
"LABMCP_SIMULATE": "<LABMCP_SIMULATE>",
"LABMCP_READ_ONLY": "<LABMCP_READ_ONLY>",
"LABMCP_LIMITS": "<LABMCP_LIMITS>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-astm-lis <command>
Config file
{
"servers": {
"astm-lis-analyzer": {
"type": "stdio",
"command": "uvx",
"args": [
"labmcp-astm-lis"
],
"env": {
"LABMCP_ADDRESS": "<LABMCP_ADDRESS>",
"LABMCP_SIMULATE": "<LABMCP_SIMULATE>",
"LABMCP_READ_ONLY": "<LABMCP_READ_ONLY>",
"LABMCP_LIMITS": "<LABMCP_LIMITS>"
}
}
}
}Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-astm-lis <command>
Platform CLI
gemini mcp add -e LABMCP_ADDRESS=<LABMCP_ADDRESS> -e LABMCP_SIMULATE=<LABMCP_SIMULATE> -e LABMCP_READ_ONLY=<LABMCP_READ_ONLY> -e LABMCP_LIMITS=<LABMCP_LIMITS> astm-lis-analyzer uvx labmcp-astm-lisReplace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from labmcp-astm-lis <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about ASTM LIS Analyzer Receiver
How do I install ASTM LIS Analyzer Receiver in Claude Code?
Run claude mcp add labmcp-astm-lis -- uvx labmcp-astm-lis. If you prefer environment variables, use `claude mcp add --env LABMCP_ADDRESS=<LABMCP_ADDRESS> --env LABMCP_SIMULATE=<LABMCP_SIMULATE> --env LABMCP_READ_ONLY=<LABMCP_READ_ONLY> --env LABMCP_LIMITS=<LABMCP_LIMITS> --transport stdio astm-lis-analyzer -- uvx labmcp-astm-lis`.
What does ASTM LIS Analyzer Receiver do?
It receives messages from lab analyzers over ASTM E1381/E1394, acknowledges the frames and reassembles the results. The agent can then search those results by sample, patient, test or time.
Can I try it without an analyzer?
Yes — run uvx labmcp-astm-lis --simulate --check. The simulator uploads two messages, a CBC and a chemistry panel, with fictitious patient data.