Features Integrations AI & API Pricing Blog Docs
Overview WHOOP Withings Apple Health REST API AI & Claude MCP Server

AI & Claude

Your health data is most useful when you can ask questions about it in plain language. VitalTrends gives you three ways to bring your data into an AI conversation.


Option 1: CSV export (any AI)

The simplest approach. Export your data as a CSV and upload it directly to Claude, ChatGPT, or any AI with file upload.

1
Go to Export

In the dashboard, navigate to Export in the sidebar. Choose your date range and data types.

2
Download the CSV

Click Export CSV. The file downloads immediately.

3
Upload to your AI

Attach the CSV in Claude.ai or ChatGPT, then ask questions about it.

Example prompts


Option 2: API + Python / notebooks

For repeatable analysis, query the REST API directly from a Jupyter notebook or script.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"
BASE    = "https://vitaltrends.net/api/v1"

def get_whoop_daily(days=90):
    from datetime import date, timedelta
    start = (date.today() - timedelta(days=days)).isoformat()
    r = requests.get(
        f"{BASE}/whoop/daily",
        params={"start": start, "per_page": 1000},
        headers={"Authorization": f"Bearer {API_KEY}"},
    )
    r.raise_for_status()
    return pd.DataFrame(r.json()["data"])

df = get_whoop_daily(90)
print(df[["date","recovery_score","hrv_rmssd_milli"]].describe())

From there you can feed the dataframe as context to the Claude API or use any AI SDK to generate insights programmatically.


Option 3: MCP Server (Claude Desktop native)

The most seamless experience. The VitalTrends MCP server connects Claude Desktop directly to your data with no exports needed. Ask questions in Claude and it queries your data in real time.

Read the MCP setup guide to get started.


Privacy note

When you upload a CSV or send API data to a third-party AI (Claude.ai, ChatGPT, etc.), that data leaves VitalTrends and is subject to the AI provider's privacy policy. Use the MCP server if you prefer to keep queries server-side and minimize data exposure.