AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Mealdb Mcp

mcp-traves-theberge-mealdb-mcp · by Traves-Theberge

"What do you want to eat?"

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add mcp-traves-theberge-mealdb-mcp

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-traves-theberge-mealdb-mcp)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Mealdb Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

MealDB MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to the TheMealDB API for recipe and meal information. This server enables AI assistants to search for recipes, get detailed meal information, browse categories, and explore ingredients.

🍕 Hey Vibe Coders! Ever have the problem where your partner asks you, "What do you want to eat?" and you just stare blankly? No more endless scrolling through delivery apps or decision paralysis! Let AI help you discover your next meal! 🤖✨

🌟 Powered by TheMealDB - An open, crowd-sourced database of recipes from around the world! 💡 Enjoying this product? Consider reaching out to TheMealDB team to set up a production API for enhanced features and production usecases!

🍽️ Features

  • 🔍 Meal Search - Search for meals by name
  • 📋 Meal Details - Get complete recipe details including ingredients and instructions
  • 🎲 Random Meals - Get random meal suggestions for when you're feeling adventurous
  • 📂 Category Browsing - Explore meal categories and discover new cuisines
  • 🥕 Ingredient Search - Find meals by specific ingredients you have on hand
  • 🌍 Comprehensive Data - Access to thousands of recipes from around the world

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • A compatible MCP client (like Cursor with MCP support)
  • Docker & Docker Compose (optional, for containerized deployment)

💻 Local Installation (Recommended)

  1. Clone this repository

``bash git clone cd mealdb-mcp ``

  1. Install dependencies

``bash npm install ``

  1. Build the server

``bash npm run build ``

  1. Start the server

``bash npm start ``

The server will start and listen for MCP requests via stdio.

🐳 Docker Installation (Optional)

For a containerized setup (requires Docker Desktop):

Production deployment:

npm run docker:prod

Development with hot reload:

npm run docker:dev

> ⚠️ Note: If you get a "'docker-compose' is not recognized" error, Docker isn't installed. Use the local installation method above instead.

⚙️ Configuration

For Cursor IDE

The server includes a .cursor/mcp.json configuration file that allows Cursor to automatically discover and use the MealDB server:

