
Flywizz
io.github.victorlane由 GitHub 帳號 victorlane 發布v0.1.0更新於 Oct 24, 2026
Search Wizz Air flights from your AI agent. Unofficial.
概覽
一個非官方的本機 MCP 伺服器,讓助理用自然語言查詢 Wizz Air 的航班、票價、航線與航班狀態。
- 可以做什麼
- 查詢某條航線的票價與時刻表,包含每日最低價與所有出發時間,支援來回與折扣俱樂部價格。找出某月最便宜的一天、最便宜的週末,或目標日期前後的價格。探索航網:從某機場可抵達的目的地、依國家分組的目的地,以及航線是否直飛。查詢營運日期(含一次轉機)以及某個航班號的即時狀態。
- 適用情境
- 當你希望助理回答 Wizz Air 相關問題,例如某航線哪天最便宜、從某機場能飛往哪裡、某航班是否營運,而不想自己寫程式呼叫 SDK 時適用。
- 執行需求
- 以 stdio 本機程序執行,需從 PyPI 安裝含 MCP 擴充的套件(uv tool install 或 pipx),安裝後提供 flywizz-mcp 指令。不需要 API 金鑰或帳號。需要能連線至 Wizz Air 的網路介面。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Flywizz,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Flywizz SDK
[PyPI version] [Python versions] [CI] [CodeQL] [PyPI downloads] [License]
An open-source unofficial API wrapper to get flight data from Wizz Air.
[!TIP] MCP server for AI agents included. Plug Flywizz into Claude Desktop, Claude Code, or Cursor and search Wizz Air flights in natural language. Jump to the MCP Quickstart.
Contents
- Installation
- Quick Start
- Three things to know first
- API Reference
- Data Models
- Examples
- Checking many routes at once
- Flights that need a connection
- Explore Mode
- Use with Claude, Cursor, and other MCP clients
- API characteristics
- Caching
- Rate Limiting
- Contributing
- Disclaimer
Installation
Or using uv:
Quick Start
Each entry is one operating day: the cheapest fare that day, plus every departure time, so a single call answers both "when does it fly" and "what does it cost".
Three things to know first
Prices are in the departure station's currency
Wizz Air has no server-side currency override. BUD -> LTN quotes in HUF,
LTN -> BUD quotes in GBP, WAW -> LTN in PLN. Body fields, query params,
cookies and headers named currency are all ignored.
Read Station.currency_code from get_network() if you need to know which
currency you'll get before you search, and convert client-side.
Not every operating day carries a price
timetableV2 and farechart attach a price object to every day, but on days
they will not quote inline, the amount is 0 and price_type is either
checkPrice (a fare exists, but only through search/search) or noData.
Flywizz maps both to price=None, so an unpriced day is never mistaken for a
free one. Timetable entries still expose the indicative fare through
original_price:
Search windows are capped, and the caps differ
Priced and unpriced surfaces disagree about how far ahead you may look. Both
reject a wider window with 400 InvalidTimeDateRange and no further
explanation, so Flywizz enforces each limit itself, in a message that names it.
cheapest_weekend() splits the range internally, since its default of
months_ahead=3 far exceeds either cap.
search/search is behind a bot gate
Four endpoints (search/search, booking/seatmap, booking/ancillaries,
booking/passengers) sit behind Kasada and answer 429 with an empty body
from any non-browser client. Flywizz raises BotGateError rather than trying
to solve the challenge.
Everything else, including the priced timetableV2 and farechart surfaces,
is open. That is enough for price tracking, route exploration and calendar
search. If you need fare bundles and sell keys, drive a real browser session
and pass its headers in:
Full details of the gate, the session handshake, and the whole route table are
in docs/internal-api-spec.md.
API Reference
WizzAir Class
Constructor
Creates a new Wizz Air client instance.
Parameters:
transport(Transport, optional): Inject a custom transport, e.g. aCachingTransportwrapping the default, aWizzairTransportwithkasada_headers, or a fixture transport for tests. Defaults to a freshWizzairTransport.
Example:
Methods
Every method exists on AsyncWizzAir with the same signature.
TimetableSearch Class
Parameters for a timetable search.
Parameters:
origin(str): IATA code of the departure station (e.g."BUD")destination(str): IATA code of the arrival station (e.g."LTN")date_from(datetime): Start of the outbound departure windowdate_to(datetime): End of the outbound departure windowreturn_date_from/return_date_to(datetime, optional): Inbound window. Both are required byget_return_timetable()adults/children/infants(int): Passenger counts. At least one adultprice_type(str):"regular"or"wdc"for Wizz Discount Club pricing
FareChartSearch Class
Parameters for the price strip.
day_interval is the half-window around date and must be at least 3, so the
default returns seven days. Smaller values are rejected upstream with
DayIntervalMustBeGreaterOrEqualTo3.
AvailabilitySearch Class
Parameters for the bot-gated availability call.
Data Models
Price
Represents a money amount as Wizz Air reports it.
Attributes:
amount(float): The amountcurrency(str): ISO 4217 code, always the departure station's currencyexchanged_amount(Optional[float]): The SPA's client-side conversion hook. StaysNonefor anonymous sessionsexchanged_currency(Optional[str]): Currency ofexchanged_amount
TimetableEntry
One operating day for a route, with its cheapest fare.
Attributes:
departure_station(str),arrival_station(str): IATA codesdeparture_date(datetime): The operating dayprice(Optional[Price]): Cheapest fare that day,Noneif sold outoriginal_price(Optional[Price]): Pre-discount pricedepartures(list[Departure]): Every departure that dayprice_type(Optional[str]):"price"when there was inventoryhas_mac_flight(bool): The route includes a metropolitan-area alternativeapplied_coupon_code(Optional[str])
Departure
Attributes:
departure(datetime): Departure timeis_cheapest_of_the_day(bool): This is the departurepricerefers to
FlightDate
One operating day from get_connecting_flight_dates().
Attributes:
date(datetime): The operating daystops(int): 0 for a direct flight, 1 or more for a connectionis_direct(bool): Property, true whenstopsis 0
FareChartEntry
One day of the price strip.
Attributes:
departure_station(str),arrival_station(str): IATA codesday(datetime): The dayprice(Optional[Price]): Cheapest price that dayclass_of_service(Optional[str]): Booking class the quote came fromprice_type(Optional[str]),has_mac_flight(bool)
Station
An airport in Wizz Air's live network. Returned by the explore methods.
Attributes:
iata(str): IATA station codename(str): Station namecountry_code(str): Uppercase ISO2 country code (e.g."HU","GB")country_name(str): Country namecurrency_code(str): Local currency. Fares from here are priced in itlatitude(float),longitude(float): Coordinatesmac(Optional[str]): Metropolitan area code (e.g."LON")aliases(list[str]): Alternative namescategories(list[int]): Marketing categories assigned by Wizz Airrank(Optional[int]),is_fake_station(bool)connections(list[Connection]): Everywhere this station flies
Helper: destinations(direct_only=True) returns just the IATA codes.
Connection
Attributes:
iata(str): Destination station codeis_direct(bool): A direct Wizz Air flight. The flag you usually wantis_connected(bool): A self-transfer connection rather than a direct flightis_domestic(bool),is_new(bool)operation_start_date(Optional[datetime]): When the route opens
FlightStatus
A single operating flight from the flight-information endpoint.
Attributes:
flight_id(int),carrier_code(str),flight_number(int)departure_airport(str),arrival_airport(str)original_departure_airport/original_arrival_airport(Optional[str]): Differ from the actual airports when the flight was divertedoperation_day(Optional[datetime])scheduled_departure/scheduled_arrival(Optional[datetime])op_suffix(Optional[str])
DestinationFare
Returned by explore_with_fares(). Pairs a reachable destination with its
cheapest sampled fare, if one came back from the price probe.
Attributes:
station(Station): The destinationprice(Optional[Price]): Cheapest fare in the window, orNoneif the route is in the network but no priced inventory came backdeparture_date(Optional[datetime]): The day that fare was on
Examples
Cheapest day in a month
Is it cheaper a day either side?
Cheapest weekend in the next three months
Discount Club pricing
Live flight status
Carrier codes are the AOC prefix: W6 (Hungary), W4 (Malta), W9 (UK).
Error Handling
ValidationError.codes carries Wizz Air's own validation codes, which name
the fields it objected to. An empty list means the API answered with nothing
matching; it never means a failure.
Checking many routes at once
get_flight_dates_multi() answers the schedule question for several
destinations per request, which is five times cheaper than looping over
get_flight_dates():
Every destination you ask for appears in the result. A route that does not operate in the window maps to an empty list rather than going missing, so there is no membership check to forget.
The endpoint answers for at most five destinations per request and reports an over-long list by returning nothing rather than an error. Flywizz batches for you, so the list you pass has no practical ceiling.
Fares are a different matter: there is no batched priced surface, so
explore_with_fares() still costs one call per destination.
Flights that need a connection
validate_route() and get_flight_dates() cover direct service only, so a
False from either does not mean you cannot fly the route.
get_connecting_flight_dates() also answers for pairs that need a change of
plane:
On a route that flies direct only some days, both kinds come back interleaved,
so you can see which days need a connection. Filter on is_direct when one
will not do.
Explore Mode
Explore Mode answers the question "where can I actually fly from here?". It reads Wizz Air's live network metadata once and exposes the reachable destinations from any station, optionally grouped or joined with the cheapest fare in a date window.
All methods below are available on both WizzAir and AsyncWizzAir.
List every destination
Pass direct_only=False to include self-transfer connections.
Group destinations
Country codes are uppercase ISO2.
Check a single route
Destinations with their cheapest fare
explore_with_fares() joins the network destinations with a timetable probe,
so each destination comes back with its cheapest Price (or None if no
inventory was returned for that route in the window).
Wizz Air has no "anywhere" search, so this is one call per destination. Use
limit while iterating and wrap the transport in CachingTransport.
Prices across destinations are all in the origin's currency, so they are directly comparable.
Async usage
AsyncWizzAir mirrors every explore method, and explore_with_fares() fans
out concurrently:
If you call multiple explore methods in a row, wrap the transport in
CachingTransport so the network metadata is fetched once and reused.
Use with Claude, Cursor, and other MCP clients
[!IMPORTANT] Two commands and you're done:
Now your agent can search Wizz Air flights in natural language. No API keys, no accounts.
Flywizz ships an optional Model Context Protocol server so your agent can search Wizz Air fares from natural-language prompts like "what's the cheapest day in November to fly Budapest to London" or "where can I fly from Budapest in the first week of December".
Quickstart
1. Install Flywizz with the MCP extra:
Or with pip:
This installs a flywizz-mcp console script on your PATH.
2. Add it to your agent:
Claude Code (one-liner):
Claude Desktop: open ~/Library/Application Support/Claude/claude_desktop_config.json
on macOS (or %APPDATA%\Claude\claude_desktop_config.json on Windows) and add:
Then restart Claude Desktop.
Cursor: Settings → MCP → Add new server, name flywizz, command
flywizz-mcp.
3. Try it. Ask your agent:
"What's the cheapest day in November to fly from Budapest to London Luton?"
The agent should call cheapest_day with origin="BUD",
destination="LTN", month="2026-11-01", then report the day and the price.
Currency
There is no currency setting, because Wizz Air has none. Every tool returns prices in the departure station's local currency and reports the code alongside the amount. Tell your agent to quote the currency it gets back rather than assuming euros.
Exposed tools
The server exposes five curated tools so the agent can pick reliably:
find_faresfor "how much is BUD to LTN in November", with the full day-by-day breakdown and every departure timecheapest_dayfor "what's the cheapest day this month to fly X to Y"price_aroundfor "is it cheaper a day either side of the 10th"explore_destinationsfor "what countries can I reach from X"flight_statusfor "when does W6 6201 operate"
No API keys, accounts, or rate-limit setup. The server reuses a single cached
WizzAir client across calls, so the network metadata is fetched once per
process.
The bot-gated search/search surface is deliberately not exposed: it cannot
work from a headless process, and an agent tool that always fails is worse
than no tool.
API characteristics
These properties of the upstream API determine what this SDK can and cannot offer. Flywizz handles each of them for you; knowing them explains why some calls behave the way they do.
Caching
asset/map is 650 KB and changes rarely. Wrap the transport when you call it
more than once:
Asynchronous code requires the asynchronous wrapper. The two are not
interchangeable: mixing them raises TypeError rather than caching a
coroutine.
Neither wrapper caches POSTs, so fares stay live. Call invalidate() to drop
the cache early.
Rate Limiting
The SDK retries network errors and 5xx responses with exponential backoff, up
to 4 attempts. It deliberately does not retry a 429: on this API that is
the Kasada bot gate rather than backpressure, and retrying just adds load
while still failing.
Wizz Air's API is anonymous, but it is not yours. Be a good citizen: cache the
network metadata, keep explore_with_fares() fan-out modest, and don't poll
fares faster than the prices actually change.
Contributing
This is an open-source project. Contributions are welcome — see CONTRIBUTING.md. Agent-facing notes on the architecture live in AGENTS.md, and everything known about the upstream API is in docs/internal-api-spec.md.
Disclaimer
This is an unofficial API wrapper and is not affiliated with Wizz Air. It performs read-only requests against the public endpoints the airline's own website uses. Use at your own risk and ensure you comply with Wizz Air's terms of service.
來源:README.md,提交 b3d6ec7
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分