A multi-agent orchestrator that coordinates flights, hotels, and cars into a complete trip plan using the Claude Agent SDK and RouteStack MCP tools.
- Node.js >= 20
- A RouteStack API key (get one at routestack.ai)
- An Anthropic API key
cp .env.example .env
# Add your API keys to .env
pnpm install
pnpm start| Variable | Required | Description |
|---|---|---|
ROUTESTACK_API_KEY |
Yes | Your RouteStack API key |
ROUTESTACK_MCP_URL |
Yes | MCP server endpoint |
LLM_PROVIDER |
Yes | openai or anthropic, or mistral |
OPENAI_API_KEY |
If using OpneAI | OpneAI API key |
OPENAI_MODEL |
No | OpenAI model (default: gpt-4.1-mini) |
ANTHROPIC_API_KEY |
If using Anthropic | Anthropic API key |
ANTHROPIC_MODEL |
No | Anthropic model (default: claude-sonnet-4-5-latest) |
MISTRAL_API_KEY |
If using Mistral | Mistral API key |
MISTRAL_MODEL |
No | Mistral model (default: mistral-large-latest) |
MISTRAL_BASE_URL |
No | Mistral API base URL (default: https://api.mistral.ai/v1) |
You: "Plan a trip from NYC to Tokyo, Dec 15-22, 2 adults"
Planner Agent
├── Flight Agent → searches flights via RouteStack MCP
├── Hotel Agent → searches hotels via RouteStack MCP
└── Car Agent → searches car rentals via RouteStack MCP
Result: Unified trip summary with options and total costs
- The Planner Agent receives your request and delegates to sub-agents
- Each sub-agent calls RouteStack MCP tools for its domain
- The Planner compiles results into a unified trip summary
- Swap Claude Agent SDK for LangChain or CrewAI in
src/agents/ - Add budget constraints in
src/agents/planner-agent.ts - Extend with activity/restaurant agents