4,500+ servers built on MCP Fusion
Vinkius
Duffel Flights logo
Vinkius
LangChain logo

How to Use the Duffel Flights MCP in LangChain

Chain your flight booking logic directly within LangChain agents to automate searches and orders through the Duffel Flights API.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Duffel Flights MCP on Cursor AI Code Editor MCP Client Duffel Flights MCP on Claude Desktop App MCP Integration Duffel Flights MCP on OpenAI Agents SDK MCP Compatible Duffel Flights MCP on Visual Studio Code MCP Extension Client Duffel Flights MCP on GitHub Copilot AI Agent MCP Integration Duffel Flights MCP on Google Gemini AI MCP Integration Duffel Flights MCP on Lovable AI Development MCP Client Duffel Flights MCP on Mistral AI Agents MCP Compatible Duffel Flights MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect Duffel Flights MCP to LangChain

Create your Vinkius account to connect Duffel Flights to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Chain flight search and booking logic

Connect `create_flight_offer_request` to your LangChain agents to initiate searches automatically. You control the flow by passing the offer request ID directly into `list_flight_offers` to get results without manual intervention. This architecture keeps your logic modular. You define the sequence where the agent evaluates pricing and availability before moving to the next link in your chain.

Direct order execution for your agents

Use `create_flight_order` to turn your agent's selection into a confirmed booking. Your LangChain agent handles the passenger data schema, ensuring the order is placed correctly every time. Finalize bookings by triggering `pay_for_flight_order` once the order is ready. This keeps the transaction flow contained within your agent's execution path.

Query live aviation metadata

Access real-time fleet and airline data using `list_aircraft` and `list_airlines`. Your agents use this context to filter options based on specific carrier preferences or aircraft types. Integrating `list_airports` allows your agent to resolve location codes dynamically. It makes your LangChain pipelines smarter about where and how travelers fly.

Setup guide

Set up Duffel Flights MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes Duffel Flights tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "duffel-flights-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent Duffel Flights transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Duffel. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about Duffel Flights MCP in LangChain

Register the server tools with your agent. Then, prompt the agent to call `list_airports` for codes and follow up with `create_flight_offer_request` to pull live availability.
Yes, you can chain the entire sequence. Your agent executes the offer request, lists the results, and proceeds to order creation and payment sequentially.
It acts as a stateless provider. You must maintain the booking context within your LangChain agent's memory or session storage to keep track of offer IDs.
You need to implement error handling in your agent logic. Check the output of `create_flight_order` for validation errors before attempting to call the payment tool.
The server only processes PII like names and passport details when you pass them to the booking tools. All data transmission stays within your authenticated session.

Start using the Duffel Flights MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 8 tools

We've already built the connector for Duffel Flights. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 8 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.