Back to Home
michaelgruczel icon

mcp-cooking-recipes-server-example

by michaelgruczel

Overview

An MCP server example for cooking recipe search and retrieval using a vector database (ChromaDB) and a relational database (PostgreSQL).

Installation

Run Command
mcp run mcp_tutorial_server.py

Environment Variables

  • POSTGRES_DB
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • ANONYMIZED_TELEMETRY

Security Notes

The application uses hardcoded database credentials (username, password, database name) in `load_data_db.py` and `mcp_tutorial_server.py`. Additionally, `load_data_db.py` contains a clear SQL injection vulnerability in its `INSERT` statement construction using string concatenation, and `mcp_tutorial_server.py` has a similar vulnerability in its `SELECT` statement if the `recipe_id` parameter can be manipulated.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens100
Stars0
Forks0
Last Update2025-11-28

Tags

MCPAIRecipesVectorDBPostgreSQL