Labsco
Monasterolo21 logo

Ultrahuman

โ˜… 20

from Monasterolo21

Fetch health and fitness metrics like heart rate, sleep, and steps from the Ultrahuman API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

Ultrahuman MCP Server

A Model Context Protocol (MCP) server for fetching health and fitness metrics from the Ultrahuman API. Built with TypeScript and designed for production use.

โœจ Key Features

  • Fetch comprehensive health metrics from Ultrahuman API
  • Heart rate, sleep, steps, temperature, and HRV monitoring
  • Built with TypeScript for type safety
  • Bun for fast testing and development
  • Biome for linting and formatting
  • Clean, maintainable project structure

๐Ÿ“‚ Project Structure

ultrahuman-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ tools/          # MCP tools implementation
โ”‚   โ”‚   โ””โ”€โ”€ ultrahumanMetrics/  # Ultrahuman API integration
โ”‚   โ”œโ”€โ”€ utils/          # Shared utilities
โ”‚   โ”œโ”€โ”€ main.ts         # Server entry point
โ”‚   โ””โ”€โ”€ types.ts        # Shared type definitions
โ”œโ”€โ”€ scripts/            # Build and utility scripts
โ”œโ”€โ”€ biome.json          # Linting configuration
โ”œโ”€โ”€ tsconfig.json       # TypeScript configuration
โ””โ”€โ”€ package.json        # Project dependencies

๐Ÿ”ง Available Tools

ultrahuman_metrics

Fetches health and fitness metrics from the Ultrahuman API for a specific date. The user email is configured via environment variable, so you only need to specify the date to retrieve comprehensive health data.

Parameters:

  • date: Date in YYYY-MM-DD format to fetch metrics for (e.g., '2025-06-19')

Example Usage:

{
  "name": "ultrahuman_metrics",
  "arguments": {
    "date": "2025-06-19"
  }
}

๐Ÿ“Š Available Health Data

The API provides comprehensive health metrics including:

  • Heart Rate: Continuous heart rate monitoring with timestamps
  • Skin Temperature: Body temperature variations throughout the day
  • HRV (Heart Rate Variability): Heart rate variability measurements
  • Steps: Step count data with activity tracking
  • Sleep Data: Detailed sleep analysis including:
    • Sleep stages (Deep, Light, REM, Awake)
    • Sleep efficiency and quality metrics
    • Heart rate and HRV during sleep
    • Temperature variations during sleep
  • Recovery Index: Overall recovery score
  • Movement Index: Activity and movement metrics
  • VO2 Max: Cardiovascular fitness indicator

๐Ÿงช Testing

You can test the server by running it directly:

node dist/main.js

The server will listen for MCP requests on stdio and provide the ultrahuman_metrics tool to fetch health data from the API.

๐Ÿ› ๏ธ Development

  • Run tests: bun test
  • Format code: bun run format
  • Lint code: bun run lint
  • Build project: bun run build

๐Ÿ“œ Version Management

This project uses standard-version for automated version management. Run bun run release to create a new version.

Commit Message Format

  • feat: New feature (bumps minor version)
  • fix: Bug fix (bumps patch version)
  • BREAKING CHANGE: Breaking change (bumps major version)

๐Ÿ“ฆ Publishing to npm

  1. Ensure you're logged in to npm:
    npm login
  2. Build the project:
    bun run build
  3. Publish the package:
    npm publish