MCP TravelCode: Let AI Assistants Search Flights and Book Hotels
<p>We just open-sourced <strong>MCP TravelCode</strong> — a <a href="https://modelcontextprotocol.io" rel="noopener noreferrer">Model Context Protocol</a> server that connects AI assistants to the <a href="https://travel-code.com" rel="noopener noreferrer">Travel Code</a> corporate travel API.</p> <p>Your AI assistant can now search for flights, book hotels, manage orders, and track flight status — all through natural language conversations.</p> <h2> What is MCP? </h2> <p>Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external tools and data sources. Think of it as USB-C for AI — one protocol, universal connectivity.</p> <p>MCP TravelCode implements this standard for corporate travel, giving any compatible AI client access to real travel infrastructure.
We just open-sourced MCP TravelCode — a Model Context Protocol server that connects AI assistants to the Travel Code corporate travel API.
Your AI assistant can now search for flights, book hotels, manage orders, and track flight status — all through natural language conversations.
What is MCP?
Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external tools and data sources. Think of it as USB-C for AI — one protocol, universal connectivity.
MCP TravelCode implements this standard for corporate travel, giving any compatible AI client access to real travel infrastructure.
Features
-
🔍 Flight search — multi-city, one-way, round-trip with cabin class and passenger filters
-
🏨 Hotel search — star rating, meal plans, refundability, price filters with SSE streaming
-
📊 Flight status — real-time tracking with delays, gates, terminals, and aircraft info
-
📈 Delay statistics — historical delay and cancellation data for flights and airports
-
📋 Order management — create, cancel, modify bookings; check cancellation conditions
-
🌍 Airport & airline data — search by name, city, IATA/ICAO code
Security
Authentication via OAuth 2.1 + PKCE — secure browser-based authorization with automatic token refresh. No API keys stored in config files.
Quick Start
Setup takes a single command. First, authenticate:
npx mcp-travelcode-auth auth
Enter fullscreen mode
Exit fullscreen mode
Then add to your AI client config (e.g., claude_desktop_config.json):
{ "mcpServers": { "travelcode": { "command": "npx", "args": ["mcp-travelcode"] } } }{ "mcpServers": { "travelcode": { "command": "npx", "args": ["mcp-travelcode"] } } }Enter fullscreen mode
Exit fullscreen mode
For Claude Code:
claude mcp add travelcode -- npx mcp-travelcode
Enter fullscreen mode
Exit fullscreen mode
Supported Clients
MCP TravelCode works with all major AI clients:
Client Transport Status
ChatGPT Desktop stdio ✅ Compatible
Claude Desktop stdio ✅ Tested
Claude Code stdio ✅ Tested
Gemini stdio ✅ Compatible
GitHub Copilot stdio ✅ Compatible
Cursor stdio ✅ Tested
Windsurf stdio ✅ Compatible
VS Code stdio ✅ Compatible
JetBrains IDEs stdio ✅ Compatible
Zed stdio ✅ Compatible
Cline stdio ✅ Compatible
Continue stdio ✅ Compatible
Two transport modes: stdio (local) and HTTP/SSE (remote).
Example Conversation
You: Find me flights from Amsterdam to London next Friday, economy class
AI: Searches the Travel Code API, returns real-time results with prices, times, and airlines
You: Book the KLM flight at 9:15 AM
AI: Creates the booking through the API
That's it. Natural language → real travel actions.
Links
-
GitHub: github.com/egorceo/mcp-travelcode
-
npm: npmjs.com/package/mcp-travelcode
-
Announcement: travel-code.com/news/mcp-travelcode-ai-travel-assistant
MIT license. 577+ monthly npm downloads.
Built by Travel Code — AI-powered corporate travel management.
DEV Community
https://dev.to/egorceo/mcp-travelcode-let-ai-assistants-search-flights-and-book-hotels-566lSign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.

Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!