rabyavalla avatar

B.O.N.S.A.I. Health Intelligence API

rabyavalla/bonsai-api

Provides access to lifestyle medicine recommendations backed by 637+ peer-reviewed research references through x402 micropayment integration. You'd reach for this when building health apps that need evidence-based guidance on nutrition, exercise, sleep, stress management, and other lifestyle interventions without maintaining your own medical literature database. The micropayment model means you pay per query rather than subscribing to an entire medical knowledge API. Runs on Railway with streamable HTTP transport, so it works with any MCP client that supports remote servers. The focus is squarely on preventive health and lifestyle modifications rather than clinical diagnosis or treatment.

tools
9
transport
HTTP
last updated
Feb 26, 2026

Install

From registry metadata
$ npx add-mcp https://web-production-ae61.up.railway.app --name bonsai-health

Run in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http bonsai-health https://web-production-ae61.up.railway.app

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 9 tools

Verified live against the running server on Nov 6, 2026.

get_protocolGenerate an evidence-based whole-food plant-based protocol for one of 47 chronic conditions. Returns therapeutic foods, daily meal structure, foods to minimize, monitoring markers, and clinical citations.3 params

Generate an evidence-based whole-food plant-based protocol for one of 47 chronic conditions. Returns therapeutic foods, daily meal structure, foods to minimize, monitoring markers, and clinical citations.

Parameters* required
condition*string
one of angina · anxiety · ascvd · asthma · atrial_fibrillation · autoimmune
duration_weeksinteger
default: 4
user_contextobject
query_nutrition_topicAsk a nutrition or food-as-medicine question. Returns evidence-based answer from the 200-chunk lifestyle medicine knowledge base.2 params

Ask a nutrition or food-as-medicine question. Returns evidence-based answer from the 200-chunk lifestyle medicine knowledge base.

Parameters* required
max_resultsinteger
default: 3
query*string
interpret_labsInterpret a panel of lab values against ACLM-optimized reference ranges. Returns risk classification per marker, lifestyle interventions, and medication deprescription signals.3 params

Interpret a panel of lab values against ACLM-optimized reference ranges. Returns risk classification per marker, lifestyle interventions, and medication deprescription signals.

Parameters* required
current_medicationsarray
health_goalsarray
lab_values*object
Key-value pairs of biomarker names and values. Common keys: hba1c, fasting_glucose, fasting_insulin, ldl, hdl, triglycerides, apob, lp_a, hscrp, vitamin_d, b12, ferritin, tsh, free_t4, free_t3.
marker_referenceLook up the ACLM-optimized reference range and lifestyle intervention plan for a single biomarker (e.g., apob, lp_a, hscrp, hba1c, fasting_insulin, vitamin_d).1 params

Look up the ACLM-optimized reference range and lifestyle intervention plan for a single biomarker (e.g., apob, lp_a, hscrp, hba1c, fasting_insulin, vitamin_d).

Parameters* required
marker*string
glp_protocolGenerate a GLP-aware nutrition protocol composed on top of any active chronic condition. Returns protein floor (1.2-1.6 g/kg), fiber ramp schedule, GI tolerance interventions, resistance training prescription, hydration target, and phase-specific guidance.4 params

Generate a GLP-aware nutrition protocol composed on top of any active chronic condition. Returns protein floor (1.2-1.6 g/kg), fiber ramp schedule, GI tolerance interventions, resistance training prescription, hydration target, and phase-specific guidance.

Parameters* required
conditionstring
glp1_medication*string
one of semaglutide · tirzepatide · liraglutide · dulaglutide · compounded · saxenda
glp1_phase*string
one of starting · titrating · maintenance · tapering · post_drug
user_contextobject
glp_phase_guideReturn the protocol overview for a specific GLP-1 therapy phase (starting, titrating, maintenance, tapering, post_drug).1 params

Return the protocol overview for a specific GLP-1 therapy phase (starting, titrating, maintenance, tapering, post_drug).

Parameters* required
glp1_phase*string
one of starting · titrating · maintenance · tapering · post_drug
check_interactionsCheck a list of medications for food-drug interactions, nutrient depletions, and timing-critical dosing requirements.2 params

Check a list of medications for food-drug interactions, nutrient depletions, and timing-critical dosing requirements.

Parameters* required
foods_or_supplementsarray
medications*array
drug_safetyReturn the food-drug safety profile for a single medication.1 params

Return the food-drug safety profile for a single medication.

Parameters* required
medication*string
lifestyle_queryAsk any lifestyle medicine question. Returns evidence-based answer with citations from a 200-chunk knowledge base spanning ACLM 6-pillars, B.O.N.S.A.I. nutrition, drug-food interactions, lab interpretation, GLP guidance, wearables, and CGM signal interpretation.3 params

Ask any lifestyle medicine question. Returns evidence-based answer with citations from a 200-chunk knowledge base spanning ACLM 6-pillars, B.O.N.S.A.I. nutrition, drug-food interactions, lab interpretation, GLP guidance, wearables, and CGM signal interpretation.

Parameters* required
max_resultsinteger
default: 3
pillarstring
one of nutrition · movement · sleep · stress · substance_use · social_connectiondefault: any
query*string

Sponsors

Readme

Details

Repository
github.com/rabyavalla/bonsai-api
Transport
HTTP
Registry
MCP registry, active
Tools verified
Nov 6, 2026

More from rabyavalla