Trip1

com.trip1由 trip1.com 发布官方发布者v1.0.2更新于 Oct 24, 2026

Book hotels over MCP. Pay over x402. 3M+ properties in 200+ countries, USDC on Base.

已验证Streamable HTTP可网页运行位置与生活金融

概览

AI 生成的概览

远程 MCP 服务器,让助手搜索酒店、比较房型与价格,并通过 Base 上的 USDC(x402)或 CoinGate 完成预订付款。

可以做什么
  • 按目的地和日期搜索酒店,返回价格、图片和预订链接
  • 查看某家酒店的房型、价格、可退改状态和取消截止时间
  • 打开预填的预订表单,或用住客信息和价格 ID 在对话内直接下单
  • 通过 x402 钱包流程或 CoinGate 结账页面发起付款
  • 查询订单状态并轮询直到预订确认
适用场景
当用户想查找、比较或预订酒店,并愿意用加密货币付款时使用:可由 x402 钱包全自动支付,也可在 CoinGate 页面手动完成。适合需要把搜索、结账和订单跟踪串成一条流程的旅行预订助手。
运行要求
需要一个远程 Streamable HTTP 端点;无需账号、API 密钥或 OAuth。若要全自动付款,需要支持 x402 的钱包工具或带 EVM 私钥的 x402 SDK;否则需要浏览器完成 CoinGate 结账。仅支持 stdio 的客户端需加桥接。
安装前请注意
预订会产生真实费用:通过 x402 以 Base 上的 USDC 支付,或经 CoinGate 支付,且 x402 SDK 默认 1 美元上限需为酒店价格调高。住客信息(姓名、邮箱、电话、国籍)会被收集并发送给该服务。purchase_hotel 会创建住客档案和购物车,调用前应先与用户确认完整摘要。建议固定 x402 收款地址。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Trip1,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.trip1%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "trip1": {
      "type": "http",
      "url": "https://trip1.com/api/mcp"
    }
  }
}

README

[trip1 logo]

trip1 agent skills and MCP server

[smithery badge]

A plugin that lets agents book hotels on trip1 through the trip1 MCP server: about 3 million properties in 200+ countries, paid in USDC on Base over x402.

  • Endpoint: https://trip1.com/api/mcp (Streamable HTTP)
  • Auth: none, no account, API key or OAuth
  • Docs: https://trip1.com/agents
  • MCP Registry: com.trip1/mcp

Ships one skill, hotel-booking, which activates when the user wants to find, compare, or book a hotel.

What's in the box

  • .claude-plugin/plugin.json — Claude Code / Claude Desktop plugin manifest
  • .mcp.json — wires the trip1 remote MCP server so the plugin is self-contained
  • plugin.json and mcp.json — the same plugin in the Agent Plugins format, for Cursor and other compatible clients
  • skills/hotel-booking/SKILL.md — the skill that orchestrates the full booking flow
  • server.json — the official MCP Registry entry
  • llms-install.md — install instructions for agents such as Cline that set servers up themselves

Install

Claude Code

bash
/plugin marketplace add trivial-corp/agents/plugin install trip1@trivial-corp/agents

The MCP server and the skill come in together. Restart the session so Claude Code picks up the new MCP connection.

Claude Desktop

Two options.

As a local plugin. Download agents.zip from the latest release, then in Claude Desktop go to Customize → Personal plugins → Upload local plugin and drop the zip in.

As a connector. If you only want the MCP server without the skill, add the connector directly:

json
{  "mcpServers": {    "trip1": {      "type": "http",      "url": "https://trip1.com/api/mcp"    }  }}

Cursor, Windsurf, Cline

Add the server to the client's MCP config (~/.cursor/mcp.json for Cursor; MCP Servers → Configure → Remote Servers in Cline):

json
{  "mcpServers": {    "trip1": {      "type": "streamable-http",      "url": "https://trip1.com/api/mcp"    }  }}

Cursor also loads this repo as a plugin through plugin.json and mcp.json. Clients that only speak stdio can bridge with npx -y mcp-remote https://trip1.com/api/mcp.

VS Code

bash
code --add-mcp '{"name":"trip1","type":"http","url":"https://trip1.com/api/mcp"}'

Codex CLI, Gemini CLI, any SKILL.md-compatible agent

bash
npx skills add trivial-corp/agents

This installs the skill. Add the MCP server separately via your client's MCP config (same JSON as above).

ChatGPT

Search for trip1 in the ChatGPT apps directory. Or add it as a custom connector in Settings → Connectors → Add, pointing at:

https://trip1.com/api/mcp

The skill doesn't apply here; ChatGPT doesn't load SKILL.md files. The tool descriptions in the MCP server carry enough intent for ChatGPT to drive the flow on its own.

Cowork and other MCP-aware clients

Any client that speaks remote MCP (Streamable HTTP) can add trip1 as a connector. Paste the same mcpServers block above, or the bare URL https://trip1.com/api/mcp if the client accepts URLs directly.

Local development

bash
git clone https://github.com/trivial-corp/agentscd agentsclaude --plugin-dir .

What the skill does

