> ## Documentation Index
> Fetch the complete documentation index at: https://openwearables.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Desktop Health Data via MCP

> Configure Claude Desktop to query wearable health data via the Open Wearables MCP server. Ask Claude about sleep, workouts, and HRV in natural language.

## Configuration

Add the following to your Claude Desktop configuration file:

> [tab] macOS
>
> Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "open-wearables": {
>       "command": "uv",
>       "args": [
>         "run",
>         "--frozen",
>         "--directory",
>         "/path/to/open-wearables/mcp",
>         "start"
>       ]
>     }
>   }
> }
> ```

> [tab] Windows
>
> Edit `%APPDATA%\Claude\claude_desktop_config.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "open-wearables": {
>       "command": "uv",
>       "args": [
>         "run",
>         "--frozen",
>         "--directory",
>         "C:\\path\\to\\open-wearables\\mcp",
>         "start"
>       ]
>     }
>   }
> }
> ```

> [!WARNING]
>
> Replace `/path/to/open-wearables/mcp` with the actual path to the MCP directory on your system.

> [!TIP]
>
> If the server fails to start, you may need to use the full path to `uv` instead of just `"uv"`. You can find it by running:
>
> ```bash theme={null}
> which uv
> # e.g. /Users/bart/.local/bin/uv
> ```
>
> Then replace `"command": "uv"` with the full path, e.g. `"command": "/Users/bart/.local/bin/uv"`.

## Verifying the Connection

After configuring Claude Desktop:

1. Restart Claude Desktop
2. Look for the MCP tools icon in the chat interface
3. Try asking: "Who can I query health data for?"

If configured correctly, Claude will use the `get_users` tool to fetch available users from your Open Wearables instance.

## Troubleshooting

### "Invalid API key" error

Ensure your `OPEN_WEARABLES_API_KEY` in `config/.env` is valid. Keys are generated in the API Keys section of the Open Wearables developer portal (Settings tab). The full key is shown only once, right after it is created or rotated - if you no longer have it, rotate the key in the portal and update `config/.env` with the new value.

### "Connection refused" error

Make sure the backend is running at the URL specified in `OPEN_WEARABLES_API_URL`.

For local development:

```bash theme={null}
# From project root
docker compose up -d
```

### No users found

Make sure `OPEN_WEARABLES_API_URL` in `mcp/config/.env` points to the **API base URL** (e.g. `https://api.openwearables.io` or `http://localhost:8000`), not the URL of your Open Wearables dashboard/frontend. The MCP server calls `GET /api/v1/users` on this URL - if it points to the wrong service, you'll get a 404 ("Resource not found").


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.