行程管理MCP服务

mcp-server-tripit 是一个将 TripIt API 暴露为 MCP 服务器的行程管理工具,支持查询、创建、更新和删除行程,管理航班、酒店、租车、活动和文档,适用于通过 Claude 等 AI 助手进行旅行规划与行程管理。

  • by dvcrn
  • TypeScript
  • 本地部署
  • 8 星标
  • 更新于
在 GitHub 查看 dvcrn/mcp-server-tripit

使用说明

mcp-server-tripit

mcp-server-tripit exposes the TripIt API as an MCP server.

It is built on top of the tripit-cli project and uses the tripit package to access the full TripIt API.

Deploy this server directly to MCP Nest

Install

Run it directly with:

npx -y mcp-server-tripit

Usage with Claude

Add it to your MCP configuration:

{
  "mcpServers": {
    "tripit": {
      "command": "npx",
      "args": ["-y", "mcp-server-tripit"],
      "env": {
        "TRIPIT_USERNAME": "your-tripit-username",
        "TRIPIT_PASSWORD": "your-tripit-password"
      }
    }
  }
}

If you want to supply the optional client id too:

{
  "mcpServers": {
    "tripit": {
      "command": "npx",
      "args": ["-y", "mcp-server-tripit"],
      "env": {
        "TRIPIT_USERNAME": "your-tripit-username",
        "TRIPIT_PASSWORD": "your-tripit-password",
        "TRIPIT_CLIENT_ID": "your-tripit-client-id"
      }
    }
  }
}

Configuration

The server reads TripIt credentials from environment variables:

Required:

  • TRIPIT_USERNAME
  • TRIPIT_PASSWORD

Optional:

  • TRIPIT_CLIENT_ID

If TRIPIT_CLIENT_ID is set, it is passed through to the tripit client. If it is omitted, the server does not pass it.

If you use fnox, you can also run it like this:

fnox x -- npx -y mcp-server-tripit

What it can do

Built on top of dvcrn/tripit-cli, this MCP server exposes the TripIt API for common travel workflows, including:

  • listing and fetching trips
  • creating, updating, and deleting trips
  • managing hotel reservations
  • managing flights
  • managing transport segments
  • managing activities
  • attaching and removing documents from supported TripIt objects

Car rentals and preserving reservation fields

Use tripit_cars_get, tripit_cars_create, tripit_cars_update and tripit_cars_delete. Generic document tools also accept type: "car" and support car auto-detection. Hotel updates accept phone and displayName; car updates accept displayName.

Hotel/car edits preserve omitted fields, custom names and attachments. Empty strings leave existing values unchanged; null explicitly clears a field. Trip association cannot be cleared. Unknown returned fields cause the library to reject an update rather than lose data. The library serializes hotel/car edits and document changes within one process. Edits in another process or the TripIt app can still race.

Car support builds on John P White (@diverdown1964)'s PR #2.