Skip to content
trvl
Install guide · Cursor

Install trvl for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "mikkoparkkola-trvl": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/mikkoparkkola/trvl:1.28.5"      ],      "env": {        "TRVL_MCP_TOKEN": "YOUR_TRVL_MCP_TOKEN",        "TRVL_MCP_READ_TOKEN": "YOUR_TRVL_MCP_READ_TOKEN",        "TRVL_MCP_WRITE_TOKEN": "YOUR_TRVL_MCP_WRITE_TOKEN",        "TRVL_MCP_OAUTH_INTROSPECTION_URL": "",        "TRVL_MCP_OAUTH_CLIENT_ID": "",        "TRVL_MCP_OAUTH_CLIENT_SECRET": "YOUR_TRVL_MCP_OAUTH_CLIENT_SECRET",        "TRVL_MCP_OAUTH_AUDIENCE": "",        "TRVL_MCP_TOOL_MODE": "",        "TRVL_MCP_TOOL_TIMEOUT": "",        "AFKLM_KEY": "YOUR_AFKLM_KEY",        "AFKLM_OP_REF": "",        "AFKLM_KEYCHAIN_SERVICE": "",        "AFKL_KLM_COOKIES": "YOUR_AFKL_KLM_COOKIES",        "SERPAPI_KEY": "YOUR_SERPAPI_KEY",        "TRAVELPAYOUTS_TOKEN": "YOUR_TRAVELPAYOUTS_TOKEN",        "TRANSAVIA_API_KEY": "YOUR_TRANSAVIA_API_KEY",        "TICKETMASTER_API_KEY": "YOUR_TICKETMASTER_API_KEY",        "FOURSQUARE_API_KEY": "YOUR_FOURSQUARE_API_KEY",        "OPENTRIPMAP_API_KEY": "YOUR_OPENTRIPMAP_API_KEY",        "GEOAPIFY_API_KEY": "YOUR_GEOAPIFY_API_KEY",        "DISTRIBUSION_API_KEY": "YOUR_DISTRIBUSION_API_KEY",        "SKYSCANNER_API_KEY": "YOUR_SKYSCANNER_API_KEY"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json