← Starships

Star Destroyer

ModelImperial I-class Star Destroyer
ManufacturerKuat Drive Yards
Cost in credits150000000
Length1,600
Max atmosphering speed975
Crew47,060
Passengersn/a
Cargo capacity36000000
Consumables2 years
Hyperdrive rating2.0
MGLT60
Starship classStar Destroyer

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/3').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":3}
GET /api/starships/3 200
{
  "MGLT": "60",
  "cargo_capacity": "36000000",
  "consumables": "2 years",
  "cost_in_credits": "150000000",
  "created": "2014-12-10T15:08:19.848000Z",
  "crew": "47,060",
  "edited": "2014-12-20T21:23:49.870000Z",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/3"
  ],
  "hyperdrive_rating": "2.0",
  "length": "1,600",
  "manufacturer": "Kuat Drive Yards",
  "max_atmosphering_speed": "975",
  "model": "Imperial I-class Star Destroyer",
  "name": "Star Destroyer",
  "passengers": "n/a",
  "pilots": [],
  "starship_class": "Star Destroyer",
  "url": "https://swapi.build/api/starships/3"
}