Skip to main content
Glama
oak-longevity-mcp-server

oak-longevity-mcp-server

oak-longevity-mcp-server

An MCP server for longevity & metabolic medicine — a medication catalog, evidence-based dosing protocols, contraindication screening, drug-interaction checks, required baseline labs, ongoing monitoring plans, FDA/compounding regulatory status, and patient-intake pathway suggestions across 35 compounds.

Built for Oak Longevity Institute by Keith Schmidt, MD — a telemedicine longevity practice in Illinois. This server makes the practice's clinical reference data available to any MCP client (Claude Desktop, Claude Code, or your own agent), and is structured for a free/premium monetization model.

⚠️ Clinical decision-support, not medical advice. All output must be reviewed by a licensed clinician. Many longevity compounds here are used off-label, are compounded, or are investigational/not FDA-approved. Dosing, contraindication, interaction, lab, and regulatory data change frequently — always verify against current primary literature, FDA/DEA resources, and your state board of pharmacy.


What it does

Tool

Tier

Description

get_medication_list

Free

Full medication catalog grouped by category, with ids, drug class, and DEA/Rx schedule.

get_medication_details

Free

Mechanism, formulations, who it's for / not for, and schedule for one medication.

get_fda_status

Free

FDA approval status, DEA schedule, 503A/503B compounding considerations, approved uses, off-label notes.

get_dosing_protocol

Premium

Evidence-based dosing: route, start, titration, maintenance, max, evidence grade, pearls — by indication.

get_required_labs

Premium

Recommended baseline labs/assessments before prescribing, grouped by panel with rationale.

get_monitoring_plan

Premium

Ongoing monitoring schedule — what to check, interval, and action/threshold.

check_contraindications

Premium

Screens a medication against a patient profile (age, sex, conditions, meds) → PASS / FLAG / REJECT with the triggering findings.

check_drug_interactions

Premium

Pairwise interaction warnings across a medication list, ranked by severity, with mechanism + management.

screen_patient_intake

Premium

Maps a patient's symptoms/goals to suggested treatment pathways with first-line + adjunct medications and workup.

The eight categories: Weight Management, Peptide Therapy, Hormone Optimization, Longevity & Metabolic, Sexual Health, Immune & Inflammation, Hair Restoration, Dermatology.

Every tool accepts a medication as a name, id, or brand/alias (e.g. "Tirzepatide", "tirzepatide", "Mounjaro", or "copper peptide" → GHK-Cu). Unrecognized queries return "did you mean" suggestions.

Compounds covered

Semaglutide · Tirzepatide · Liraglutide · Naltrexone/Bupropion · BPC-157 · Sermorelin · CJC-1295/Ipamorelin · Ipamorelin · Tesamorelin · Thymosin Beta-4 (TB-500) · Testosterone (cypionate & cream) · Estradiol · Progesterone · DHEA · Anastrozole · Pregnenolone · hCG · NAD+ · Metformin · Rapamycin · Berberine · Resveratrol · NMN · PT-141 · Oxytocin · Tadalafil · Sildenafil · Thymosin Alpha-1 · Glutathione · Low-Dose Naltrexone · Finasteride · Oral Minoxidil · GHK-Cu · Tretinoin.


Related MCP server: MediLinkAI

Install & build

git clone <repo> longevity-mcp-server
cd longevity-mcp-server
npm install

npm run build             # compile TypeScript → dist/ and copy data
npm run smoke             # end-to-end test (optional)

The clinical data ships as JSON in src/data/ and is copied into dist/data/ at build.


Use with Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "oak-longevity": {
      "command": "node",
      "args": ["/absolute/path/to/longevity-mcp-server/dist/index.js"],
      "env": { "LONGEVITY_LICENSE_KEY": "OAK-XXXX-XXXX-XXXX" }
    }
  }
}

Restart Claude Desktop. You can then ask things like:

  • "List the peptide therapy options."

  • "What's the dosing protocol for tirzepatide for weight loss?"

  • "Can I prescribe tadalafil to a 60-year-old man taking nitroglycerin?"

  • "Check interactions between rapamycin, simvastatin, and clarithromycin."

  • "What baseline labs do I need before starting testosterone?"

  • "A patient reports fatigue, low libido, and wants to lose weight — what pathways fit?"

See examples/claude_desktop_config.json for an npx variant.

Use with Claude Code

claude mcp add oak-longevity -- node /absolute/path/to/longevity-mcp-server/dist/index.js

Inspect locally

npm run inspect          # opens the MCP Inspector against the stdio server

