Connect your own AI agent via MCP

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.

4-step setup

Transport: Streamable HTTP · Auth: Bearer Personal Access Token (vhl_... with mcp scope)

Create a free Vhealth account

Register via POST /api/v1/auth/register (or your account console) and set your nutrition goals, timezone, and dietary preferences.

Generate a scoped MCP token

Issue a Personal Access Token (vhl_...) with scope ["mcp"] via POST /api/v1/auth/tokens. Store it safely; plaintext is displayed once.

Add the Vhealth server to your AI agent

Paste one of the client configs below into Claude Desktop, Claude Code, Cursor, or your local stdio bridge.

Talk naturally—your agent logs & briefs you

Your agent converts meals and workouts into exact macros and calories burned, writes via MCP, and reads /dashboard trends to coach you.

Client configurations

Replace vhl_your_token_here with a token created from POST /api/v1/auth/tokens.

claude_desktop_config.jsonConnects directly over Streamable HTTP with your scoped vhl_ token.
{
  "mcpServers": {
    "vhealth": {
      "type": "http",
      "url": "https://vhealth-api.sumflowcloud.com/mcp",
      "headers": {
        "Authorization": "Bearer vhl_your_token_here"
      }
    }
  }
}

What you can say once connected

Your own agent handles natural language reasoning and coaching—Vhealth stores your structured logs and returns dashboard history.

"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.

"Ran 5 km in 30 minutes this morning."

Your agent checks get_profile for your body weight, estimates calories burned, and calls log_exercise.

"How did my protein intake and net calories trend this month?"

Your agent calls get_dashboard (month-to-date default) and narrates your progress against targets.

Exposed MCP tool catalog

All Phase 1 tools wrap non-LLM structured writes and read endpoints so MCP usage stays fast and free of server LLM charges.

Phase 1 MCP tools
ToolREST EquivalentTierPurpose
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

Security & data isolation

  • MCP handlers authenticate via your Bearer JWT or scoped vhl_ PAT and derive user_id strictly server-side—never from tool arguments.
  • Phase 1 MCP tools wrap only non-LLM structured writes and read endpoints, keeping server LLM usage at zero.
  • MCP-originating writes are tagged client_channel='mcp' so they stay isolated from Vhealth server-LLM training exports.