← Starships

Republic attack cruiser

ModelSenator-class Star Destroyer
ManufacturerKuat Drive Yards, Allanteen Six shipyards
Cost in credits59000000
Length1137
Max atmosphering speed975
Crew7400
Passengers2000
Cargo capacity20000000
Consumables2 years
Hyperdrive rating1.0
MGLTunknown
Starship classstar destroyer

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/63').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":63}
GET /api/starships/63 200
{
  "MGLT": "unknown",
  "cargo_capacity": "20000000",
  "consumables": "2 years",
  "cost_in_credits": "59000000",
  "created": "2014-12-20T19:52:56.232000Z",
  "crew": "7400",
  "edited": "2014-12-20T21:23:49.946000Z",
  "films": [
    "https://swapi.build/api/films/6"
  ],
  "hyperdrive_rating": "1.0",
  "length": "1137",
  "manufacturer": "Kuat Drive Yards, Allanteen Six shipyards",
  "max_atmosphering_speed": "975",
  "model": "Senator-class Star Destroyer",
  "name": "Republic attack cruiser",
  "passengers": "2000",
  "pilots": [],
  "starship_class": "star destroyer",
  "url": "https://swapi.build/api/starships/63"
}