Travel Realtime Mcp 标志

Travel Realtime Mcp

社区
Kkkirito-123
travel-realtime-mcp

处理有时效性的旅行需求:使用内置实时旅行查询功能,或连接 MCP 服务器查询火车票、航班、地图、当地地点、天气、酒店和路线规划。优先采用快捷回答方式:先调用内置 travel_realtime 工具查询 12306/Open-Meteo;然后使用现有的 mcp__* 工具;如果都没有,则提出一个安全可行的选项,并在获得确认后再安装。

Add to TypingMind

概览

发布者Kkkirito-123
代码仓库ZLAgent
技能名称travel-realtime-mcp
星标数
33
复刻数
5
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 Kkkirito-123 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Travel Realtime Mcp AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Kkkirito-123/ZLAgent/tree/main/workspace/skills/travel/travel-realtime-mcp
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kkkirito-123/ZLAgent.git /tmp/ZLAgent
mkdir -p .claude/skills
cp -r /tmp/ZLAgent/workspace/skills/travel/travel-realtime-mcp .claude/skills/travel-realtime-mcp
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Travel Realtime Mcp,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Travel Realtime Mcp。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Travel Realtime Mcp 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

travel-realtime-mcp

Overview

Use this skill when the user wants fresh travel data rather than a generic itinerary: current train tickets, flight prices, hotel availability, local weather, map routes, nearby places, or airport/route status.

This skill is the tool-driven complement to travel-guide: travel-guide is optimized for fast streaming, knowledge-based chunks; this skill is for tool/MCP-backed live lookups and should not invent realtime numbers.

When to Use

Use this skill for:

  • Chinese railway / 12306 ticket availability, train times, or station-to-station options.
  • Flight search, flight prices, transfer routes, flight number status, airport weather.
  • Google Maps / Places / route planning / nearby food / route duration / timezone / air quality.
  • Hotel price or availability lookups.
  • User explicitly asks to install, find, or use a travel MCP.

Do not use this skill for a generic "三日游攻略" / "去哪玩" request with no realtime requirement. Let travel-guide answer those quickly with streaming sections.

Candidate MCP Servers

1. 12306-mcp

Best for China railway ticket search.

  • Source: Joooook/12306-mcp
  • Install shape:
json
{
  "name": "rail_12306",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "12306-mcp"],
  "description": "China railway 12306 ticket search"
}
  • API key: none shown in README.
  • Default permission: keep tools confirm until inspected.

2. Google Maps MCP via @cablate/mcp-google-map

Best for places, nearby search, directions, distance matrix, route planning, weather, air quality, timezone, and local route reasoning.

  • Source: cablate/mcp-google-map
  • Install shape:
json
{
  "name": "google_maps_travel",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "@cablate/mcp-google-map", "--stdio"],
  "env": {
    "GOOGLE_MAPS_API_KEY": "<user-provided-key>",
    "GOOGLE_MAPS_ENABLED_TOOLS": "maps_geocode,maps_search_places,maps_place_details,maps_directions,maps_distance_matrix,maps_weather,maps_search_nearby,maps_plan_route"
  },
  "description": "Google Maps places routes weather"
}
  • API key: requires GOOGLE_MAPS_API_KEY; Places API and Routes API should be enabled.
  • Default permission: keep confirm unless the user explicitly authorizes read-only maps calls as safe.

3. Travel Planner MCP via @gongrzhe/server-travelplanner-mcp

Best for a smaller Google Maps travel-planning surface: places, place details, routes, timezone.

  • Source: GongRzhe/TRAVEL-PLANNER-MCP-Server
  • Install shape:
json
{
  "name": "travel_planner_maps",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "@gongrzhe/server-travelplanner-mcp"],
  "env": {
    "GOOGLE_MAPS_API_KEY": "<user-provided-key>"
  },
  "description": "Travel planner maps places routes"
}
  • Tools advertised by README: searchPlaces, getPlaceDetails, calculateRoute, getTimeZone.
  • Prefer this over the larger Google Maps MCP when the user only needs place search and routing.

4. Variflight MCP

Best for China/international flight data, flight number lookup, transfer search, realtime aircraft location, airport weather, and flight prices.

  • Source: variflight/variflight-mcp
  • Install shape:
json
{
  "name": "variflight",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "@variflight-ai/variflight-mcp"],
  "env": {
    "VARIFLIGHT_API_KEY": "<user-provided-key>"
  },
  "description": "Variflight flight search status prices"
}
  • API key: requires VARIFLIGHT_API_KEY.
  • Default permission: keep confirm; flight/location queries can reveal travel intent.

