Skip to main content
Use Bhumi to connect meal plans to real local food sources. When your app generates a recipe, query Bhumi to find farms that carry each ingredient nearby.

How it works

  1. User enters their location and dietary preferences
  2. Your app generates a meal plan with ingredient lists
  3. For each ingredient, call find_food to locate nearby farms
  4. Display sourcing options alongside the recipe

Example flow

// User wants to make a grass-fed beef stew near Portland, OR
const ingredients = ["grass-fed beef", "carrots", "potatoes"];

const sourcing = await Promise.all(
  ingredients.map(async (product) => {
    const res = await fetch(
      `https://api.bhumifarms.co/v1/food?product=${encodeURIComponent(product)}&lat=45.52&lng=-122.68&radius=30`,
      { headers: { "X-API-Key": process.env.BHUMI_API_KEY } }
    );
    const { data } = await res.json();
    return { product, farms: data };
  })
);

// sourcing[0].farms → farms with grass-fed beef near Portland
// sourcing[1].farms → farms with carrots near Portland

MCP integration

If your meal planner uses an AI assistant, connect the Bhumi MCP server and the assistant can answer questions like:
  • “Where can I get all the ingredients for beef stew near Portland?”
  • “Find farms with organic vegetables within 20 miles”
  • “Which farm near me has both eggs and raw milk?”

Relevant tools

ToolUse
find_foodFind farms carrying a specific ingredient
search_farmsBrowse farms by location with multiple product filters
check_availabilityVerify a product is in stock before recommending
get_farmGet full farm profile for display in your app