Dianping MCP Server
Dianping MCP Server
这是一个通过本地浏览器登录会话搜索大众点评内容的 MCP server。大众点评的桌面端和移动端搜索会对匿名请求触发登录/安全验证,因此本项目不使用未经授权的接口,也不尝试绕过验证码或反爬机制;服务使用 Playwright 驱动本机 Chrome,并复用独立的持久化 profile。
快速开始
要求 Node.js 20+,并安装 Chrome、Edge 或 Chromium:
npm install
npm run login登录命令会打开浏览器。请完成大众点评登录和安全验证,然后回到终端按 Ctrl+C 退出。登录资料默认保存到 ~/.dianping-mcp/browser-profile。之后启动 MCP server:
npm run build
npm startMCP 客户端使用 stdio 连接,提供三个工具:
search_places:按城市、关键词、页码搜索商户,返回名称、评分、评价数、人均、地址和店铺 URL。get_place_details:按店铺 ID 或搜索结果里的 URL 获取店铺信息及精选评论。check_session:检查浏览器是否可用、是否需要登录或安全验证。
Related MCP server: dots-mcp
MCP 客户端配置
把下面的命令配置到支持 stdio MCP 的客户端,路径替换成仓库的绝对路径:
{
"mcpServers": {
"dianping": {
"command": "npm",
"args": ["--prefix", "/绝对路径/dp-mcp", "start"],
"env": {
"DP_CITY": "上海"
}
}
}
}也可以直接使用构建后的 dist/index.js:
{
"command": "node",
"args": ["/绝对路径/dp-mcp/dist/index.js"],
"env": { "DP_CITY": "上海" }
}配置项
变量 | 默认值 | 作用 |
|
| 浏览器登录资料目录 |
| 自动探测 | Chrome/Edge/Chromium 可执行文件 |
|
|
|
|
| MCP 搜索是否无头运行;登录请使用 |
|
| 两次页面请求的最小间隔 |
|
| 搜索和详情的内存缓存时间 |
|
| 页面导航和选择器超时 |
当前内置常用城市包括上海、北京、杭州、广州、南京、苏州、深圳、成都、重庆、天津、宁波、扬州、无锡、福州、厦门、武汉、西安、沈阳、大连、长沙、青岛和济南;其他城市可传大众点评城市 ID。
开发与验证
npm test
npm run check
npm run build页面结构或安全策略变化时,服务会返回明确的解析/验证错误。请降低调用频率,并遵守大众点评的服务条款、robots 规则和适用法律。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceProvides a remote browser session and MCP tools for restricted search and extraction on sites like XHS, Yelp, and TripAdvisor, with human-in-the-loop login.5Apache 2.0
- Flicense-qualityCmaintenanceEnables searching Xiaohongshu (小红书) content via dots.ai using a logged-in browser session, exposed as MCP tools.
- FlicenseAqualityCmaintenanceEnables querying Mega MGC Coffee store locations, menu items, and real-time stock (sold-out) status across all stores using the official app API.7
- Flicense-qualityBmaintenanceEnables AI agents to search Xianyu second-hand marketplace for product prices with automatic cookie detection.2
Related MCP Connectors
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Stealth scraping & search. Bypasses Cloudflare, DataDome & LinkedIn via Cyborg HITL approach.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qianwj/dp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server