一键导入
hevy-export
Export workout data from Hevy via browser automation when API key is not available. Requires browser-mcp to be installed. Use as fallback when user has no Hevy API key.
Export workout data from Hevy via browser automation when API key is not available. Requires browser-mcp to be installed. Use as fallback when user has no Hevy API key.
| name | hevy-export |
| description | Export workout data from Hevy via browser automation when API key is not available. Requires browser-mcp to be installed. Use as fallback when user has no Hevy API key. |
This skill provides an alternative way to get Hevy workout data when the user doesn't have an API key. It uses browser automation to download the CSV export from Hevy's settings page.
This skill requires the browser-mcp server to be installed and connected.
Look for browser tools in your available tools list:
mcp_browsermcp_browser_navigatemcp_browsermcp_browser_clickmcp_browsermcp_browser_snapshotIf browser-mcp is not available, guide the user to install it:
~/.config/opencode/opencode.json or project opencode.json):{
"mcp": {
"browser-mcp": {
"type": "npm",
"package": "@anthropic/browser-mcp"
}
}
}
mcp_browsermcp_browser_navigate({ url: "https://hevy.com/settings?export" })
The user may need to log in first. Check the page snapshot:
Use mcp_browsermcp_browser_snapshot to get the page structure, then find and click the export/download button.
The export may take a moment. Wait for the download to complete.
Once downloaded, ask the user for the file path and run the parser:
npx tsx .opencode/skills/hevy-export/scripts/parse-csv.ts --file="/path/to/hevy_export.csv"
This converts the CSV to JSON and saves it to data/workouts.json.
Hevy exports workouts in CSV format with columns:
| Feature | API | CSV Export |
|---|---|---|
| Real-time data | Yes | No (manual export needed) |
| Routines | Yes | No |
| Exercise templates | Yes | No |
| Workout history | Yes | Yes |
| Automation | Full | Requires user interaction |
When using CSV export:
data/workouts.json for consistency with API workflow