home / mcp / ecogo travel mcp server

EcoGo Travel MCP Server

Travel booking - India MCP

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "alisajil-ecogotravel": {
      "command": "node",
      "args": [
        "/dist/mcp.js"
      ],
      "env": {
        "TRIPJACK_API_KEY": "YOUR_API_KEY_REPLACE"
      }
    }
  }
}

You have a TypeScript-based MCP server that exposes three core tools to search, book, and retrieve flight information via Tripjack APIs. It includes robust error handling and logging, and is designed to be queried by an MCP client to orchestrate flight-related workflows end-to-end.

How to use

You use an MCP client to interact with the EcoGo Travel MCP Server. The server exposes three tools that you can invoke in sequence to find the best flight, book it, and then retrieve your ticket information.

Search for flights to discover available options, then book the best option from the search results, and finally fetch the ticket details for your booking.

use_mcp_tool(
  server_name: "ecogoai",
  tool_name: "get_flight_data",
  arguments: {
    "departureCity": "DEL",
    "arrivalCity": "BOM",
    "travelDate": "2025-04-01",
    "adults": 1
  }
)
use_mcp_tool(
  server_name: "tripjack",
  tool_name: "book_best_flight",
  arguments: {
    "priceId": "[priceId from search results]",
    "passengers": {
      "adults": [
        {
          "firstName": "John",
          "lastName": "Doe",
          "title": "Mr"
        }
      ]
    },
    "contactInfo": {
      "email": "[email protected]",
      "phone": "9999999999"
    }
  }
)
use_mcp_tool(
  server_name: "tripjack",
  tool_name: "get_ticket_info",
  arguments: {
    "bookingId": "[booking ID from booking response]"
  }
)

How to install

Install prerequisites and run the server locally so you can start using the MCP tools to search, book, and retrieve tickets.

# Prerequisites
# - Node.js (LTS) and npm
node -v
npm -v

# Get the project (example flow; insert your actual repo URL)
git clone <repository-url>
cd ecogotravel

# Install dependencies
npm install

# Build the project (if applicable)
npm run build

# Run the MCP server (example start command from the config)
node dist/mcp.js

Additional content

Configuration details are provided below to ensure the server runs with the necessary environment variables and command setup. You will need an API key for TripJack to access flight search, booking, and ticket information endpoints. Treat the API key as a secret and provide it to the server at runtime.

Environment variables to configure include the TripJack API key used by the server. The recommended runtime configuration sets this key through the server’s environment when you start the process.

Example startup configuration mirrors the documented runtime behavior and ensures the server can launch the MCP command handler for the EcoGo AI workflow.

Available tools

get_flight_data

Search for available flights based on departure, destination, travel date, and passenger count. Returns matching flight options with pricing and availability.

book_best_flight

Book the preferred flight using a price identifier from the search results, along with passenger details and contact information.

get_ticket_info

Retrieve booking details and ticket information for a previously created booking using the booking ID.