Star Wars API & MCP server (swapi.build)
build.swapi/star-wars
Serveur MCP OK 4 outils
À quoi ça sert
Donne accès aux données Star Wars de SWAPI : personnages, films, planètes, espèces, vaisseaux et véhicules, avec `sw_search`, `sw_list`, `sw_get` et `sw_random`.
Résumé rédigé par L’Atlas le 29 nov. 2026, reformulé seulement à partir de la description de l’auteur et des outils vus par notre test. Texte de l’auteur ci-dessous.
Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.
Fiche technique
- Auteur
- swapi.build (espace de noms du registre)
- Dépôt
- github.com/eldermoraes/swapi.build
- Site
- swapi.build
- Version
- 2.17.2
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://swapi.build/mcp Streamable HTTP
- Outils
- 4
- Catégories
- —
- Dernière mise à jour
- 25 nov. 2026
- Publication
- 25 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/build.swapi/star-wars)<a href="https://latlas.dev/mcp/build.swapi/star-wars"><img src="https://latlas.dev/badge/fiche/build.swapi/star-wars.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://swapi.build/mcp
- Dernier résultat
- OK 28 nov. 2026, 08:10
- Temps de réponse
- 2 043 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- swapi.build 2.17.2
- Outils
- 4
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 08:10 | OK | 2 043 ms | 4 |
Avec les petits modèles
Le modèle local choisit-il le bon outil avec des arguments valides ? Tâches rédigées à partir des outils de ce serveur, aucun outil exécuté. Méthode · Classement
Ce test mesure le choix de l’outil et la validité des paramètres sur ce serveur, sans rien exécuter. Les tâches en plusieurs étapes sont mesurées à part, dans nos bacs à sable (test en plusieurs étapes).
La liste d’outils de ce serveur ajoute 1 330 tokens au prompt.
Mac mini M4 24 Go
| Modèle | Tâches réussies | Bon outil | Temps médian | Date |
|---|---|---|---|---|
| Bonsai 2 27B | 4/4 100 % | 4/4 | 11,8 s | 1 déc. 2026 |
| Gemma 4 E4B | 4/4 100 % | 4/4 | 1 791 ms | 1 déc. 2026 |
| GPT-OSS 20B | 4/4 100 % | 4/4 | 1 753 ms | 1 déc. 2026 |
| Ornith 1.5 9B | 4/4 100 % | 4/4 | 3 046 ms | 1 déc. 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 déc. 2026 |
Badge « marche avec les petits modèles » : au moins 75 % des tâches réussies en moyenne.
[](https://latlas.dev/mcp/build.swapi/star-wars#petits-modeles)Outils exposés (4, réponse à 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| expand | array<string> | non | 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 | oui | 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" | oui | 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).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| fields | array<string> | non | 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" | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | oui | 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| fields | array<string> | non | 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 | oui | Name or title fragment, case-insensitive (e.g. 'falcon', 'hope'). |
| resource | enum: "PEOPLE" | "FILMS" | "PLANETS" | "SPECIES" | "STARSHIPS" | "VEHICLES" | oui | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://swapi.build/mcp. Formats repris de la documentation de chaque client.
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"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
Star Wars API & MCP server (swapi.build) · L’Atlas · Test du
[Star Wars API & MCP server (swapi.build) — L’Atlas](https://latlas.dev/mcp/build.swapi/star-wars)Source : Registre officiel MCP · relevé le 1 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.