A Model Context Protocol (MCP) server that provides access to Trendyol Yemek's restaurant and menu data. This MCP allows AI assistants to search for restaurants, filter by various criteria, and retrieve detailed menu information from Turkey's popular food delivery platform.
npx trendyol-yemek-mcp{
"mcpServers": {
"trendyol-yemek": {
"command": "npx",
"args": ["trendyol-yemek-mcp"]
}
}
}- Restaurant Discovery: Find restaurants by location with advanced filtering
- Restaurant Search: Search restaurants by name within specific areas
- Menu Scraping: Retrieve complete menus with prices, descriptions, and images
- Comprehensive Filtering: Filter by cuisine type, rating, delivery time, payment methods, and more
- Turkish Market Focus: Optimized for Turkish food delivery market with local cuisine categories
Retrieves restaurants filtered by location and various criteria.
Parameters:
latitude&longitude(required): Geographic coordinatespageSize&page: Pagination controlsmutfak(optional): Array of cuisine types (see supported cuisines below)sortType(optional): Sorting optionsDEFAULT: Default sortingRESTAURANT_SCORE: Sort by restaurant scoreRESTAURANT_DISTANCE: Sort by distanceRESTAURANT_RATING_COUNT: Sort by rating countRESTAURANT_NAME: Sort alphabetically
averageRatingScore(optional): Filter by rating ('4.5', '4.0')paymentMethods(optional): Payment method filtersONLINE_CARD,MULTINET,SODEXO,EDENRED,SETCARD
minBasketPrice(optional): Minimum order amount ('200', '300', '400' TL)averageDeliveryTime(optional): Delivery time filters ('20', '30', '40' minutes)closestRestaurantDistance(optional): Distance filters ('0.5', '1', '2' km)
Returns: List of restaurants with details including name, rating, delivery time, minimum order, and more.
Searches for restaurants by name/query within a specific location.
Parameters:
latitude&longitude(required): Geographic coordinatessearchQuery(required): Text to search for restaurant namespageSize&page: Pagination controls
Returns: Matching restaurants with search results.
Scrapes the complete menu and products from a specific restaurant.
Parameters:
restaurantId(required): Numeric ID of the restaurantlatitude&longitude(required): Geographic coordinates (for location context)
Returns: Complete menu organized by categories, including:
- Product names, descriptions, and prices
- Discounted prices (if available)
- Product images
- Category names and product counts
The system supports 25 different cuisine categories:
Kebap- Traditional Turkish kebabsPideLahmacun- Turkish flatbreadsMantiMakarna- Dumplings and pastaEvYemekleri- Home-style Turkish dishesBorek- Turkish pastriesCigKofte- Raw meatballsMeze- Turkish appetizersCorba- SoupsTantuni- Turkish wraps
Burger- BurgersPizza- PizzaUzakDogu- Far Eastern cuisineDunyaCafe- World cuisineSteak- Steak houses
Doner- Doner kebabKofte- MeatballsTavuk- Chicken dishes
KahveIcecek- Coffee and beveragesTatli- DessertsDondurma- Ice cream
SalataSaglik- Salads and healthy foodKahvalti- BreakfastTostSandvic- Toasts and sandwichesSokakLezzetleri- Street foodPastaneFirin- Bakeries
- API Integration: Uses Trendyol's internal APIs (
api.tgoapis.com) - Web Scraping: Puppeteer-based scraping for dynamic menu content
- Data Validation: Comprehensive Zod schemas for type safety
- Error Handling: Proper error responses with meaningful messages
- Localization: Supports Turkish language and currency (TL)
- Headless Browser: Automated menu scraping with proper cookie management
If you want to use this MCP server with an AI assistant that supports MCP:
# Run directly without installing globally
npx trendyol-yemek-mcp# Install the published package globally
npm install -g trendyol-yemek-mcp
# Run the MCP server
trendyol-yemek-mcpNote: The package is available on npm as trendyol-yemek-mcp. Using npx is recommended for testing or one-time usage as it doesn't require global installation.
# Clone the repository
git clone <repository-url>
cd trendyol-yemek-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run the MCP server
npm startTo use this MCP server with an MCP client (like Claude Desktop, etc.), add it to your MCP configuration:
{
"mcpServers": {
"trendyol-yemek": {
"command": "trendyol-yemek-mcp",
"args": []
}
}
}@modelcontextprotocol/sdk: MCP server implementationaxios: HTTP client for API requestspuppeteer: Web scraping for restaurant menuscheerio: HTML parsingzod: Schema validationuuid: Unique identifier generation
The MCP server integrates with Trendyol's internal APIs:
- Base API:
https://api.tgoapis.com/web-discovery-apidiscovery-santral - Restaurant API:
https://api.tgoapis.com/web-restaurant-apirestaurant-santral
This project is currently in development. The core functionality is implemented and functional, but additional features and improvements are planned.
ISC License