HRT-PK-MCP
Click on "Deploy 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., "@HRT-PK-MCPRecord 2 mg EV injection at hour 0."
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.
HRT PK MCP
Hormone Replacement Therapy (HRT) pharmacokinetic blood concentration monitoring MCP tool
Agents can record dosing times through tools and query fitted blood concentrations based on PK algorithms at any time
References the algorithm and data fitting implementation of HRT-Recorder-PKcomponent-Test
Supports multiple administration routes for Estradiol and Testosterone
Quick Start
git clone https://github.com/lfcypo/hrt-pk-mcp
uv sync
uv run hrt-pk-mcp
# 或
python -m pk_mcpRelated MCP server: CaffeineCurfew
MCP Tools
Tool | Description |
| Record a dose event |
| Query predicted blood concentration at a specified time point |
| List all recorded dose events |
| Delete a specified event by ID |
| Clear all dose events |
log_dose - Record a dose event
Records a hormone medication event. Each event is persisted and included in the calculation of all subsequent concentration queries.
Parameter | Type | Description |
| str | Drug compound: |
| str | Administration route: |
| float | Administration time (hours from the reference start point) |
| float | Dose (active hormone equivalent, milligrams) |
| float? | Patch zero-order release rate (µg/d), only used for |
| float? | Gel application area (cm²), only used for |
| float? | Proportion of transmucosal fast-pathway absorption for sublingual administration [0-1], only used for |
query_concentration - Query predicted blood concentration at a specified time point
Parameter | Type | Description |
| float | Query time point (hours from the reference start point) |
| str | Target hormone: |
| float | Body weight (kg, default 70.0; affects distribution volume Vd) |
Data Storage
Dose events are persisted in JSON format in the .hrt-pk-data/dose_events.json file in the project directory
Can be inspected, backed up, or migrated across sessions
Pharmacokinetic Algorithm
The pharmacokinetic algorithm and constants in this project reference HRT-Recorder-PKcomponent-Test
For detailed PK algorithms, complete parameter derivation, calibration sources, etc., please refer to HRT-Recorder and pk_research
Supported Compounds and Administration Routes
Estradiol
Compound | Injection | Oral | Sublingual | Gel | Patch |
E2 (Estradiol) | — | ✓ | ✓ | ✓ | ✓ |
EB (Estradiol Benzoate) | ✓ | — | — | — | — |
EV (Estradiol Valerate) | ✓ | ✓ | ✓ | — | — |
EC (Estradiol Cypionate) | ✓ | — | — | — | — |
EN (Estradiol Enanthate) | ✓ | — | — | — | — |
Testosterone
Compound | Injection | Oral | Gel | Patch |
T (Testosterone) | — | — | ✓ | ✓ |
TC (Testosterone Cypionate) | ✓ | — | — | — |
TE (Testosterone Enanthate) | ✓ | — | — | — |
TU (Testosterone Undecanoate) | ✓ | ✓ | — | — |
Output Units
Estradiol pg/mL pmol/L
Testosterone ng/dL ng/mL nmol/L
Cross-validation of Migration
This project has undergone simulated data cross-validation experiments; the results of this project are numerically consistent with the source project's results
python ./test/cross_validate.pyLicense
This project complies with the MIT License
Acknowledgments
PK algorithm and constants, algorithm application LaoZhong-Mihari/HRT-Recorder-PKcomponent-Test
PK algorithm and constants TransmtfTeam/Transmtf-HRT-Tracker
Algorithm application mkx173/Featherline
Algorithm application xunxunProjects/Oyama-s-HRT-Tracker
Correction Contact
If you have any questions or suggestions about the pharmacokinetic algorithm part of the project, please file an issue or contact the academic correspondence email research@lfcypo.com
Serious Warning
This project is developed for educational purposes and is only recommended for pharmacokinetic model research, algorithm validation, and data analysis
The blood concentration results output by this project are derived from mathematical model fitting and theoretical parameter calculations, and are not equivalent to real individual blood concentration test results, nor can they replace clinical laboratory testing, pharmacokinetic research, or professional medical evaluation
Not recommended for any clinical medical use, including but not limited to:
Guiding users to start, stop, adjust, or change hormone treatment plans;
Determining doses of estradiol, testosterone, or other sex hormone medications;
Judging whether drug treatment is safe, effective, or achieves treatment goals;
Replacing doctors in prescribing, diagnosis, or medical decision-making;
This server cannot be deployed
Maintenance
Related MCP Connectors
Your own SLATE health data in your AI assistant: read, trend, plan and log. Never suggests a dose.
Track, curate, and analyze data about your health, habits, and goals.
Read your workouts, history, and stats; create and schedule new workouts. Writes are additive only.
Glucose readings from your LibreLink Up sensor: graph, logbook, stats and summaries (read-only). Sec
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables nutrition tracking with Cronometer, including food logging, food search, diary management, and nutrition data retrieval via natural language.13MIT
- AlicenseNot gradedqualityDmaintenanceTracks caffeine decay and predicts safe bedtimes using a half-life model. No external integrations needed, intake is passed as parameters.MIT
- AlicenseAqualityAmaintenanceMCP server for Cronometer nutrition tracking, enabling food diary management, nutrition data retrieval, food search, and biometric tracking via Cronometer's mobile REST API.1955MIT
- AlicenseAqualityBmaintenanceMCP server for Cronometer nutrition tracking using the mobile API. Enables food logging, nutrition data retrieval, diary management, and fasting tracking.13MIT