
携程酒店比价 Skill
Skill用 Playwright MCP 操控携程查酒店价格的 Agent Skill,支持把窗口移到屏幕外的无感模式。走的是浏览器登录态,不是官方接口,页面改版会失效。
🏨 ctrip-hotel-price · 携程酒店查价
AI Skill:通过 Playwright MCP 操控真实浏览器,在携程搜索任意地点周边酒店并提取双床房价格。
🔍 支持搜索城市、景区、地标等任意目的地 · ⭐ 舒适及以上档次(3~5钻全选) · 🛏️ 双床房精准筛选 · 📍 位置子区域百分比筛选 · 👻 无感模式
AI Skill for querying hotel prices on Ctrip via Playwright MCP with real browser automation. Search by city, scenic spot, or any location.
它能做什么 / What it does
- 🔍 按城市/景区/地标搜索酒店 / Search by city, scenic spot, or any POI
- ⭐ 同时筛选 3~5 钻(舒适/高档/豪华)/ Multi-select star ratings (3-5)
- 🛏️ 只看双床房 / Twin room filter
- 📍 位置子区域百分比分析(如「景区入口 15%」)/ Location sub-area percentage breakdown
- 💰 提取实时双床房价格 / Extract real-time twin room prices
- 👻 无感操控,不影响日常浏览器 / Invisible mode, zero interference
为什么不用 API / Why not an API
携程没有对个人开放的酒店价格 API。本 Skill 通过浏览器自动化,让 AI 像人一样操作携程网站,拿到完全相同的实时数据。
Ctrip has no public hotel price API. Use browser automation instead.
关键改进 / Key Features
| 特性 | 说明 |
|---|---|
| 任意目的地 | 「太白山」→ 自动解析为景区 District,不需手动选城市 |
| 1920×1080 窗口 | 确保携程筛选栏完整渲染,避免 aria-hidden 阻挡 |
| 位置百分比弹窗 | 点「位置 > 更多」查看各子区域酒店占比,精准锁定登山入口附近 |
| 独立配置目录 | --user-data-dir=C:\temp\edge-debug,与日常 Edge 完全隔离 |
| 星级多选 | 依次点击 3/4/5 钻,携程默认多选,覆盖全档次 |
依赖 / Requirements
- Playwright MCP
- Chrome 或 Edge / Chrome or Edge
- 携程账户(免费,扫码登录一次即可)/ Ctrip account (free)
快速开始 / Quick Start
# 无感模式(推荐)/ Invisible mode
powershell -Command "Stop-Process -Name msedge -Force -ErrorAction SilentlyContinue"
powershell -Command "Start-Process 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' -ArgumentList '--remote-debugging-port=9222','--user-data-dir=C:\temp\edge-debug','--disable-background-mode','--no-first-run','--window-size=1920,1080','--window-position=-2000,0','https://www.ctrip.com'"
# 普通模式(首次登录/录屏)/ Normal mode
powershell -Command "Stop-Process -Name msedge -Force -ErrorAction SilentlyContinue"
powershell -Command "Start-Process 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' -ArgumentList '--remote-debugging-port=9222','--user-data-dir=C:\temp\edge-debug','--disable-background-mode','--no-first-run','--window-size=1920,1080','https://www.ctrip.com'"
完整流程见 SKILL.md。
演示 / Demo
AI 全程操控携程:搜索 → 星级筛选 → 双床房筛选 → 位置百分比分析 → 查看实时价格。
许可 / License
MIT
相關資源

麦当劳中国 MCP Server
MCP麦当劳中国官方 MCP Server,查营养成分、附近门店与菜单,官方远程端点 mcp.mcd.cn 需要授权后拿 Bearer Token。
M-China/mcd-mcp-server252
飞常准 Variflight MCP
MCP飞常准官方 MCP Server,查航班实时动态、机场起降与航线准点率,适合给出行类 agent 配上航班数据。用飞常准 API Key。
variflight/variflight-mcp34
途牛 MCP CLI
CLI途牛官方把开放平台的 MCP 服务封装成的命令行工具,用 Shell 命令调门票、酒店、机票、火车票与邮轮接口,方便本地调试和脚本集成。鉴权用请求头里的 apiKey。
tuniucorp/tuniu-cli9
Human Review
Skill用 npx human-review 在浏览器里打开 agent 写的 HTML、Markdown 文件或本地开发页面,用户可直接改字、选中文字留评论,点发送后 agent 一次收到全部修改与评论并应用到源文件。适合评审方案、报告、草稿与落地页。
petergyang/human-review1.5k
X Article Publisher
Skill把写好的 Markdown 长文一键排进 X(Twitter)Articles 编辑器:自动处理标题、加粗、链接、封面和正文配图位置,表格与 Mermaid 图转成图片,只保存草稿、不会自动发布。需要 X Premium Plus 账号、Playwright MCP 和 Python(macOS / Windows)。
wshuyi/x-article-publisher-skill874
last30days
Skill按话题并行检索 Reddit、X、YouTube、Hacker News、Polymarket 等平台近 30 天的讨论,按互动量打分并汇总成简报,适合市场调研与会前功课。需要 Python 3.12+,部分来源需 API Key。
mvanhorn/last30days-skill71.6k