{
  "mcpServers": {
    "mealdb-server": {
      "command": "node",
      "args": ["build/index.js"],
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

For Other MCP Clients

Configure your MCP client to connect to this server using:

  • Command: node
  • Arguments: ["path/to/mealdb-mcp/build/index.js"]
  • Working Directory: path/to/mealdb-mcp

🛠️ Available Tools

🔍 search_meals

Search for meals by name.

Parameters:

  • query (string): Name of the meal to search for

Example:

{
  "name": "search_meals",
  "arguments": {
    "query": "chicken"
  }
}

📋 get_meal_details

Get detailed information about a specific meal by ID.

Parameters:

  • mealId (string): The ID of the meal to get details for

Example:

{
  "name": "get_meal_details",
  "arguments": {
    "mealId": "52772"
  }
}

🎲 get_random_meal

Get a random meal suggestion.

Parameters: None

Example:

{
  "name": "get_random_meal",
  "arguments": {}
}

📂 list_categories

Get all available meal categories.

Parameters: None

Example:

{
  "name": "list_categories",
  "arguments": {}
}

🥕 search_by_ingredient

Find meals that contain a specific ingredient.

Parameters:

  • ingredient (string): Name of the ingredient to search for

Example:

{
  "name": "search_by_ingredient",
  "arguments": {
    "ingredient": "chicken"
  }
}

💬 Usage Examples

Here are some example queries you can ask an AI assistant using this MCP server:

  • "Find me some chicken recipes"
  • "Get details for meal ID 52772"
  • "Give me a random meal suggestion"
  • "What meal categories are available?"
  • "Find meals that contain tomatoes"
  • "Show me Italian recipes"
  • "What are some vegetarian options?"

🏗️ Development

Project Structure

mealdb-mcp/
├── src/
│   └── index.ts          # Main MCP server implementation
├── build/                # Compiled JavaScript output
├── .cursor/
│   └── mcp.json         # Cursor IDE configuration
├── package.json         # Project dependencies and scripts
├── tsconfig.json        # TypeScript configuration
└── README.md           # This file

Available Scripts

Local Development:

  • npm run build - Compile TypeScript to JavaScript
  • npm run watch - Watch for changes and recompile
  • npm start - Start the MCP server
  • npm run prepare - Build the project (runs automatically on install)

Docker Commands:

  • npm run docker:build - Build Docker image
  • npm run docker:run - Run container from built image
  • npm run docker:dev - Start development environment with hot reload
  • npm run docker:prod - Start production environment
  • npm run docker:stop - Stop all containers
  • npm run docker:logs - View container logs
  • npm run docker:clean - Clean up containers and images

API Information

This server uses the free tier of TheMealDB API which provides:

  • ✅ Meal search by name
  • ✅ Meal details by ID
  • ✅ Random meal suggestions
  • ✅ Category listings
  • ✅ Ingredient-based filtering
  • ✅ Area/cuisine filtering

> Note: This server only uses free API endpoints. Premium features are not implemented.

🐳 Docker Deployment

Container Features

  • 🏗️ Multi-stage build for optimized production images
  • 🔒 Non-root user for enhanced security
  • 💓 Health checks for container monitoring
  • 🏔️ Alpine Linux base for minimal image size
  • 🔄 Development mode with hot reload support

Production Deployment

# Build and start in production mode
docker-compose up -d

# View logs
docker-compose logs -f mealdb-mcp-server

# Stop services
docker-compose down

Development Deployment

# Start development environment with hot reload
docker-compose -f docker-compose.dev.yml up

# Or use the npm script
npm run docker:dev

Environment Variables

Configure the container using environment variables:

NODE_ENV=production          # Environment mode
PORT=3000                   # Server port

🔒 Security

  • 🏠 The server runs locally and doesn't expose any network ports
  • 🌐 All API calls are made to the public TheMealDB API
  • 🔐 No sensitive data is stored or transmitted
  • 🔗 Uses secure HTTPS connections to external APIs

🤝 Contributing

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch
  3. ✏️ Make your changes
  4. 🧪 Test thoroughly
  5. 📤 Submit a pull request

📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

🙏 Acknowledgments

📞 Support & Help

🆘 Need Help?

We're here to help you get the most out of your MealDB MCP Server! If you encounter any issues or have questions, here are your options:

📧 Get Support:

  • 🐛 Found a bug? Open an issue in our GitHub repository
  • 💡 Have a feature request? We'd love to hear your ideas!
  • Need help with setup? Check our troubleshooting guide below or ask for help

🔗 Useful Links:

Common Issues & Solutions

🚨 "'docker-compose' is not recognized" Error:

If you see this error when running npm run docker:prod, it means Docker isn't installed on your system. You have two options:

  1. Install Docker Desktop (recommended for containerized deployment):
  • Download from https://www.docker.com/products/docker-desktop/
  • Install and restart your computer
  • Verify with docker --version and docker compose version
  1. Run locally without Docker (simpler setup):

``bash npm install npm run build npm start ``

🔧 Build or Runtime Issues:

  1. ✅ Check that Node.js 18+ is installed (node --version)
  2. ✅ Ensure all dependencies are installed (npm install)
  3. ✅ Verify the build completed successfully (npm run build)
  4. ✅ Check that your MCP client is configured correctly
  5. ✅ Make sure you're in the correct directory
  6. ✅ Try clearing node_modules and reinstalling: rm -rf node_modules package-lock.json && npm install

Still having trouble? Don't hesitate to reach out - we're happy to help! 🤝


Happy Cooking! 🍳

Made with ❤️ by Traves Theberge

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.