The skill is instructions, not code. It tells the agent:

  • when a hotel-booking intent is present and the skill should activate
  • which trip1 MCP tools to call, in what order, with which arguments
  • how to handle the x402 payment handshake and the CoinGate fallback
  • how to report results and recover from rate drops, payment failures, and polling timeouts

Paying on the agent's behalf

For fully hands-off agent payments, load an x402-capable wallet MCP alongside trip1. The simplest option:

bash
npx @coinbase/payments-mcp

Paying from code with the x402 SDK

@x402/fetch refuses any payment above $1 by default, and a hotel booking always costs more, so raise the cap. Pin the recipient too, so the client only ever pays trip1:

ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";import { ExactEvmScheme } from "@x402/evm";import { privateKeyToAccount } from "viem/accounts";
const TRIP1_PAY_TO = "0x4eD818663D9040461Ee1f6E8f618Df1770dddDc1"; // see https://trip1.com/.well-known/x402.json
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY)) }],  spendControls: { maxAmountPerPayment: "$2000" },  policies: [(_version, reqs) => reqs.filter((r) => r.payTo.toLowerCase() === TRIP1_PAY_TO.toLowerCase())],});
const response = await fetchWithPayment(paymentUrl); // payment_url from purchase_hotel

Then poll get_order_details until ready is true.

Without a wallet

Call purchase_hotel with payment_service: "coingate". It returns a CoinGate checkout URL that a human finishes in a browser. CoinGate takes 120+ cryptocurrencies, including USDC.

Publishing to the MCP Registry

Bump version in server.json, then run mcp-publisher publish after mcp-publisher login dns --domain trip1.com. The DNS key lives with the trip1 team.

Releasing

Bump version in .claude-plugin/plugin.json and merge to main. The release.yml workflow tags vX.Y.Z, packages agents.zip (full plugin bundle) plus one zip per skill under skills/, and publishes them to a GitHub release.

To cut a release from an existing commit instead, push a tag manually: git tag -a vX.Y.Z -m "..." && git push origin vX.Y.Z. The same workflow handles it.

Links

License

MIT

来源:README.md,提交 62867ab

工具

6

search_hotels

Search Hotels

Search for available hotels by destination and dates. Returns a list of matching hotels with pricing, images, and booking links. Occupancy is fixed at 2 adults in one room and cannot be set. If the user asked for a different party size, tell them these prices are for 2 adults rather than presenting them as a quote for their group. Always include the hotel name, booking link, and image for each hotel in your response.

输入参数contextsort_bycheck_in必填check_out必填sort_orderdestination必填

get_hotel_details

Get Hotel Details

Get rooms and rates for a hotel. Pass the hotel id from search_hotels results. Returns rate IDs needed for purchase_hotel. Each rate states its refundability and, when refundable, the cancellation deadline — quote these rather than inferring refund terms. When prices_changed is true, the price search_hotels quoted for this hotel is no longer the one on offer — tell the user prices changed rather than presenting these rates as the same quote. When the user picks a rate, call start_checkout with its id next -- it opens the booking form, so do not ask for guest details in chat.

输入参数id必填context

start_checkout

Start Checkout

Open the booking form for a rate the user picked from get_hotel_details. Shows the stay and the price, and lets the user enter the guest details and choose how to pay. On the first call, pass the user's own details you already know -- from this conversation or your memory of them -- so the form opens prefilled, and only those: never invent or guess any; the form asks for the rest and the user reviews every field before booking. If the user has not stated a title, pass title_suggestion instead: your best guess from their first name, which the form labels as a suggestion. If the user submits the form, it books the room itself (purchase_hotel) and tells you the booking reference: do not call purchase_hotel again for it. Call this again with more details to refill the form.

输入参数emailphonetitlecontextrate_id必填last_namefirst_namenationalitypayment_servicetitle_suggestion

purchase_hotel

Purchase Hotel

Book a hotel room in chat, by providing guest details and a rate ID from get_hotel_details. Use start_checkout instead, which opens a booking form; call this only when the user says they cannot see or use that form. Creates a guest profile, adds the room to a cart, and initiates checkout. Ask the user how they want to pay before calling, and pass it as payment_service: 'x402' (USDC on Base, paid by an x402 payments tool you have) or 'coingate' (a checkout page the user pays in their browser, any crypto). If you have no x402 payments tool, use coingate. Returns a payment_url and the cart_url where the order can also be paid in a browser. The booking is confirmed once payment settles; poll get_order_details to check status.

输入参数email必填phone必填titlecontextrate_id必填last_name必填first_name必填nationalityprice_currencypayment_service

pay_order

Pay Order

Open CoinGate's checkout page for an unpaid CoinGate booking, so the user can pay in their browser. Pass the cart_id from purchase_hotel or the booking form. Where the client supports it, this asks the client to open the page for the user (URL elicitation); otherwise, and once the page has been offered, it returns the order with its payment link. Not for x402 bookings, which your payments tool pays.

输入参数cart_id必填context

get_order_details

Get Order Details

Get the current state of an order. Returns payment status, booking state, and item details. Poll until ready is true to confirm the booking is complete.

输入参数cart_id必填context

版本历史

2
  1. v1.0.2最新Sep 29, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分