5. Flight/hotel search pack

Use only if the user explicitly wants flight + hotel search and can provide third-party API keys.

  • Source: RikGmee/searchAPI-mcp
  • Capabilities seen in README: search-flights, search-hotels, today.
  • Requires Booking.com/RapidAPI key and often Google Maps API key.
  • Treat as a second-stage option, not the default quick path.

6. Full travel assistant MCP ecosystem

Use only when the user wants a larger travel-agent stack with flights, hotels, events, weather, geocoding, currency, and budget orchestration.

  • Source: skarlekar/mcp_travelassistant
  • Capabilities: search_flights, search_hotels, search_events, get_weather_forecast, geocode_location, calculate_distance, convert_currency.
  • Requires multiple local server directories plus keys such as SerpAPI. This is powerful but heavier than ZLAgent's quick-reply goal.

Steps

  1. Classify the request:

    • Generic plan: answer with travel-guide instead.
    • Realtime data: continue here.
  2. For China rail / weather, call travel_realtime first:

    • action="bundle" when the user asks a mixed request such as "上海到北京 4 天,火车票和天气".
    • action="rail_12306" for train availability / 12306 / 高铁余票.
    • action="weather_forecast" for local weather / temperature / rain / wind parameters.
  3. Check for existing matching MCP tools in the visible tool list:

    • mcp__rail_12306__* for trains.
    • mcp__google_maps_travel__* or mcp__travel_planner_maps__* for maps/routes/places/weather.
    • mcp__variflight__* for flights.
    • If present, call the existing tool and answer in a short IM format.
  4. If no matching tool exists, do not fabricate realtime data. Propose at most two candidates:

    • One fastest/smallest candidate.
    • One fuller candidate if clearly useful.
  5. If a key is required, ask for the env var name only; never ask the user to paste a secret into a public group chat. Tell them it will be passed as the MCP subprocess environment.

  6. After the user chooses and provides/authorizes credentials, call mcp_manage(action="add", ...) using the JSON shape above. The tool itself will trigger IM confirmation.

  7. After install, call mcp_manage(action="inspect", name="...") and verify tools are listed. If connection failed, remove the server and explain the failure.

  8. Once connected, answer the original travel question using the newly available MCP tool.

Quick Reply Formats

No MCP installed yet

text
这个问题需要实时数据,我不能编。
可接:
1. 12306-mcp:查高铁/火车余票,无需 API key。
2. Google Maps MCP:查路线/附近/天气,需要 GOOGLE_MAPS_API_KEY。
你选哪个?我会走确认安装。

Tool lookup succeeded

text
🚄 实时结果
- 最推荐:<车次/航班/路线> — <时间> — <价格/耗时>
- 备选:<...>

✅ 我的建议:<一句话>

Tool lookup failed

text
实时查询失败:<短原因>
我可以改用离线攻略先给路线骨架,或帮你换一个 MCP 数据源。

Pitfalls

  • Do not mix streaming travel-guide with MCP calls. Streaming sections are optimized for speed and may not call tools.
  • Do not install every candidate. Install the smallest server that answers the current request.
  • Do not mark tools safe by default. External APIs can cost money and reveal travel intent.
  • Do not invent hotel prices, flight prices, train availability, weather, or live route times.
  • Do not pass API keys unless the user explicitly supplied and authorized them.

常见问题

Travel Realtime Mcp AI 技能有什么作用?

处理有时效性的旅行需求:使用内置实时旅行查询功能,或连接 MCP 服务器查询火车票、航班、地图、当地地点、天气、酒店和路线规划。优先采用快捷回答方式:先调用内置 travel_realtime 工具查询 12306/Open-Meteo;然后使用现有的 mcp__* 工具;如果都没有,则提出一个安全可行的选项,并在获得确认后再安装。

为什么在 TypingMind 中使用 Travel Realtime Mcp?

因为您只需安装一次,就能搭配任何模型使用。Travel Realtime Mcp 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Travel Realtime Mcp?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Kkkirito-123/ZLAgent/tree/main/workspace/skills/travel/travel-realtime-mcp。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Travel Realtime Mcp?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Travel Realtime Mcp 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Travel Realtime Mcp 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Travel Realtime Mcp AI 技能免费吗?

是的。Kkkirito-123 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