← Starships

CR90 corvette

ModelCR90 corvette
ManufacturerCorellian Engineering Corporation
Cost in credits3500000
Length150
Max atmosphering speed950
Crew30-165
Passengers600
Cargo capacity3000000
Consumables1 year
Hyperdrive rating2.0
MGLT60
Starship classcorvette

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/2').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":2}
GET /api/starships/2 200
{
  "MGLT": "60",
  "cargo_capacity": "3000000",
  "consumables": "1 year",
  "cost_in_credits": "3500000",
  "created": "2014-12-10T14:20:33.369000Z",
  "crew": "30-165",
  "edited": "2014-12-20T21:23:49.867000Z",
  "films": [
    "https://swapi.build/api/films/1",
    "https://swapi.build/api/films/3",
    "https://swapi.build/api/films/6"
  ],
  "hyperdrive_rating": "2.0",
  "length": "150",
  "manufacturer": "Corellian Engineering Corporation",
  "max_atmosphering_speed": "950",
  "model": "CR90 corvette",
  "name": "CR90 corvette",
  "passengers": "600",
  "pilots": [],
  "starship_class": "corvette",
  "url": "https://swapi.build/api/starships/2"
}