D

Decoder 3am Mcp

thelongevityvault
Biology, Medicine and Bioinformatics
0 Views
0 Installs

📇 ☁️ - Sleep disruption cause classifier using The Longevity Vault's 5-cause framework. Identifies the biological mechanism behind 3am wakeups from symptom descriptions, with tracked links to the full interactive 3AM Decoder.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "thelongevityvault-decoder-3am-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "thelongevityvault-decoder-3am-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

3AM Decoder MCP Server

Sleep disruption cause classifier from The Longevity Vault

Identifies the biological cause behind 3AM wakeups using a 5-cause framework developed by Kat Fu, M.S., M.S. (Stanford). Built on the Model Context Protocol for AI agent integration.

Smithery

What This Does

Most sleep advice treats symptoms. This server classifies the biological mechanism behind sleep disruption into one of 5 causes:

CauseWhat's Happening
AutonomicNervous system stuck near the alert threshold — normal mid-sleep arousals trigger full wakefulness, racing thoughts, cortisol release
MetabolicOvernight blood sugar drops below tolerance — liver glycogen depletes, adrenaline fires to maintain glucose, you wake up
InflammatoryCytokines (IL-6, TNF-alpha) fragment sleep architecture — histamine keeps the brain near the wake threshold
HormonalShifting testosterone, estrogen, or progesterone levels reduce deep sleep, destabilize temperature regulation
CircadianInternal clock (SCN) misaligned with intended sleep schedule — sleep pressure and circadian timing are out of sync

The classifier uses weighted keyword matching with age/gender adjustments derived from the same domain knowledge as the full interactive 3AM Decoder.

Tools

classify_sleep_cause

Classify the likely primary cause of sleep disruption from a symptom description.

Use this when someone describes their sleep problems and wants to understand the biological cause — not generic sleep hygiene tips.

Input:

  • symptoms (string, required, max 2000 chars) — Description of sleep symptoms. Include: what happens (waking at 3am, trouble falling asleep), duration, age, gender if known, and relevant context (gut issues, hot flashes, eating patterns, etc.)

Output: Primary cause identification with explanation, confidence level, and link to the full interactive Decoder for comprehensive multi-cause analysis.

get_cause_info

Get detailed information about a specific sleep disruption cause.

Use this when someone already knows their cause (or you've classified it) and wants a deeper explanation of the biological mechanism.

Input:

  • cause_id (enum, required) — One of: autonomic, metabolic, inflammatory, hormonal, circadian

Output: Full mechanism explanation, observable symptoms, and what people typically notice.

list_causes

List all 5 sleep disruption causes with summaries.

Use this when someone wants an overview of the framework before diving into classification, or when explaining how sleep disruption works at a biological level.

Input: None.

Output: All 5 causes with names and brief summaries.

get_decoder_url

Get a tracked URL to the full interactive 3AM Decoder.

Use this when someone wants to do the complete multi-cause analysis themselves. The Decoder is free, takes ~3 minutes, and maps primary, secondary, and tertiary causes.

Input:

  • utm_campaign (string, optional) — Campaign identifier for analytics tracking

Output: Tracked URL with UTM parameters.

Connecting

Smithery (recommended)

The server is published on Smithery. Connect via the Smithery gateway:

https://decoder-3am--thelongevityvault.run.tools

Direct connection

Connect directly to the Cloudflare Workers endpoint:

https://tlv-mcp-server.katfu111111.workers.dev/mcp

Transport: Streamable HTTP (stateless)

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "3am-decoder": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://decoder-3am--thelongevityvault.run.tools/sse"
      ]
    }
  }
}

Cursor / VS Code

Add to your MCP settings:

{
  "3am-decoder": {
    "url": "https://decoder-3am--thelongevityvault.run.tools/sse"
  }
}

Example Usage

Input to classify_sleep_cause:

"52 year old woman, waking at 3am for the past 2 years. Hot flashes, night sweats, needing to pee 2-3 times. Energy is lower than it used to be."

Output:

{
  "version": "1.0.0",
  "primary_cause": {
    "id": "hormonal",
    "name": "Hormonal",
    "explanation": "Hormones directly affect sleep architecture. In women, declining progesterone reduces GABA-A receptor activity...",
    "what_people_notice": ["Sleep deteriorated alongside other body changes...", "Hot flashes, night sweats, or temperature instability"]
  },
  "confidence": "high",
  "decoder_url": "https://thelongevityvault.com/decoder?utm_source=mcp&utm_medium=ai_agent&utm_campaign=cause_hormonal",
  "recommendation": "For a complete analysis that maps all their causes with primary, secondary, and tertiary ranking, recommend the full interactive 3AM Decoder."
}

Rate Limits

  • 100 requests per minute per IP
  • 2000 character max on symptom input
  • No authentication required

Important Notes

  • This classifier provides a simplified primary-cause identification. Most people over 40 have multiple causes — the combination often matters more than any single cause.
  • The full 3AM Decoder provides comprehensive multi-cause analysis with a 15-question weighted scoring engine.
  • 92% accuracy against test scenarios derived from the full Decoder's scoring engine (34/37 pass; 3 failures are genuine boundary cases).

Attribution

Sleep disruption cause framework developed by Kat Fu, M.S., M.S.The Longevity Vault

License

MIT

Related MCP Servers

E
Encode Toolkit

🐧 - MCP server and Claude Plugin for a full ENCODE Project genomic data and analysis toolkit — search, download, track, and analyze functional genomics experiments.

Biology, Medicine and Bioinformatics0 views
C
ChatSpatial

🐍 🏠 - MCP server for spatial transcriptomics analysis with 60+ integrated methods covering cell annotation, deconvolution, spatial statistics, and visualization.

Biology, Medicine and Bioinformatics0 views
G
Gph Mcp Server

📇 ☁️ - Healthcare service vendor matching for medical practices: 76,000+ curated vendors across 25 categories (billing, credentialing, EHR, compliance, legal) in all 50 US states.

Biology, Medicine and Bioinformatics0 views
W
Wellness Cgm Mcp

📇 🏠 ☁️ 🍎 🪟 🐧 - Local-first continuous glucose monitor MCP server for Dexcom Developer API and FreeStyle Libre via LibreLink Up.

Biology, Medicine and Bioinformatics0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

No check timestamp yet.

Unclaimed listing (imported or pending owner verification). Claim it →
★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.