What is Diningcode MCP Server?
Diningcode MCP Server is a project that provides a simple API to fetch restaurant data from Diningcode.com, allowing users to access restaurant information without the need for web scraping.
How to use Diningcode MCP Server?
To use the Diningcode MCP Server, ensure you have Python 3.6 or higher, install the required dependencies, and run the server script. You can then make API calls to search for restaurants or get details about specific ones.
Key features of Diningcode MCP Server?
- Find restaurants: Search by location, food type, or keywords.
- Get details: Access comprehensive information about restaurants, including contact info, ratings, menu items, and reviews.
Use cases of Diningcode MCP Server?
- Finding restaurants based on specific criteria like location or cuisine.
- Retrieving detailed information about a restaurant for reviews or recommendations.
- Integrating restaurant data into applications or services that require dining information.
FAQ from Diningcode MCP Server?
- Can I use this API for commercial purposes?
Yes, but please respect the terms of use of Diningcode.com.
- What happens if Diningcode changes their website?
The API may break until it is updated to accommodate the changes.
- Is there a limit to how often I can query the API?
Yes, please be considerate of the load on Diningcode's servers.
Diningcode MCP Server
This project helps you easily fetch restaurant data from Diningcode.com through a simple API.
What it does
Gives you access to Diningcode.com's restaurant information without having to scrape the website yourself. It handles all the messy parts of extracting data from their website.
Main features
- Find restaurants: Search by location, food type, or keywords
- Get details: Pull comprehensive info about specific restaurants including:
- Contact info and location
- Ratings and popularity
- Menu items with prices
- Recent reviews
- Special features (parking, etc.)
Setup
- Make sure you have Python 3.6+
- Install dependencies: -pip install pymcp requests beautifulsoup4
- Drop the main script into your project
Quick start
Run the server:
python diningcode_mcp.py
Using the API
Finding restaurants
Search for restaurants in 포승
results = search_restaurants("포승 맛집")
Search by food type
results = search_restaurants("간장게장")
Getting restaurant details
Get full details about a specific restaurant
details = get_restaurant_details("8aPdAkyxppRu")
Sample responses
Restaurant search returns:
[ { "id": "8aPdAkyxppRu", "name": "터프이너프", "address": "경기도 평택시 포승읍 도곡리 942-5", "road_address": "경기도 평택시 포승읍 포승향남로 11", "phone": "0507-1349-9597", "category": "커피, 로스터리카페", "rating": 4.6, "review_count": 21, "image": "https://d12zq4w4guyljn.cloudfront.net/300_300_20250108074811986_photo_168bea41924c.jpg", "link": "https://www.diningcode.com/profile.php?rid=8aPdAkyxppRu", "keywords": ["차모임", "무료주차", "야외테라스"] }, // More restaurants... ]
Restaurant details includes:
{ "id": "8aPdAkyxppRu", "name": "터프이너프", "address": "경기도 평택시 포승읍 포승향남로 11", "phone": "0507-1349-9597", "hours": "매일 11:00-21:00", "rating": "4.6", "menu": [ {"name": "아메리카노", "price": "5,000원"}, {"name": "카페라떼", "price": "5,500원"} ], "reviews": [ { "content": "인테리어가 훤칠않고 빈티지함...", "date": "55년 전" } ] }
Heads up
- If Diningcode changes their website, this might break until updated
- Be cool about how often you hit their site
- The code parses both HTML and embedded JSON from their pages
License
MIT License