Prescription Review MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prescription Review MCP ServerReview this prescription for metformin given the incomplete HbA1c lab results."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Executable Authority Boundary for MCP-Integrated Prescription Review
This repository is the public, anonymous reproducibility package for a synthetic study of auxiliary prescription review with laboratory evidence. It evaluates one narrow question:
When required laboratory evidence is incomplete or discordant, can an executable authority contract prevent a language-model candidate from issuing an unsupported approval?
The contribution is the allocation of final approval authority at the Model Context Protocol (MCP) policy boundary. MCP connectivity, deterministic medication rules, language-model guardrails, and their combination are not claimed as firsts.
Research status
Research prototype only. Do not use it for clinical care or autonomous prescription approval.
All 660 current benchmark cases are synthetic.
Reference labels and deterministic rules share the same public-label contract. Their agreement is implementation consistency, not clinical accuracy.
No patient records, author metadata, ethics documents, credentials, API keys, or model weights are included.
Related MCP server: Prior Authorization System MCP Server
Included evidence
528 main scenarios and 132 silent plausible-substitution scenarios across 11 drug-laboratory domains.
Qwen2.5-3B-Instruct, SmolLM2-1.7B-Instruct, and Phi-3.5-mini-instruct frozen candidate scores.
Deterministic rules, evidence access, confidence abstention, and governed decision paths.
A real MCP stdio client compared with a same-evidence direct interface.
Domain-bootstrap summaries, per-domain confusion counts, threshold sensitivity, repeat and batch-size stability.
Publication figures in PNG and PDF.
Public-source router and RDKit molecular-similarity components as ancillary engineering channels.
The deterministic baseline was the strongest comparator inside the shared synthetic contract. The current evidence does not establish residual model value beyond rules. Silent plausible substitution remains an exposed failure boundary.
Quick start
Python 3.11 or 3.12 is recommended.
python -m venv .venv
& '.\.venv\Scripts\python.exe' -m pip install --upgrade pip
& '.\.venv\Scripts\python.exe' -m pip install -r requirements.txt
& '.\.venv\Scripts\python.exe' -m pytest -q tests
& '.\.venv\Scripts\python.exe' tests_smoke.pyStart the MCP stdio server:
& '.\.venv\Scripts\python.exe' mcp_server.py --transport stdioStart the local HTTP research interface:
.\start_http.ps1Neither interface is hardened for deployment with protected health information.
Reproducing the reported study
The supplied outputs/lab_evidence_benchmark_v2 directory contains the immutable reported scores and summaries. Verify or regenerate figures without downloading model weights:
& '.\.venv\Scripts\python.exe' scripts\plot_lab_evidence_study.pyA full model rerun requires separate acceptance of each model license, sufficient GPU memory, and a PyTorch build appropriate for the local CUDA environment. Model identifiers and license boundaries are documented in MODEL_SOURCES.md. The original run contract records model IDs but not immutable Hugging Face commit revisions, which limits exact future weight-level reproduction.
Run the full benchmark into a new output directory. Do not overwrite the reported outputs:
$out = 'outputs/reproduction_lab_evidence_v2'
$python = '.\.venv\Scripts\python.exe'
& $python scripts\run_lab_evidence_benchmark.py --phase prepare --output $out
foreach ($model in @('qwen2.5-3b', 'smollm2-1.7b', 'phi3.5-mini')) {
foreach ($stage in @('main', 'batch8_repeat1', 'batch8_repeat2', 'batch1_repeat0', 'finalize')) {
& $python scripts\run_lab_evidence_benchmark.py --phase model --model $model --model-stage $stage --output $out
}
}
& $python scripts\run_lab_evidence_benchmark.py --phase summarize --output $outRepository layout
Path | Purpose |
| Evidence normalization, deterministic contract, router, molecular tools, and orchestration |
| MCP server and client-facing tools |
| Public data retrieval, router training, benchmark execution, and figure generation |
| Archived public-source inputs and derived router data |
| Public PubChem pair provenance |
| Frozen synthetic cases, model scores, decisions, and statistics |
| Reproducible figures |
| System and real MCP protocol tests |
MANIFEST_SHA256.csv records the size and SHA-256 digest of every packaged file except the manifest itself.
Related open-source projects
These projects are relevant to the study. Only the first three are direct foundations or dependencies of this repository; the others are independent neighboring implementations and were not used to generate the reported results.
Project | Relevance | Relationship |
Official Python client and server SDK | Direct dependency; MIT | |
Synthetic patient and FHIR/CSV data generation | Public data source; Apache-2.0 | |
Molecular parsing and Morgan/MACCS fingerprints | Direct dependency; BSD-3-Clause | |
SMART on FHIR access exposed through MCP | Related independent project; MIT | |
MCP-based clinical terminology mapping to OMOP concepts | Related independent project; Apache-2.0 | |
Open-source FHIR service and interoperability backend | Related infrastructure; MIT |
Listing a project does not imply endorsement, collaboration, code reuse, or experimental dependence beyond the relationship stated above.
License and third-party material
Repository-authored code is released under the MIT License. Third-party data, software, and models retain their own terms. See DATA_SOURCES.md, MODEL_SOURCES.md, and THIRD_PARTY_NOTICES.md before redistribution or commercial use.
In particular, Qwen/Qwen2.5-3B-Instruct is governed by the Qwen Research License and is restricted to non-commercial purposes unless a separate license is obtained. Model weights are not included in this repository.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables automated cross-department healthcare discharge coordination using MCP, integrating EHR, Pharmacy, and Billing with RBAC and PHI boundary enforcement.Last updated
- Flicense-qualityDmaintenanceEnd-to-end Prior Authorization decision-support system with a multi-agent AI pipeline, MCP Tool Registry, and PostgreSQL backend.Last updated1
- Alicense-qualityDmaintenanceClinical decision-support MCP server that lets AI agents reason over live FHIR patient data for medication review, appointment scheduling, and care gap identification.Last updated8,910MIT
- AlicenseAqualityBmaintenanceAn MCP server that lets an LLM answer a pharmacist's question about drug shortages by normalizing drug names, finding pharmacologic alternatives, and checking their shortage status using public FDA and NLM data.Last updated5MIT
Related MCP Connectors
Physician-reviewed medical opinions and prescriptions for AI agents.
Remote MCP for MCP consent scope receipt, structured receipts, audit logs, and reviewer-ready eviden
Guardrailed FHIR access for AI agents: PHI redaction, audit trail, step-up auth, tenant isolation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/BOYA1999/When-Laboratory-Evidence-Is-Incomplete-Who-May-Approve'
If you have feedback or need assistance with the MCP directory API, please join our Discord server