餐厅搜索服务

基于位置服务的餐厅搜索和商场店铺搜索服务,提供周边餐厅搜索、随机推荐及商场内店铺查询功能。

  • by loplat
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 loplat/maat_mcp_server

使用说明

MAAT MCP餐厅查找器

提供美食店搜索和综合购物中心卖场搜索服务的remote MCP(Model Context Protocol)服务器。

主要功能

  • 搜索美食店:根据用户的位置搜索附近的美食店。
  • 随机推荐:根据目前的位置推荐随机美食店。
  • 搜索综合购物中心卖场:基于复合Malloplat id搜索内部卖场。

技术堆栈

  • Python 3.8+
  • FastMCP 0.4.1+
  • 谷歌地图API

安装方法

  1. 存储库克隆
git clone https://github.com/loplat/maat_mcp_server.git
cd maat_mcp_server
  1. 依赖性安装
pip install -r requirements.txt
  1. 设置环境变量 .env 创建文件并设置以下变量:
GOOGLE_MAPS_API_KEY=your_google_maps_api_key
IPLOCATION_BASE_URL=loplat_public_ip_location_base_url
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_HOST=loplat_db_host
DB_PORT=loplat_db_port
DB_NAME=loplat_db
DB_IP_TABLE=loplat_db_ip_table_name
DB_STORE_TABLE=loplat_db_store_table_name
DB_LAYER_TABLE=lloplat_db_layer_table_name

执行方法

python main.py

API端点

提示

  • 맛집 검색:美食搜索提示

工具

  • find_restaurants:美食搜索工具
  • recommend_random_restaurant:随机美食推荐工具
  • find_stores_in_complex:综合商城内卖场搜索工具

项目结构

maat_mcp_server/
├── main.py              # 메인 애플리케이션
├── requirements.txt     # 의존성 목록
└── maat_mcp/           # 핵심 패키지
    ├── api/            # API 클라이언트
    ├── handlers/       # 비즈니스 로직
    ├── services/       # tool 구현 로직
    └── util/           # 유틸리티 함수

如何设置claude_desktop_config

"restaurants_finder": {
	"command": "npx",
	"args": [
		"mcp-remote",
		"http://server-address/sse"
	],
  	"env": {
		"GOOGLE_MAPS_API_KEY": "{YOUR_GOOGLE_MAPS_API_KEY}"
		...
  	}
}