Back to Browse

Travel Assistant MCP Server

by RkZ 10
Developer ToolsUse Caution4.3MCP RegistryLocal
Free

Server data from the Official MCP Registry

Indian domestic flights: live fares, flight status, fare rules and DGCA rights, with citations

About

Indian domestic flights: live fares, flight status, fare rules and DGCA rights, with citations

Security Report

4.3
Use Caution4.3High Risk

Valid MCP server (1 strong, 2 medium validity signals). 8 known CVEs in dependencies (1 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry.

9 files analyzed Ā· 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

SerpApi key for live fares (search_flights, get_booking_options). Free plan: serpapi.comRequired

Environment variable: SERPAPI_KEY

Optional AirLabs key: turns on live flight status (get_flight_status, get_route_departures). Free plan: airlabs.coRequired

Environment variable: AIRLABS_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "india-flights-mcp": {
      "command": "uvx",
      "args": [
        "india-flights-mcp==0.1.1"
      ],
      "env": {
        "SERPAPI_KEY": "your-serpapi-key-here",
        "AIRLABS_API_KEY": "your-airlabs-api-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Travel Assistant

PyPI Licence: MIT

A personal AI assistant for Indian domestic flights. It searches live fares, answers fare-rule and passenger-rights questions with citations, remembers your preferences, and is measured by an eval suite. It's built with MCP, RAG, the Claude Agent SDK and deterministic evals.

šŸ“š Docs: docs/README.md: architecture, design decisions, setup, operations.

Use it in Claude

The MCP server is published on its own as india-flights-mcp. Add it to Claude Desktop, Claude Code or any other MCP client, and Claude gets the fare search, fare-rule and passenger-rights search with citations, and saved preferences. It runs on your computer with your own free SerpApi key (an AirLabs key for live flight status is optional).

This is separate from the web app further down. The web app is my own agent (Claude Agent SDK, guardrails in code, its own UI and evals) and runs from a checkout of this repo. The package is just the server: your MCP client is the agent, and you don't need this repo.

WayHow
Claude Desktop, one clickDownload india-flights-mcp-0.1.0.mcpb from the v0.1.0 release and open it. Claude asks for your SerpApi key and, optionally, your AirLabs key
Any MCP client, with uvCommand uvx, args ["india-flights-mcp"], keys in env (config for Claude Desktop). Claude Code: claude mcp add india-flights --scope user --env SERPAPI_KEY=your-key -- uvx india-flights-mcp
MCP RegistryListed as io.github.rkZ-10/india-flights-mcp, for clients and directories that install from the registry

Then build the policy index once with uvx --from india-flights-mcp travel-rag ingest (from 0.1.1 you can also ask Claude to build it). IndiGo, Air India, Air India Express and SpiceJet pages have to be saved from your browser; uvx --from india-flights-mcp travel-rag save-pages walks you through them. Full guide: mcp-server/README.md (also the PyPI page).

See it in action

A real run in the web UI: "Cheapest flight to Chennai on Oct 15", with saved preferences (home HYD, nonstop, 05:00–10:00, prefers IndiGo).

1. Preferences: pick airports and airlines by name; every search uses them

Preferences panel

2. Live tool activity, preferences applied, shortlist and fare rules with sources

Chat answer

The "Claude login" badge shows what the agent runs on: your Claude login when one is found on your computer, otherwise an Anthropic API key you enter (details). Fees are quoted for the basic fare type ("if booked as Saver"), never a pricier one.

3. Flight cards filled from the real search result, with fare expiry

Flight cards

4. "See booking options": airline direct first, then travel sites, with link expiry

Booking options

5. "Book on IndiGo" opens the airline's page with 6E 243 already selected

IndiGo booking page

Booking and payment happen on the seller's site. The assistant never books or pays.

Components

FolderWhat it doesBacked by
mcp-server/10 MCP tools: flight search, booking options, day-of-travel status (optional AirLabs key), policy search and index build, preferences, quota usageSerpApi (Google Flights) Ā· AirLabs Ā· SQLite
rag/Official IndiGo, Air India, Akasa and DGCA pages → hybrid retrieval with citations and freshness checksSQLite FTS5 + local bge-small embeddings (RRF)
agent/Trip planner: preferences → search → fare rules and DGCA rights → cited recommendation, with guardrails enforced in codeClaude Agent SDK
ui/Browser chat with live tool activity, flight cards with "Book on IndiGo ↗" redirects and expiry countdowns, and a preferences panelReact + Vite + Tailwind, FastAPI
evals/23 cases scoring tool use, arguments, citations, and whether every ₹ amount came from a toolReal agent runs + deterministic checks
agent/…/kafkaOptional event stream: every run's tool events and trace in one retained log, with four consumer groups (trace writer, eval re-scorer, quota tally, tail), replay from offset 0 and a dead-letter queue. Off unless KAFKA_BOOTSTRAP is setKafka (KRaft, Docker) + confluent-kafka

Quick start (Windows)

This runs the whole project from a checkout: the agent, the web UI and the evals. To use only the MCP server in Claude, see Use it in Claude instead.

copy .env.example .env      # add SERPAPI_KEY and AIRLABS_API_KEY
cd mcp-server; python -m uv sync --extra dev; python -m uv run travel-rag ingest
cd ..\agent;   python -m uv sync --extra dev
python -m uv run travel-agent ask "Cheapest nonstop HYD to MAA next Friday, and the cancellation fee?" -v
python -m uv run travel-eval --model haiku
cd ..\ui; npm install; npm run build; cd ..\agent; python -m uv run travel-agent web --open

Full setup, including saving the bot-blocked airline pages and connecting Claude Desktop, is in docs/setup.md.

Status

  • MCP server: search (SerpApi / Google Flights) and day-of-travel status (AirLabs)
  • RAG: airline and DGCA policy search with citations (hybrid BM25 + vectors)
  • Saved travel preferences (read/update via MCP, approval-gated writes)
  • Agent: Claude Agent SDK planner with guardrails and run traces
  • Evals: 23 deterministic cases including ₹ grounding. Latest: sonnet 23/23 incl. the quota-heavy case (2026-10-04) (details)
  • React chat UI with live tool activity
  • Flight cards that redirect to the seller's booking page; preferences panel
  • Web UI runs on your Claude login when it finds one, otherwise on your own Anthropic API key
  • Optional Kafka event stream: at-least-once with idempotent consumers, fail-open producer (docs/kafka.md)
  • MCP server published on its own: PyPI, the MCP Registry and a Claude Desktop bundle (0.1.0, 2026-11-29; how it's released)
  • Fix known gaps found by evals (roadmap)
  • Booking handled by redirecting to the airline or travel site (no bookable flight API is available to individual developers in India)

License

MIT for the code in this repo. It doesn't cover airline names, logos or the airline page screenshot in docs/images, and anyone running it is bound by SerpApi's, AirLabs' and Anthropic's terms for their own keys.

Reviews

No reviews yet

Be the first to review this server!