Fulcra Context
by @arc-claw-bot
Access user-consented Fulcra context data including biometrics, sleep, activity, calendar, location, and the Fulcra metric catalog through the hosted MCP ser...
clawhub install fulcra-contextπ About This Skill
name: fulcra-context description: Access your human's personal context data (biometrics, sleep, activity, calendar, location) via the Fulcra Life API and MCP server. Requires human's Fulcra account + OAuth2 consent. homepage: https://fulcradynamics.com metadata: {"openclaw":{"emoji":"π«","requires":{"bins":["curl"]},"primaryEnv":"FULCRA_ACCESS_TOKEN"}}
Fulcra Context β Personal Data for AI Partners
Give your agent situational awareness. With your human's consent, access their biometrics, sleep, activity, location, and calendar data from the Fulcra Life API.
What This Enables
With Fulcra Context, you can:
Privacy Model
Setup
Option 1: MCP Server (Recommended)
Use Fulcra's hosted MCP server at https://mcp.fulcradynamics.com/mcp (Streamable HTTP transport, OAuth2 auth).
Your human needs a Fulcra account (free via the Context iOS app or Portal).
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"fulcra_context": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.fulcradynamics.com/mcp"]
}
}
}
Or run locally via uvx:
{
"mcpServers": {
"fulcra_context": {
"command": "uvx",
"args": ["fulcra-context-mcp@latest"]
}
}
}
Also tested with: Goose, Windsurf, VS Code. Open source: github.com/fulcradynamics/fulcra-context-mcp
Option 2: Direct API Access
1. Your human creates a Fulcra account
2. They generate an access token via the Python client or Portal
3. Store the token: skills.entries.fulcra-context.apiKey in openclaw.json
Option 3: Python Client (Tested & Proven)
pip3 install fulcra-api
from fulcra_api.core import FulcraAPIapi = FulcraAPI()
api.authorize() # Opens device flow β human visits URL and logs in
Now you have access:
sleep = api.metric_samples(start, end, "SleepStage")
hr = api.metric_samples(start, end, "HeartRate")
events = api.calendar_events(start, end)
catalog = api.metrics_catalog()
Save the token for automation:
import json
token_data = {
"access_token": api.fulcra_cached_access_token,
"expiration": api.fulcra_cached_access_token_expiration.isoformat(),
"user_id": api.get_fulcra_userid()
}
with open("~/.config/fulcra/token.json", "w") as f:
json.dump(token_data, f)
Token expires in ~24h. Use the built-in token manager for automatic refresh (see below).
Token Lifecycle Management
The skill includes scripts/fulcra_auth.py which handles the full OAuth2 lifecycle β including refresh tokens so your human only authorizes once.
# First-time setup (interactive β human approves via browser)
python3 scripts/fulcra_auth.py authorizeRefresh token before expiry (automatic, no human needed)
python3 scripts/fulcra_auth.py refreshCheck token status
python3 scripts/fulcra_auth.py statusGet current access token (auto-refreshes if needed, for piping)
export FULCRA_ACCESS_TOKEN=$(python3 scripts/fulcra_auth.py token)
How it works:
authorize runs the Auth0 device flow and saves both the access token AND refresh tokenrefresh uses the saved refresh token to get a new access token β no human interactiontoken prints the access token (auto-refreshing if expired) β perfect for cron jobs and scriptsSet up a cron job to keep the token fresh:
For OpenClaw agents, add a cron job that refreshes the token every 12 hours:
python3 /path/to/skills/fulcra-context/scripts/fulcra_auth.py refresh
Token data is stored at ~/.config/fulcra/token.json (permissions restricted to owner).
Quick Commands
Check sleep (last night)
# Get time series for sleep stages (last 24h)
curl -s "https://api.fulcradynamics.com/data/v0/time_series_grouped?metrics=SleepStage&start=$(date -u -v-24H +%Y-%m-%dT%H:%M:%SZ)&end=$(date -u +%Y-%m-%dT%H:%M:%SZ)&samprate=300" \
-H "Authorization: Bearer $FULCRA_ACCESS_TOKEN"
Check heart rate (recent)
curl -s "https://api.fulcradynamics.com/data/v0/time_series_grouped?metrics=HeartRate&start=$(date -u -v-2H +%Y-%m-%dT%H:%M:%SZ)&end=$(date -u +%Y-%m-%dT%H:%M:%SZ)&samprate=60" \
-H "Authorization: Bearer $FULCRA_ACCESS_TOKEN"
Check today's calendar
curl -s "https://api.fulcradynamics.com/data/v0/{fulcra_userid}/calendar_events?start=$(date -u +%Y-%m-%dT00:00:00Z)&end=$(date -u +%Y-%m-%dT23:59:59Z)" \
-H "Authorization: Bearer $FULCRA_ACCESS_TOKEN"
Available metrics
curl -s "https://api.fulcradynamics.com/data/v0/metrics_catalog" \
-H "Authorization: Bearer $FULCRA_ACCESS_TOKEN"
Key Metrics
| Metric | What It Tells You | |--------|-------------------| | SleepStage | Sleep quality β REM, Deep, Light, Awake | | HeartRate | Current stress/activity level | | HRV | Recovery and autonomic nervous system state | | StepCount | Activity level throughout the day | | ActiveCaloriesBurned | Exercise intensity | | RespiratoryRate | Baseline health indicator | | BloodOxygen | Wellness check |
Integration Patterns
Morning Briefing
Check sleep + calendar + weather β compose a briefing calibrated to energy level.Stress-Aware Communication
Monitor HRV + heart rate β if elevated, keep messages brief and non-urgent.Proactive Recovery
After intense workout or poor sleep β suggest lighter schedule, remind about hydration.Travel Awareness
Location changes β adjust timezone handling, suggest local info, modify schedule expectations.Demo Mode
For public demos (VC pitches, livestreams, conferences), enable demo mode to swap in synthetic calendar and location data while keeping real biometrics.
Activation
# Environment variable (recommended for persistent config)
export FULCRA_DEMO_MODE=trueOr pass --demo flag to collect_briefing_data.py
python3 collect_briefing_data.py --demo
What changes in demo mode
| Data Type | Demo Mode | Normal Mode | |-----------|-----------|-------------| | Sleep, HR, HRV, Steps | β Real data | β Real data | | Calendar events | π Synthetic (rotating schedules) | β Real data | | Location | π Synthetic (curated NYC spots) | β Real data | | Weather | β Real data | β Real data |
Transparency
"demo_mode": true at the top level"demo_mode": trueWhat's safe to share publicly
Links
βοΈ Configuration
Option 1: MCP Server (Recommended)
Use Fulcra's hosted MCP server at https://mcp.fulcradynamics.com/mcp (Streamable HTTP transport, OAuth2 auth).
Your human needs a Fulcra account (free via the Context iOS app or Portal).
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"fulcra_context": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.fulcradynamics.com/mcp"]
}
}
}
Or run locally via uvx:
{
"mcpServers": {
"fulcra_context": {
"command": "uvx",
"args": ["fulcra-context-mcp@latest"]
}
}
}
Also tested with: Goose, Windsurf, VS Code. Open source: github.com/fulcradynamics/fulcra-context-mcp
Option 2: Direct API Access
1. Your human creates a Fulcra account
2. They generate an access token via the Python client or Portal
3. Store the token: skills.entries.fulcra-context.apiKey in openclaw.json
Option 3: Python Client (Tested & Proven)
pip3 install fulcra-api
from fulcra_api.core import FulcraAPIapi = FulcraAPI()
api.authorize() # Opens device flow β human visits URL and logs in
Now you have access:
sleep = api.metric_samples(start, end, "SleepStage")
hr = api.metric_samples(start, end, "HeartRate")
events = api.calendar_events(start, end)
catalog = api.metrics_catalog()
Save the token for automation:
import json
token_data = {
"access_token": api.fulcra_cached_access_token,
"expiration": api.fulcra_cached_access_token_expiration.isoformat(),
"user_id": api.get_fulcra_userid()
}
with open("~/.config/fulcra/token.json", "w") as f:
json.dump(token_data, f)
Token expires in ~24h. Use the built-in token manager for automatic refresh (see below).
Token Lifecycle Management
The skill includes scripts/fulcra_auth.py which handles the full OAuth2 lifecycle β including refresh tokens so your human only authorizes once.
# First-time setup (interactive β human approves via browser)
python3 scripts/fulcra_auth.py authorizeRefresh token before expiry (automatic, no human needed)
python3 scripts/fulcra_auth.py refreshCheck token status
python3 scripts/fulcra_auth.py statusGet current access token (auto-refreshes if needed, for piping)
export FULCRA_ACCESS_TOKEN=$(python3 scripts/fulcra_auth.py token)
How it works:
authorize runs the Auth0 device flow and saves both the access token AND refresh tokenrefresh uses the saved refresh token to get a new access token β no human interactiontoken prints the access token (auto-refreshing if expired) β perfect for cron jobs and scriptsSet up a cron job to keep the token fresh:
For OpenClaw agents, add a cron job that refreshes the token every 12 hours:
python3 /path/to/skills/fulcra-context/scripts/fulcra_auth.py refresh
Token data is stored at ~/.config/fulcra/token.json (permissions restricted to owner).