Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessAnthropic Source Code Leak: What Was Exposed & Why It Matters in AI Security - iZOOlogicGoogle News: ClaudeSome editors 'uploading confidential manuscripts to ChatGPT to read quickly', agent claims - The BooksellerGoogle News: ChatGPTChatGPT rolls out on Apple CarPlay with voice-only interaction support - Storyboard18Google News: ChatGPTOpenAI raises $122 billion at $852 billion valuation, closing largest funding round in history - Yahoo FinanceGoogle News: OpenAI🔥 yusufkaraaslan/Skill_SeekersGitHub Trending🔥 Huanshere/VideoLingoGitHub Trending🔥 sansan0/TrendRadarGitHub Trending🔥 allenai/OLMo-coreGitHub Trending🔥 LMCache/LMCacheGitHub Trending🔥 microsoft/agent-frameworkGitHub Trending🔥 NVIDIA/Model-OptimizerGitHub Trending🔥 sponsors/fGitHub TrendingBlack Hat USADark ReadingBlack Hat AsiaAI BusinessAnthropic Source Code Leak: What Was Exposed & Why It Matters in AI Security - iZOOlogicGoogle News: ClaudeSome editors 'uploading confidential manuscripts to ChatGPT to read quickly', agent claims - The BooksellerGoogle News: ChatGPTChatGPT rolls out on Apple CarPlay with voice-only interaction support - Storyboard18Google News: ChatGPTOpenAI raises $122 billion at $852 billion valuation, closing largest funding round in history - Yahoo FinanceGoogle News: OpenAI🔥 yusufkaraaslan/Skill_SeekersGitHub Trending🔥 Huanshere/VideoLingoGitHub Trending🔥 sansan0/TrendRadarGitHub Trending🔥 allenai/OLMo-coreGitHub Trending🔥 LMCache/LMCacheGitHub Trending🔥 microsoft/agent-frameworkGitHub Trending🔥 NVIDIA/Model-OptimizerGitHub Trending🔥 sponsors/fGitHub Trending

MCP TravelCode: Let AI Assistants Search Flights and Book Hotels

DEV Communityby Egor KarpovichApril 2, 20263 min read1 views
Source Quiz

<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"]  }  } }

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.

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

Knowledge Map

Knowledge Map
TopicsEntitiesSource
MCP TravelC…claudegeminimodelannounceopen-sourcefeatureDEV Communi…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 231 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!