← Starships

Slave 1

ModelFirespray-31-class patrol and attack
ManufacturerKuat Systems Engineering
Cost in creditsunknown
Length21.5
Max atmosphering speed1000
Crew1
Passengers6
Cargo capacity70000
Consumables1 month
Hyperdrive rating3.0
MGLT70
Starship classPatrol craft

Pilots

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/starships/21').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":21}
GET /api/starships/21 200
{
  "MGLT": "70",
  "cargo_capacity": "70000",
  "consumables": "1 month",
  "cost_in_credits": "unknown",
  "created": "2014-12-15T13:00:56.332000Z",
  "crew": "1",
  "edited": "2014-12-20T21:23:49.897000Z",
  "films": [
    "https://swapi.build/api/films/2",
    "https://swapi.build/api/films/5"
  ],
  "hyperdrive_rating": "3.0",
  "length": "21.5",
  "manufacturer": "Kuat Systems Engineering",
  "max_atmosphering_speed": "1000",
  "model": "Firespray-31-class patrol and attack",
  "name": "Slave 1",
  "passengers": "6",
  "pilots": [
    "https://swapi.build/api/people/22"
  ],
  "starship_class": "Patrol craft",
  "url": "https://swapi.build/api/starships/21"
}