MCP

Connect Trae to VariFlight MCP

Set up VariFlight MCP in Trae: account requirements, server configuration, authorization, and a flight-query example to verify your connection.

Before you start

Sign in to VariFlight MCP, obtain your MCP Key in the console, and replace YOUR_MCP_KEY in the configuration. Available tools and data depend on your account permissions and the client’s MCP support. Keep the key private.

Review tools and access requirements →

Trae

Configure a remote MCP server in Trae IDE

Setup steps

  1. 1Open Trae settings and go to MCP / Tools.
  2. 2Choose manual setup or raw configuration and paste the complete universal JSON.
  3. 3Refresh the chat and confirm variflight-mcp is enabled in the tool list.
[ JSON configuration ]

Trae: Settings → MCP → Add manually → Raw configuration (JSON).

{
  "mcpServers": {
    "variflight-mcp": {
      "url": "https://c-gw.variflight.com/chat_message/mcp/api",
      "headers": {
        "Authorization": "Bearer YOUR_MCP_KEY"
      }
    }
  }
}
[ Verification ]
# Ask in Trae:
"Find and compare flights from Beijing to Shanghai tomorrow."
# Flight candidates and status summaries indicate a successful connection.

Verify the connection

Enable the server, start a new conversation, and ask the verification question above. Check that a VariFlight tool was actually called and that the result identifies the flight date and data source. If tools are missing, review the endpoint, Authorization header, account permissions, and your client’s configuration. An empty result is not proof that no flight exists.