open-award-charts-mcp
by Sharkeeeeeee
README.md
# open-award-charts
**Which frequent-flyer program needs the fewest points for your flight? An open, sourced dataset of airline award charts, a calculator, and an MCP server so your AI assistant can answer that.**
[](https://github.com/Sharkeeeeeee/open-award-charts/actions/workflows/ci.yml)
[](LICENSE)



English · [繁體中文](README.zh-TW.md)
```
$ award-charts price TPE NRT --cabin business
TPE-NRT 1,355 mi (great-circle) business, one way
1. Alaska Airlines Atmos Rewards – Partner award chart
from 15,000 points [Asia Pacific, 0–1,500 mi]
2. ANA Mileage Club – ANA International Flight Awards (ANA-operated)
24,000 miles [Zone 1 Japan – Zone 3 Asia 1]
options: Low season: 24,000, Regular season: 26,500, High season: 32,500
3. JAL Mileage Bank – JAL International Award Tickets (JAL-operated, to/from Japan)
from 24,000 miles [Taipei – Tokyo (Narita), Osaka (Kansai), Nagoya (Chubu)]
4. EVA Air Infinity MileageLands – EVA Air / UNI Air international award tickets
25,000 miles [Within Asia]
...
```
Every airline publishes its award chart in a different shape: distance bands, zones, city lists, round-trip prices, seasons, "starting at" levels. Comparing them by hand means a dozen browser tabs. This project turns the **public** charts into one versioned JSON format, with the source URL and retrieval date on every chart, and adds a calculator on top.
- **Sourced, not scraped.** Only charts the airlines publish themselves. No scraping of booking engines, no paid APIs. Where a program has no published chart, it is left out rather than guessed.
- **One schema for every chart shape:** distance bands, region/zone pairs, airport lists, round-trip vs one-way vs whole-journey pricing, seasons and availability tiers. See [`schema/program.schema.json`](src/open_award_charts/data/schema/program.schema.json).
- **Calculator:** great-circle distance, the right band/zone per program, round-trip handling, cheapest first, and value per point when you know the cash fare.
- **MCP server:** ask Claude, Cursor or any MCP client "what's the cheapest way to fly Taipei to Tokyo in business on points?"
- **Optional live availability** through [seats.aero](https://seats.aero) with your own API key.
> Not affiliated with any airline or loyalty program. Award charts change; always confirm on the airline's site before transferring points.
## What's in the dataset (v0.1, focused on flights from Taiwan)
| Program | Chart | Priced | Source |
| --- | --- | --- | --- |
| Alaska Airlines Atmos Rewards | Partner awards (distance × region) | one-way, "starting at" | [alaskaair.com](https://www.alaskaair.com/atmosrewards/content/use-points/award-charts) |
| Alaska Airlines Atmos Rewards | Alaska / Hawaiian (North America) | one-way, "starting at" | same |
| EVA Air Infinity MileageLands | EVA / UNI Air international | round trip, one-way = 50 % | [evaair.com](https://www.evaair.com/en-global/infinity-mileagelands/mileage-award-program/mileage-redemption/award-ticket/eva-uni-air/) |
| China Airlines Dynasty Flyer | CI / Mandarin international, 3 availability levels (from 2026-09-16) | round trip, one-way = 50 % | [china-airlines.com](https://www.china-airlines.com/us/en/member/miles/redeem/reward-ticket.html), [announcement PDF](https://cms-externalcontent-prod.s3.ap-northeast-1.amazonaws.com/ci/Member/Announcement/RT-zh.pdf) |
| JAL Mileage Bank | JAL-operated international (base miles, First by season) | one-way | [jal.co.jp](https://www.jal.co.jp/en/jalmile/use/jal/inter/miles_limited.html) |
| JAL Mileage Bank | oneworld awards (total distance) | whole itinerary | [jal.co.jp](https://www.jal.co.jp/en/jalmile/use/partner_air/oneworld/miles.html) |
| ANA Mileage Club | ANA-operated international (L/R/H seasons) | round trip, one-way = 50 % | [ana.co.jp](https://www.ana.co.jp/en/ph/amc/international-flight-awards/) |
| ANA Mileage Club | Star Alliance partner awards (zones) | round trip | [ana.co.jp](https://www.ana.co.jp/en/tw/amc/partner-flight-awards/) |
| Cathay Pacific Asia Miles | Cathay-operated and single oneworld partner | one-way | secondary source, flagged `verified: false` (Cathay no longer publishes the chart) |
Not included yet, and why: **United** and **Delta** price awards dynamically with no public chart. **Aeroplan** publishes distance bands but not which countries are in each zone. **American AAdvantage** shows its partner chart only through an interactive widget. **EVA's Star Alliance chart** is a downloadable table not yet transcribed. Help is welcome on all of these: see [CONTRIBUTING.md](CONTRIBUTING.md).
## Install
With [uv](https://docs.astral.sh/uv/) nothing else needs installing.
**Command line**
```sh
uvx --from git+https://github.com/Sharkeeeeeee/open-award-charts award-charts price TPE LAX --round-trip --cash 900
```
**Claude Code**
```sh
claude mcp add award-charts -- uvx --from git+https://github.com/Sharkeeeeeee/open-award-charts open-award-charts-mcp
```
**Claude Desktop, Cursor, Windsurf** (`claude_desktop_config.json`, `~/.cursor/mcp.json`, ...)
```json
{
"mcpServers": {
"award-charts": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Sharkeeeeeee/open-award-charts", "open-award-charts-mcp"],
"env": { "SEATS_AERO_API_KEY": "" }
}
}
}
```
**VS Code** (`.vscode/mcp.json`): same, under `"servers"`.
Or with pip: `pip install git+https://github.com/Sharkeeeeeee/open-award-charts`.
## Use it
### Command line
```sh
award-charts price TPE NRT --cabin business # one way
award-charts price TPE LAX -r --cash 900 --award-cash 150 # round trip, value per point
award-charts price TPE SEA --via NRT --cabin economy # with a connection
award-charts price TPE HND --carrier JL # only charts for JAL-operated flights
award-charts price KHH HKG --programs eva,china-airlines --json
award-charts programs
```
Cabins: `economy`, `premium_economy`, `business`, `first` (also `Y`/`W`/`J`/`F` and `經濟艙`/`商務艙`...).
### MCP tools
| Tool | What it does |
| --- | --- |
| `compare_award_prices` | Points on every chart for a route, cheapest first, with fees, caveats, sources and value per point |
| `route_info` | Great-circle distance and the region/zone each airport falls in, per chart |
| `list_programs` / `get_chart` | Browse the dataset and its sources |
| `lookup_airport` | IATA code to name, city, country |
| `points_value` | (cash fare − award taxes) ÷ points |
| `search_award_availability` | Cached seat availability from seats.aero (needs `SEATS_AERO_API_KEY`) |
### Python
```python
from open_award_charts import price_route
result = price_route("TPE", "NRT", "business", round_trip=True, cash_fare=30000, award_cash=4000)
for r in result["results"]:
print(r["program"], r["points"], r["value_per_point"]["per_point"])
```
### Use the data directly
The JSON files live in [`src/open_award_charts/data/programs/`](src/open_award_charts/data/programs). Each chart has `regions` (by ISO country, airport or subdivision), ordered `rows` (first match wins), `trip`, `fees`, `rules`, `effective` and `sources`. Use them from any language.
## How prices are computed
1. Distance is the great-circle distance in statute miles, summed over connections. Airlines often use ticketed point mileage, which is a little longer, so results within 3 % of a band edge carry a warning.
2. Each airport is matched to the chart's regions by airport code, then subdivision (e.g. Hawaii), then country. Rows are checked in order and the first match wins, which lets specific rows ("Taiwan – Asia (1)") come before general ones ("Within Asia").
3. One-way charts are doubled for round trips. Round-trip charts are halved for one-way **only** when the program says so (EVA, China Airlines, ANA-operated). Whole-journey charts (JAL oneworld) look up the total distance.
4. When a chart has seasons or availability levels, every option is listed and the cheapest is shown first.
Points from different programs are not worth the same, and taxes and fuel surcharges vary a lot between programs. Use `value_per_point` with a real cash fare.
## seats.aero (optional)
Charts tell you the price; they don't tell you whether a seat is open. If you have a [seats.aero](https://seats.aero) Pro subscription, put your API key in `SEATS_AERO_API_KEY` and the `search_award_availability` tool returns cached availability. seats.aero API keys are for **non-commercial** use and allow about 1,000 calls a day. Nothing is sent anywhere without a key.
## Contributing chart updates
Charts change a few times a year. A chart update is a small JSON pull request with a source URL and date; CI validates the schema, checks the sources and runs the calculator tests. See [CONTRIBUTING.md](CONTRIBUTING.md).
## Development
```sh
git clone https://github.com/Sharkeeeeeee/open-award-charts && cd open-award-charts
uv venv && uv pip install -e ".[dev]"
pytest
ruff check src tests && ruff format --check src tests
```
Airport data comes from [airportsdata](https://github.com/mborsetti/airportsdata) (MIT).
## License
MIT for the code. The award chart figures are facts published by the airlines; the dataset cites each source.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues