Star Wars API & MCP server (swapi.build)

build.swapi/star-wars · v2.17.2 · other

Star Wars API & MCP server (swapi.build) is healthy: it completed an MCP handshake in 2518 ms and exposes 4 tools.

Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.

Endpoint: https://swapi.build/mcp (streamable-http)

Repository · Website · JSON · Add to my inventory

Facts

Users (last 30 days)0
HandshakeHealthy
Auth neededNone
Tool count4
Latency2518 ms
Last checked (UTC)2026-11-29T23:45:30.569Z

Health history

Checked (UTC)StatusLatencyError
2026-11-29T23:45:30.569ZHealthy2518
2026-11-27T14:45:54.588ZHealthy1566
2026-11-25T07:25:23.529ZHealthy2996
2026-11-23T02:06:01.964ZHealthy3607
2026-11-20T22:30:37.530ZHealthy1598
2026-11-18T20:00:11.765ZHealthy2346
2026-11-16T18:40:22.333ZHealthy1162
2026-11-14T19:05:45.052ZHealthy2677
2026-11-12T20:30:30.361ZHealthy2696
2026-11-10T23:00:39.705ZHealthy3417
2026-11-09T02:45:27.805ZHealthy1740
2026-11-07T07:55:19.932ZHealthy1664
2026-11-05T13:55:46.569ZHealthy1377
2026-11-03T20:40:31.928ZHealthy3259
2026-11-02T04:20:44.619ZHealthy3239
2026-10-31T13:15:23.683ZHealthy1337
2026-10-29T23:05:25.739ZHealthy1372
2026-10-28T09:10:14.279ZHealthy1711
2026-10-26T20:35:12.574ZHealthy1187
2026-10-25T08:45:13.425ZHealthy1763

Tools (4)

sw_getGets one Star Wars entity by numeric record id and returns it as a JSON object. Take the id from the end of an entity's url field (from sw_search, sw_list or a relation URL). Ids are record ids, not episode numbers: FILMS id 1 is A New Hope (Episode IV). An unknown id returns a tool error, e.g. 'No
sw_listLists every entity of one Star Wars resource type as a JSON array (Episodes I-VI data). Responses are large (all 82 PEOPLE, about 38 KB); to find a single entity, prefer sw_search, then sw_get; for a compact index pass fields, e.g. ["name"] (about 5 KB).
sw_randomReturns one random Star Wars entity of the given resource type as a JSON object. Each call can return a different entity, so it is not idempotent. Useful for demos and quizzes; to fetch a specific entity use sw_search or sw_get.
sw_searchStart here. Finds Star Wars entities by name (title for FILMS) with a case-insensitive substring match: 'sky' finds Luke, Anakin and Shmi Skywalker. Returns a JSON array of full entities; an empty array [] means no match; pass fields to shorten each entity. The id to pass to sw_get is the last segme