mealserver

mealserver

1

The Meal Server is a Python-based Model Context Protocol (MCP) server that interfaces with TheMealDB API to access a vast collection of recipes. Users can search for meals using natural language through various criteria such as name, ingredient, category, and more. The server includes features for saving ingredients, accessing categories, and using predefined prompts for intuitive queries.

Meal Server

A Python-based MCP server for accessing TheMealDB API.

Features

  • Get meals by letter, name, ingredient, category, or area
  • Get random meals
  • Save ingredients to a file for shopping lists

Resources

  • Access meal categories and cuisine areas/regions
  • Access a database of common ingredients

Security Features

  • API Key Management
  • Logging
  • Error Handling

Usage

To run the server, use Python to execute mealserver.py. Use environment variables for configuration and security. The .env file contains API and server configuration settings.

MCP Tools

  • Retrieve meals by letter, name, or ingredient
  • Get random meals
  • Save ingredients to a file

MCP Resources

  • Meal Categories
  • Cuisine Areas
  • Common Ingredients

MCP Prompts

  • Show me {cuisine} {category} recipes
  • What {category} recipes can I make?
  • Suggest a random recipe

This MCP server provides several tools and prompts to facilitate interaction with TheMealDB API.