How to Search Recipes by Nutritional Goals with Copilot

Nutrition-targeted recipes in your IDE with Copilot and ToolRouter. Diet-aligned meals for developers.

Tool
Recipe Finder icon
Recipe Finder

Copilot retrieves nutrition-filtered recipes with full macro data as structured objects. Build personalized recipe recommendation engines for fitness apps, generate meal plan APIs that filter by nutritional constraints, and create nutrition-goal-based search features directly from the structured output.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Recipe Finder tool:

  1. In Copilot Chat: "Find high-protein recipes using recipe-finder"
  2. Copilot returns matching recipes
  3. Ask: "Return these as JSON with full macro data for my nutrition app"
  4. Use the data in your health and fitness application

Example Prompt

Try this with Copilot using the Recipe Finder tool
Search for recipes with 30g+ protein and under 500 calories. Return as JSON with full nutritional breakdown.

Tips

  • Build nutrition-filtered recipe search into your fitness app
  • Generate meal plan suggestions based on nutritional goals programmatically
  • Use the API to create personalized recipe recommendations