Canada Travel Advisory MCP Server
Canada Travel Advisory MCP Server
An MCP server for Government of Canada travel advisories, backed by the Global Affairs Canada open data index of 230 destinations.
Lightweight by design: a single index.js, one dependency (@modelcontextprotocol/sdk), no build step, no TypeScript compile, no HTTP library.
インストール
npm installRequires Node.js 18+ (uses the built-in fetch).
Related MCP server: Travel Assistant MCP
セットアップ
No API key is needed — the dataset is public and unauthenticated. All clients below run the same stdio command: node <path-to>/index.js.
プロジェクトが別の場所にある場合は、自分の絶対パスに置き換えてください。
Claude Code
claude mcp add canada-travel-advisory -- node E:/Claude/mcp-servers/canada-travel-advisory/index.js--scope userを追加すると、現在のプロジェクトだけでなく、すべてのプロジェクトで利用できるようになります。
Claude Desktop
In claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"canada-travel-advisory": {
"command": "node",
"args": ["E:/Claude/mcp-servers/canada-travel-advisory/index.js"]
}
}
}保存後、Claude Desktopを再起動してください。
Codex CLI
codex mcp add canada-travel-advisory -- node E:/Claude/mcp-servers/canada-travel-advisory/index.jsまたは、~/.codex/config.tomlを直接編集します(プロジェクトルートの.codex/config.tomlを使用すると、信頼する1つのプロジェクトにスコープを限定できます):
[mcp_servers.canada-travel-advisory]
command = "node"
args = ["E:/Claude/mcp-servers/canada-travel-advisory/index.js"]codex mcp listで確認します。
Cursor
プロジェクトルートに.cursor/mcp.jsonを作成するか、~/.cursor/mcp.jsonを作成してグローバルに有効にします:
{
"mcpServers": {
"canada-travel-advisory": {
"command": "node",
"args": ["E:/Claude/mcp-servers/canada-travel-advisory/index.js"]
}
}
}サーバーはSettings → MCPに表示され、そこでトグルをオンにする必要があります。
Windowsパスに関する注意
上記のフォワードスラッシュはWindowsでも問題なく動作します。JSON設定でバックスラッシュを使用する場合は、エスケープしてください:"E:\\Claude\\mcp-servers\\canada-travel-advisory\\index.js"。
ツール
Tool | 目的 |
| 1つの目的地に対する勧告。名前(英語またはフランス語)、ISOコード( |
| すべての目的地を |
| 最近変更された勧告を新しい順に表示。 |
| 名前、ISOコード、スラッグに対する部分一致検索。 |
| 複数の目的地を一度に比較、リスクの高い順にランク付け。 |
| データセットの概要:リスクレベルごとの数、地域勧告の数、変更タイプの内訳、鮮度。 |
すべてのツールはlanguage(デフォルトは"en"、または"fr")を受け入れ、名前、勧告テキスト、および目的地リンクをtravel.gc.caとvoyage.gc.caの間で切り替えます。
リスクレベル
レベル | 意味 |
0 | 通常の安全上の注意を払う |
1 | 十分な注意を払う |
2 | 不要不急の旅行を避ける |
3 | すべての旅行を避ける |
min_risk_level: 2は、カナダが旅行を避けるよう勧告しているすべての目的地を返します。フィルターはラベルテキストも受け入れます(例:risk_level: "avoid all travel")。
このサーバーが回答する質問例
「ペルーの渡航勧告は何ですか?」
「今すぐすべての旅行を避けるべき国はどこですか?」
「先週変更された勧告は何ですか?」
「日本、マリ、フランスを旅行先として比較してください。」
「地域勧告がある目的地はいくつありますか?」
データソースと動作に関する注意
Source: https://data.international.gc.ca/travel-voyage/index-alpha-eng.json
1つのエンドポイントのみを取得し、2つではありません。 公開されている
index-updated.jsonはindex-alpha-eng.jsonとバイト単位で同一であり(確認済み:同じMD5、同じアルファベット順のキー順序)、実際には最新順にソートされていません。そのため、get_recent_updatesはローカルでdate-published.timestampでソートします。これは、アップストリームファイルの順序に関係なく信頼性があります。1回の取得で両方の言語に対応。
-engサフィックスにもかかわらず、すべてのレコードにはengとfraの両方のブロックが埋め込まれています。-fraファイルはキーの順序のみが異なります。キャッシュ: レスポンスは60分間メモリにキャッシュされ(データセットは約1時間ごとに再生成されます)、条件付き
If-None-Match/If-Modified-Sinceリクエストで更新されます。更新に失敗した場合、エラーにする代わりに、最後の有効なデータがstale: trueとともに提供されます。サマリーデータのみ。 データセットには、リスクレベル、勧告テキスト、更新日、変更概要が含まれています。完全な勧告詳細(安全とセキュリティ、入国要件、健康、地域別内訳)はHTMLとしてのみ存在するため、すべての結果にはそれを読むための目的地
urlが含まれています。
すべてのレスポンスにはdata_generated(アップストリームの生成時間)とソース帰属行も含まれているため、回答に日付を付けることができます。
ライセンス
MIT。勧告データ © Government of Canada、Open Government Licence – Canadaに基づいて使用。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceCheck visa requirements for 39,585 passport-destination pairs in 15 languages. Returns visa type, required documents, application process, and travel tips from 136 official government sources. Free quick checks without API key.51301MIT
- AlicenseAqualityAmaintenanceEnables travel search workflows including airport lookup, route comparison, travel timing guidance, and external booking links with commission-eligible links.51821MIT
- Flicense-qualityBmaintenanceEnables querying aviation weather, FAA TFRs, NWS alerts, flight tracking, and Amtrak train status using public APIs. No API keys or private infrastructure required.
- Flicense-qualityCmaintenanceEnables weather-based travel advisory generation using wttr.in API, including tools to fetch forecasts, calculate travel risk, and produce structured advisory reports.
Related MCP Connectors
US Travel Advisories MCP.
Passport visa, entry & transit requirements for any country pair, with official government sources.
Visa eligibility matcher and immigration intelligence for MCP-compatible AI assistants.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/w-metcalfe/canada-travel-advisory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server