Southwest

io.github.markswendsen-code由 GitHub 帳號 markswendsen-code 發布v0.1.0更新於 Oct 24, 2026

MCP server for Southwest Airlines - search flights, manage bookings

已驗證STDIO僅桌面位置與生活瀏覽器自動化

概覽

AI 產生的概覽

讓助理搜尋西南航空航班、比較票價、訂票、更改或取消訂位、辦理登機報到,並查看 Rapid Rewards 帳戶資訊。

可以做什麼
這個本機 MCP 伺服器透過瀏覽器自動化操作西南航空網站。工具包含 search_flights 與 get_fares,用來查詢各票價艙等的即時價格;get_flight_details 查詢航班狀態;select_flight 與 checkout 完成訂位;book_with_points 以 Rapid Rewards 點數付款。它也透過 get_reservation、change_flight 和 cancel_flight 管理既有行程,支援 check_in 與 get_boarding_pass,可加入 Early Bird Check-In,並讀取 Rapid Rewards 點數、會員等級與 Companion Pass 進度。
適用情境
適合讓助理查詢西南航空票價與時刻、比較票價艙等,或處理例行行程事務,例如在起飛前 24 小時辦理報到、取得登機證、查看 Rapid Rewards 狀態。也適合在不開啟網站的情況下更改或取消既有訂位。
執行需求
需要 Node.js 18+,並以 npx playwright install chromium 安裝 Playwright 瀏覽器。以 stdio 在本機執行,僅限桌面端。帳戶相關工具需要 SW_USERNAME 與 SW_PASSWORD,SW_HEADLESS 為選用。登入工作階段儲存在 ~/.config/mcp-southwest/session.json。
安裝前請注意
伺服器要求提供西南航空憑證 SW_USERNAME 與 SW_PASSWORD,結帳時還需要完整信用卡資訊,包括 cardNumber、cardExpiration、cardCvv 與 cardZip。它可以花錢訂票或加入 Early Bird Check-In,也能更改或取消訂位;取消需要 confirm: true。憑證與工作階段資料儲存在本機,瀏覽器自動化會直接操作真實航空公司帳戶。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Southwest,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@striderlabs/mcp-southwest

MCP server for Southwest Airlines — search flights, manage bookings, check in, and manage your Rapid Rewards account via browser automation.

Features

  • Search flights with real-time pricing across all fare classes
  • Compare fares: Wanna Get Away, Wanna Get Away+, Anytime, Business Select
  • Book flights with dollars or Rapid Rewards points
  • Manage reservations: change, cancel, get details
  • No change fees — Southwest never charges them
  • Check in online (opens exactly 24 hours before departure)
  • Get boarding passes with group/position (A/B/C)
  • Early Bird Check-In — auto check-in 36 hours before departure
  • Rapid Rewards — check points balance, tier status, Companion Pass progress

Prerequisites

Installation

bash
npm install -g @striderlabs/mcp-southwest# ornpx @striderlabs/mcp-southwest

Setup

Environment Variables

Create a .env file or set these in your environment:

env
# Required for account-based tools (check-in, Rapid Rewards, points booking)SW_USERNAME=your_rapid_rewards_number_or_emailSW_PASSWORD=your_password
# OptionalSW_HEADLESS=true   # Set to "false" to see the browser (useful for debugging)

Claude Desktop Configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "southwest": {      "command": "npx",      "args": ["@striderlabs/mcp-southwest"],      "env": {        "SW_USERNAME": "your_rapid_rewards_number",        "SW_PASSWORD": "your_password"      }    }  }}

Or if installed globally:

json
{  "mcpServers": {    "southwest": {      "command": "mcp-southwest",      "env": {        "SW_USERNAME": "your_rapid_rewards_number",        "SW_PASSWORD": "your_password"      }    }  }}

Available Tools

search_flights

Search for available Southwest flights.

json
{  "originAirport": "DAL",  "destinationAirport": "LAX",  "departureDate": "2024-06-15",  "passengers": 2,  "tripType": "oneway",  "fareType": "USD"}

get_flight_details

Get status and details for a specific flight.

json
{  "flightNumber": "WN1234",  "flightDate": "2024-06-15",  "originAirport": "DAL",  "destinationAirport": "LAX"}

select_flight

Select a flight from search results to proceed with booking.

json
{  "flightIndex": 0,  "fareType": "wanna-get-away"}

get_fares

Compare fare classes with pricing and benefits.

json
{  "originAirport": "HOU",  "destinationAirport": "MCO",  "departureDate": "2024-07-04",  "fareType": "USD"}

add_early_bird

Add Early Bird Check-In to an existing booking (~$15–25/person/flight).

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith"}

checkout

Complete a booking with passenger and payment details.

json
{  "firstName": "Jane",  "lastName": "Smith",  "dateOfBirth": "01/15/1990",  "gender": "F",  "email": "[email protected]",  "phone": "5551234567",  "cardNumber": "4111111111111111",  "cardExpiration": "12/26",  "cardCvv": "123",  "cardZip": "75201",  "cardName": "Jane Smith",  "addEarlyBird": false}

get_reservation

Look up a booking by confirmation number.

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith"}

change_flight

Modify an existing booking (no change fees!).

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith",  "newDepartureDate": "2024-06-20"}

cancel_flight

Cancel a reservation. Use confirm: true to actually cancel.

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith",  "confirm": true}

check_in

Check in online (available 24 hours before departure).

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith"}

get_boarding_pass

Retrieve boarding pass with group and position number.

json
{  "confirmationNumber": "ABC123",  "firstName": "Jane",  "lastName": "Smith",  "savePath": "~/boarding-pass.pdf"}

get_rapid_rewards

Check Rapid Rewards points, tier status, and Companion Pass progress.

json
{}

(Uses SW_USERNAME/SW_PASSWORD env vars)

book_with_points

Search for flights and book using Rapid Rewards points.

json
{  "originAirport": "DAL",  "destinationAirport": "DEN",  "departureDate": "2024-08-10",  "passengers": 1}

Southwest Airlines Fare Classes

FareRefundablePoints MultiplierBoarding
Wanna Get AwayTravel funds6x baseStandard
Wanna Get Away+Transferable funds8x baseStandard
AnytimeFull refund10x basePriority (A1–A15)
Business SelectFull refund12x baseGuaranteed A1–A15

Southwest Boarding System

Southwest uses open seating — no assigned seats. Passengers board in groups:

  • Group A (A1–A60): Early Bird / Business Select / Anytime priority
  • Group B (B1–B60): General boarding
  • Group C (C1–C60): Last to board

Check-in order determines boarding position. Check in exactly at the 24-hour mark for the best position.

Session Persistence

Login sessions are saved to ~/.config/mcp-southwest/session.json to avoid re-authenticating on every run.

Development

bash
git clone https://github.com/markswendsen-code/mcp-southwestcd mcp-southwestnpm installnpx playwright install chromiumnpm run buildnpm start

For development with hot reload:

bash
npm run dev

To see the browser during automation (useful for debugging):

bash
SW_HEADLESS=false npm run dev

License

MIT © Strider Labs

來源:README.md,提交 9cbed37

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。