Remote hosting (HTTP / SSE)

The same tools are served over Streamable HTTP for remote deployment (MCPize, a VPS, or serverless):

npm run build
PORT=3000 node dist/http.js
# → POST http://localhost:3000/mcp     (GET /health for a liveness check)

The HTTP transport is stateless and multi-tenant: the per-customer license key is read from a request header, so a single deployment can serve many customers.

X-Oak-License: OAK-XXXX-XXXX-XXXX        (preferred)
Authorization: Bearer OAK-XXXX-XXXX-XXXX (also accepted)

Monetization & licensing

The server has a built-in free / premium split designed to be wired to a billing provider (Stripe, MCPize) with minimal change.

  • Free tier: get_medication_list, get_medication_details, get_fda_status — the catalog and regulatory reference.

  • Premium tier: the clinical decision-support engine — dosing protocols, baseline labs, monitoring plans, contraindication screening, drug-interaction checks, and intake pathway suggestions.

Premium tools remain discoverable (they appear in tools/list so clients can advertise the upgrade), but calling one without a valid entitlement returns an upgrade prompt instead of data.

Entitlement resolution

Configured via environment variables (stdio) or request headers (HTTP):

Variable

Purpose

LONGEVITY_LICENSE_KEY

The customer's license key.

LONGEVITY_TIER

Force premium or free (self-hosted / enterprise override).

LONGEVITY_VALID_KEYS

Comma-separated allowlist of keys treated as valid premium (manual provisioning / testing).

LONGEVITY_LICENSE_VERIFY_URL

Optional HTTP endpoint for remote key verification. When set, keys are validated against this service instead of locally.

A locally-issued key matches the format OAK-XXXX-XXXX-XXXX. For production, point LONGEVITY_LICENSE_VERIFY_URL at your billing webhook; it should accept { "key": "..." } and return { "valid": true, "tier": "premium", "expiresAt": "..." }.

The verification layer lives entirely in src/licensing.ts behind a LicenseProvider interface — swap the implementation without touching any tool.


Project structure

longevity-mcp-server/
├── src/
│   ├── index.ts          # stdio entry point (Claude Desktop / Code)
│   ├── http.ts           # Streamable HTTP entry point (remote hosting)
│   ├── server.ts         # builds the MCP server + tier gating
│   ├── licensing.ts      # free/premium entitlement (pluggable)
│   ├── data.ts           # data loading + medication resolver
│   ├── types.ts          # clinical data types
│   ├── tools/            # one file per MCP tool (9 tools)
│   └── data/             # clinical data (JSON)
│       ├── categories.json
│       ├── medications.json
│       ├── dosing.json
│       ├── contraindications.json
│       ├── interactions.json
│       ├── labs.json
│       ├── fda.json
│       └── pathways.json
├── scripts/
│   ├── copy-assets.mjs   # copy JSON into dist/ at build
│   └── smoke-test.mjs    # end-to-end MCP client/server test
├── examples/
│   └── claude_desktop_config.json
├── package.json
├── tsconfig.json
├── LICENSE
└── README.md

Data model

The clinical data is hand-curated from standard pharmacology references and longevity-medicine practice (Endocrine Society / Menopause Society / ISSWSH guidance, FDA labeling and shortage/bulk-substance lists, and the peer-reviewed literature for off-label and investigational compounds). Each dataset is keyed by medication id:

  • medications.json — class, mechanism, formulations, candidate profile, schedule.

  • dosing.json — per-indication route / start / titration / maintenance / max / evidence grade.

  • contraindications.json — boxed warnings, absolute & relative contraindications (with machine-matchable condition keywords), cautions, pregnancy.

  • interactions.json — per-drug interaction rules (severity, effect, management).

  • labs.json — baseline panels and ongoing monitoring schedule.

  • fda.json — approval status, schedule, 503A/503B compounding considerations, approved uses, references.

  • pathways.json — 15 intake pathways mapping symptoms/goals → first-line + adjunct medications.

Because regulatory status (especially FDA drug-shortage listings and 503A bulk-substance eligibility for peptides) shifts frequently, treat get_fda_status output as a starting point and confirm against the current FDA database before compounding.


License

MIT © 2026 Keith Schmidt, MD — Oak Longevity Institute

The clinical reference content is provided for educational and decision-support purposes only and does not constitute medical advice. See the disclaimer in LICENSE.

Available Tools

9 tools
check_contraindicationsScreen Patient for ContraindicationsA
Read-only

Given a medication and a patient profile (age, sex, conditions, current medications), screens against absolute and relative contraindications and known drug interactions and returns an overall verdict — PASS, FLAG (proceed with caution / address first), or REJECT (do not prescribe) — with the specific triggering findings and clinical notes. PREMIUM tier.

Inputs: medication (required), age, sex, conditions, +1 more.

check_drug_interactionsCheck Drug InteractionsA
Read-only

Given a list of medications (catalog drugs and/or outside agents like "warfarin", "nitrates", "insulin"), returns pairwise interaction warnings ranked by severity (contraindicated > major > moderate > minor), each with the mechanism/effect and management. PREMIUM tier.

Inputs: medications (required).

get_dosing_protocolGet Evidence-Based Dosing ProtocolA
Read-only

Given a medication (and optionally an indication), returns evidence-based dosing: route, starting dose, titration schedule, maintenance range, maximum, evidence grade, and clinical pearls. When an indication is supplied, returns the best-matching protocol; otherwise returns all indications for the medication. PREMIUM tier.

Inputs: medication (required), indication.

get_fda_statusGet FDA / Compounding Regulatory StatusA
Read-only

Given a compound (name, id, or brand/alias), returns its current FDA approval status, DEA/Rx schedule, compounding pathway (503A/503B, shortage-list and bulk-substance considerations), FDA-approved uses, an off-label note, and reference pointers. Essential for compliant compounded-medication practice. FREE tier.

Inputs: compound (required).

get_medication_detailsGet Medication DetailsA
Read-only

Given a medication name, id, or brand/alias (e.g. "tirzepatide", "Ozempic", "copper peptide"), returns its drug class, mechanism of action, available formulations, who it is for (candidate profile), who it is NOT for (at-a-glance cautions), and DEA/Rx schedule. FREE tier.

Inputs: medication (required).

get_medication_listList Longevity MedicationsA
Read-only

Returns the full catalog of longevity & metabolic medications, grouped by category (Weight Management, Peptide Therapy, Hormone Optimization, Longevity & Metabolic, Sexual Health, Immune & Inflammation, Hair Restoration, Dermatology). Each entry includes the medication id (used by other tools), display name, drug class, and DEA/Rx schedule. Optionally filter by a category id or name. FREE tier.

Inputs: category.

get_monitoring_planGet Ongoing Monitoring PlanA
Read-only

Given a medication, returns the ongoing monitoring requirements once therapy has started — what to check, at what interval, and the action/threshold for each. Use to build a follow-up schedule. PREMIUM tier.

Inputs: medication (required).

get_required_labsGet Required Baseline LabsA
Read-only

Given a medication, returns the recommended baseline labs/assessments to obtain BEFORE prescribing — grouped into panels with the clinical rationale for each. Use to build a pre-treatment workup. PREMIUM tier.

Inputs: medication (required).

screen_patient_intakeScreen Patient Intake → Suggested PathwaysA
Read-only

Given a patient’s symptoms and/or goals (free text or a list — e.g. "fatigue, low libido, want to lose weight"), suggests the most relevant longevity treatment pathways, each with first-line and adjunct medications, a suggested workup, and key things to avoid. Use to triage an intake. PREMIUM tier.

Inputs: goals, symptoms.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of medication management (listing, details, FDA status, dosing, labs, monitoring, contraindications, interactions, patient intake). There is no overlap, making it easy for an agent to select the correct tool.

    Naming Consistency5/5

    All tools use a consistent snake_case verb_noun pattern (e.g., get_medication_list, check_contraindications, screen_patient_intake). The naming is uniform and predictable across the entire set.

    Tool Count5/5

    With 9 tools, the server is well-scoped for its purpose of longevity medication decision support. Each tool serves a clear function without redundancy, and the count is neither too sparse nor overly large.

    Completeness5/5

    The tools cover a comprehensive clinical workflow: catalog browsing, detailed info, regulatory status, dosing, pre-treatment labs, monitoring, contraindications, drug interactions, and patient intake triage. There are no obvious gaps for an informational MCP server.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that connects AI assistants to OpenEMR instances to manage patient records, clinical trends, and medication safety. It provides 17 tools for tasks such as patient search, drug interaction checks, and generating comprehensive health trajectories and visit preparations.
      17
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Clinical decision-support MCP server that lets AI agents reason over live FHIR patient data for medication review, appointment scheduling, and care gap identification.
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      An MCP server that provides AI-assisted clinical decision support for medication safety, integrating trusted biomedical sources to detect drug interactions and suggest therapeutic alternatives.
      5
      1
      -