Voyager Travel MCP Server
A MakeMyTrip-style travel-booking MCP server with flights, hotels, trains, and bookings, featuring risk-tiered tools and role-based access control.
README
Voyager Travel MCP Server
A MakeMyTrip-style travel-booking MCP server (flights, hotels, trains,
bookings) exposed over the Streamable HTTP transport. Point any MCP client
(Claude Desktop, Cursor, Claude Code) at https://<your-host>/mcp.
It ships 12 tools grouped into four risk tiers, so an external policy layer can enforce role-based access and guardrails per tier. The tiers map to scopes, and roles map to scopes: this is the seam where Votal Shield plugs in later (see Guarding with Votal Shield).
Modeled after the structure of meridian-mcp
(risk-tiered tools, Docker + Railway, /healthz), but for travel booking and
with an in-memory data store (no database), so it deploys as a single service.
Tools
| # | Tool | Tier | Scope | What it does |
|---|---|---|---|---|
| 1 | search_flights |
read-only | travel:read |
Search flights by origin/destination/date |
| 2 | search_hotels |
read-only | travel:read |
Search hotels by city |
| 3 | search_trains |
read-only | travel:read |
Search trains by route/date |
| 4 | get_booking |
read-only | travel:read |
Fetch one booking by id |
| 5 | list_bookings |
read-only | travel:read |
List a traveler's bookings (contains PII) |
| 6 | create_booking |
reversible-write | travel:write |
Create a pending booking + lead traveler |
| 7 | add_traveler |
reversible-write | travel:write |
Add a co-traveler |
| 8 | apply_coupon |
reversible-write | travel:write |
Apply a discount coupon |
| 9 | pay_booking |
money-movement | payments:write |
Pay for and confirm a booking |
| 10 | request_refund |
money-movement | payments:write |
Refund a confirmed booking |
| 11 | cancel_booking |
destructive-admin | admin:write |
Cancel a booking |
| 12 | override_price |
destructive-admin | admin:write |
Override a booking amount |
Roles
The demo resolves the caller's role from an X-User-Role request header and
checks it against this matrix (each role is a superset of the one above):
| Role | travel:read |
travel:write |
payments:write |
admin:write |
|---|---|---|---|---|
guest |
✅ | — | — | — |
traveler |
✅ | ✅ | ✅ | — |
admin |
✅ | ✅ | ✅ | ✅ |
A request with no X-User-Role header is treated as guest (least privilege).
An under-privileged call returns an MCP tool error (isError: true) with an
Access denied ... message, not an HTTP 403.
The plaintext
X-User-Roleheader is trusted only because a gateway/IdP is assumed in front. Do not expose this server unauthenticated. In production, either put an auth gateway in front or setAUTHZ_MODE=offand let a policy layer (Votal Shield) own authorization.
Run locally
npm install
npm run build
npm start # serves MCP at http://localhost:8080/mcp
# or, live-reload during development:
npm run dev
Smoke-test the whole thing (initialize, tools/list, good/bad calls per role):
npm run smoke # against http://localhost:8790 by default
node scripts/smoke.mjs http://localhost:8080
Raw tools/list with curl (send a role header):
curl -s http://localhost:8080/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'X-User-Role: admin' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool as different roles to see allow vs. block:
# admin CAN cancel -> executes
curl -s http://localhost:8080/mcp -H 'X-User-Role: admin' \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"cancel_booking","arguments":{"bookingId":"BK-7002"}}}'
# guest CANNOT cancel -> "Access denied ..."
curl -s http://localhost:8080/mcp -H 'X-User-Role: guest' \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"cancel_booking","arguments":{"bookingId":"BK-7002"}}}'
See TESTING.md for the full good/bad matrix.
Deploy to Railway
- Push this repo to GitHub, then in Railway: New Project -> Deploy from GitHub
repo and select it. Railway detects
railway.json+Dockerfileand builds. - (Optional) Variables:
AUTHZ_MODE(headerdefault, oroff),DEFAULT_ROLE. Do not setPORT— Railway injects it. - Settings -> Networking -> Generate Domain. Your endpoint is that domain +
/mcp. - Health check is wired to
/healthzinrailway.json.
Any container host works the same way: build the Dockerfile, provide $PORT.
Endpoints
| Method | Path | Purpose |
|---|---|---|
| POST | /mcp |
MCP Streamable HTTP (JSON-RPC: initialize, tools/list, tools/call) |
| GET | /healthz |
Health check ({status:"ok"}) |
| GET | / |
Human-readable info: tools, roles, authz mode |
Environment variables
| Var | Default | Notes |
|---|---|---|
PORT |
8080 |
Host injects this (Railway sets it automatically) |
AUTHZ_MODE |
header |
header enforces role->scope; off delegates to an upstream layer |
DEFAULT_ROLE |
guest |
Role assumed when no X-User-Role header is present |
Guarding with Votal Shield (later)
This server is built to be guarded by Votal Shield as a follow-up step. Two integration paths, both enabled by the risk-tier design:
- Front it with Shield and set
AUTHZ_MODE=offhere, letting Shield own RBAC + input/output guardrails for every tool call. - Call Shield in-process from each tool (RBAC check, input screening, output sanitization) before/after the tool body runs.
The authorize() function in src/authz.ts is the single seam where the role
-> scope decision is made, and every tool already declares its tier and scope,
so wiring Shield in is a localized change. Guardrail decisions then surface in
the Shield admin portal's Guardrail Metrics dashboard.
Data note
Data lives in memory (src/data.ts) and resets on restart. Two bookings are
pre-seeded (BK-7001, BK-7002) so get_booking / list_bookings work
immediately. Swap this module for a real database when you need persistence.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。