"I ate 2 rotis, a bowl of dal, and drank a glass of milk at 1:30 pm."
Your agent estimates the macros on its own LLM and calls log_meal_structured with exact values.
Skip building a custom UI. Connect Claude, Cursor, or any Model Context Protocol client to https://vhealth-api.sumflowcloud.com/mcp—your agent parses plain English locally and writes structured macros and calories burned to your account.
Transport: Streamable HTTP · Auth: Bearer Personal Access Token (vhl_... with mcp scope)
Register via POST /api/v1/auth/register (or your account console) and set your nutrition goals, timezone, and dietary preferences.
Issue a Personal Access Token (vhl_...) with scope ["mcp"] via POST /api/v1/auth/tokens. Store it safely; plaintext is displayed once.
Paste one of the client configs below into Claude Desktop, Claude Code, Cursor, or your local stdio bridge.
Your agent converts meals and workouts into exact macros and calories burned, writes via MCP, and reads /dashboard trends to coach you.
Replace vhl_your_token_here with a token created from POST /api/v1/auth/tokens.
{
"mcpServers": {
"vhealth": {
"type": "http",
"url": "https://vhealth-api.sumflowcloud.com/mcp",
"headers": {
"Authorization": "Bearer vhl_your_token_here"
}
}
}
}
{
"mcpServers": {
"vhealth": {
"url": "https://vhealth-api.sumflowcloud.com/mcp",
"headers": {
"Authorization": "Bearer vhl_your_token_here"
}
}
}
}
{
"mcpServers": {
"vhealth": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://vhealth-api.sumflowcloud.com/mcp",
"--header",
"Authorization: Bearer vhl_your_token_here"
]
}
}
}
Your own agent handles natural language reasoning and coaching—Vhealth stores your structured logs and returns dashboard history.
Your agent estimates the macros on its own LLM and calls log_meal_structured with exact values.
Your agent checks get_profile for your body weight, estimates calories burned, and calls log_exercise.
Your agent calls get_dashboard (month-to-date default) and narrates your progress against targets.
All Phase 1 tools wrap non-LLM structured writes and read endpoints so MCP usage stays fast and free of server LLM charges.
| Tool | REST Equivalent | Tier | Purpose |
|---|---|---|---|
get_profile |
GET /api/v1/profile |
Free+ | Read calorie/macro targets, diet_type, allergies, and current weight |
update_profile |
PATCH /api/v1/profile |
Free+ | Update weight goals, dietary constraints, or macro targets |
log_meal_structured |
POST /api/v1/meals |
Free+ | Log itemized foods with agent-calculated macros (zero server LLM) |
log_meal_nutrients |
POST /api/v1/meals/nutrients |
Free+ | Log exact nutrient totals directly from labels or agent estimates |
update_meal_item |
PATCH /api/v1/meals/{id}/items/{item_id} |
Free+ | Adjust portion grams or macros on a previously logged item |
list_meals |
GET /api/v1/meals |
Free+ | Inspect logged meals by date range, category, or search term |
log_exercise |
POST /api/v1/exercises |
Free+ | Log workout activity, duration, and agent-estimated calories burned |
list_exercises |
GET /api/v1/exercises |
Free+ | Inspect exercise outflow history |
log_body_metric |
POST /api/v1/body-metrics |
Free+ | Record weight_kg, body_fat_pct, or waist_cm check-in |
list_body_metrics |
GET /api/v1/body-metrics |
Free+ | Read longitudinal body weight trend |
log_habit |
POST /api/v1/habits |
Free+ | Log hydration, sleep, steps, or custom habit check-ins |
list_habits |
GET /api/v1/habits |
Free+ | Inspect habit history |
get_daily_summary |
GET /api/v1/meals/daily-summary |
Free+ | Check today's intake, outflow, net calories, and remaining targets |
get_dashboard |
GET /api/v1/dashboard |
Free+ | Read day/week/month time series so your agent can summarize trends & advise |