Star Wars API & MCP server (swapi.build)
build.swapi/star-wars
MCP server OK 4 tools
What it is for
Gives access to Star Wars data from SWAPI: people, films, planets, species, starships and vehicles, through `sw_search`, `sw_list`, `sw_get` and `sw_random`.
Summary written by L’Atlas on 29 Nov 2026, rewritten only from the author’s description and the tools seen by our test. Author’s text below.
Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.
Technical sheet
- Author
- swapi.build (registry namespace)
- Repository
- github.com/eldermoraes/swapi.build
- Site
- swapi.build
- Version
- 2.17.2
- Transport
- Streamable HTTP
- Authentication
- None (observed by our test)
- Server address
- https://swapi.build/mcp Streamable HTTP
- Tools
- 4
- Categories
- —
- Last updated
- 25 Nov 2026
- Published
- 25 Nov 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 1 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/build.swapi/star-wars)<a href="https://latlas.dev/en/mcp/build.swapi/star-wars"><img src="https://latlas.dev/badge/statut/mcp/build.swapi/star-wars.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/build.swapi/star-wars)<a href="https://latlas.dev/en/mcp/build.swapi/star-wars"><img src="https://latlas.dev/badge/fiche/build.swapi/star-wars.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://swapi.build/mcp
- Last result
- OK 28 Nov 2026, 08:10
- Response time
- 2,043 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- swapi.build 2.17.2
- Tools
- 4
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 08:10 | OK | 2,043 ms | 4 |
With small models
Does the local model pick the right tool with valid arguments? Tasks written from this server’s tools, no tool executed. Method · Ranking
This test measures tool choice and parameter validity on this server, without executing anything. Multi-step tasks are measured separately, in our sandboxes (multi-step test).
This server’s tool list adds 1,330 tokens to the prompt.
Mac mini M4 24 GB
| Model | Tasks passed | Right tool | Median time | Date |
|---|---|---|---|---|
| Bonsai 2 27B | 4/4 100 % | 4/4 | 11.8 s | 1 Dec 2026 |
| Gemma 4 E4B | 4/4 100 % | 4/4 | 1,791 ms | 1 Dec 2026 |
| GPT-OSS 20B | 4/4 100 % | 4/4 | 1,753 ms | 1 Dec 2026 |
| Nemotron 3.5 Bolt E4B | 4/4 100 % | 4/4 | 1,868 ms | 2 Dec 2026 |
| Ornith 1.5 9B | 4/4 100 % | 4/4 | 3,046 ms | 1 Dec 2026 |
| Qwen3.5 4B | 4/4 100 % | 4/4 | 1,606 ms | 30 Nov 2026 |
| Qwen3.5 9B | 4/4 100 % | 4/4 | 1,487 ms | 1 Dec 2026 |
“Works with small models” badge: at least 75% of tasks passed on average.
[](https://latlas.dev/en/mcp/build.swapi/star-wars#petits-modeles)Which model for this MCP?
Local: Mac mini M4 24 GB, Ollama. At equal success, the fastest. With a local model your requests stay on your machine; with the cloud they go to the provider. Cloud speed depends on the network and the provider. Local or cloud?
Exposed tools (4, from tools/list, 28 Nov 2026)
sw_get
Gets 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 films found with id 99'. Pass expand to get related records in the same call, e.g. ["homeworld", "species"]; name only the relations you need; * on a film can pass 50 KB.
| Parameter | Type | Required | Description |
|---|---|---|---|
| expand | array<string> | no | Optional. Relations to embed, one level deep, under a final "expanded" key: PEOPLE homeworld, films, species, vehicles, starships; FILMS characters, planets, starships, vehicles, species; PLANETS residents, films; SPECIES homeworld, people, films; STARSHIPS and VEHICLES pilots, films; or ["*"] alon… |
| id | integer | yes | Numeric record id: the last segment of the entity's url field (1 in .../api/people/1). |
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | yes | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
sw_list
Lists 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
| fields | array<string> | no | Optional. Field names to keep in each entity (url is always kept), e.g. ["name"] (FILMS: ["title"]). Up to 24 names; an unknown name returns a tool error listing the valid ones. Omit for full entities. |
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | yes | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
sw_random
Returns 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | yes | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
sw_search
Start 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 segment of each entity's url field. Data covers Episodes I-VI only.
| Parameter | Type | Required | Description |
|---|---|---|---|
| fields | array<string> | no | Optional. Field names to keep in each entity (url is always kept), e.g. ["name"] (FILMS: ["title"]). Up to 24 names; an unknown name returns a tool error listing the valid ones. Omit for full entities. |
| query | string | yes | Name or title fragment, case-insensitive (e.g. 'falcon', 'hope'). |
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | yes | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://swapi.build/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http star-wars https://swapi.build/mcpCustomize > Connectors > + Add > Add custom connector ; Name : star-wars ; URL : https://swapi.build/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : star-wars ; Server URL : https://swapi.build/mcp ; Create as a plugin{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}{
"mcpServers": {
"star-wars": {
"type": "http",
"url": "https://swapi.build/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}{
"mcpServers": {
"star-wars": {
"httpUrl": "https://swapi.build/mcp"
}
}
}[mcp_servers.star-wars]
url = "https://swapi.build/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
Star Wars API & MCP server (swapi.build) · L’Atlas · Tested on
[Star Wars API & MCP server (swapi.build) — L’Atlas](https://latlas.dev/en/mcp/build.swapi/star-wars)Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.