← Starships

Millennium Falcon

ModelYT-1300 light freighter
ManufacturerCorellian Engineering Corporation
Cost in credits100000
Length34.37
Max atmosphering speed1050
Crew4
Passengers6
Cargo capacity100000
Consumables2 months
Hyperdrive rating0.5
MGLT75
Starship classLight freighter

curl

curl https://swapi.build/api/starships/10

JavaScript

fetch('https://swapi.build/api/starships/10').then((r) => r.json())

Python

requests.get('https://swapi.build/api/starships/10').json()

MCP

Connect your agent once:

claude mcp add --transport http swapi-build https://swapi.build/mcp

then call the tool sw_get with:

{"resource":"STARSHIPS","id":10}
GET /api/starships/10 200
{
  "MGLT": "75",
  "cargo_capacity": "100000",
  "consumables": "2 months",
  "cost_in_credits": "100000",
  "created": "2014-12-10T16:59:45.094000Z",
  "crew": "4",
  "edited": "2014-12-20T21:23:49.880000Z",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "0.5",
  "length": "34.37",
  "manufacturer": "Corellian Engineering Corporation",
  "max_atmosphering_speed": "1050",
  "model": "YT-1300 light freighter",
  "name": "Millennium Falcon",
  "passengers": "6",
  "pilots": [
    "https://swapi.build/api/people/13",
    "https://swapi.build/api/people/14",
    "https://swapi.build/api/people/25",
    "https://swapi.build/api/people/31"
  ],
  "starship_class": "Light freighter",
  "url": "https://swapi.build/api/starships/10"
}