Skip to main content
Glama

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_mcp

Related MCP server: CaffeineCurfew

MCP Tools

Tool

Description

log_dose

Record a dose event

query_concentration

Query predicted blood concentration at a specified time point

list_dose_events

List all recorded dose events

remove_event

Delete a specified event by ID

clear_all_events

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

compound

str

Drug compound: E2, EB, EV, EC, EN, T, TC, TE, TU

route

str

Administration route: injection, gel, patch_apply, patch_remove, oral, sublingual

time_h

float

Administration time (hours from the reference start point)

dose_mg

float

Dose (active hormone equivalent, milligrams)

release_rate_ug_per_day

float?

Patch zero-order release rate (µg/d), only used for patch_apply

area_cm2

float?

Gel application area (cm²), only used for gel

sublingual_theta

float?

Proportion of transmucosal fast-pathway absorption for sublingual administration [0-1], only used for sublingual

query_concentration - Query predicted blood concentration at a specified time point

Parameter

Type

Description

time_h

float

Query time point (hours from the reference start point)

hormone

str

Target hormone: estradiol or testosterone

body_weight_kg

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.py

License

This project complies with the MIT License

Acknowledgments

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;

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables nutrition tracking with Cronometer, including food logging, food search, diary management, and nutrition data retrieval via natural language.
    13
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Tracks caffeine decay and predicts safe bedtimes using a half-life model. No external integrations needed, intake is passed as parameters.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    A personal health and fitness MCP server that provides tools for managing profile data, goals, body measurements, nutrition, workouts, sleep, check-ins, life events, analytics, and coach memories via Supabase Postgres.
    1

Latest Blog Posts

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/lfcypo/hrt-pk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server