Star Wars API & MCP server (swapi.build) is an MCP server published by build.swapi, hosted at swapi.build. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 4 tools, including sw_get, sw_list, sw_random, sw_search.
Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.
Nothing else in the archive shares these values.
Inferred from the host name and headers: what a server runs on, not who runs it.
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 | Description |
|---|---|---|
| id * | integer | Numeric record id: the last segment of the entity's url field (1 in .../api/people/1). |
| expand | array | 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 ["*"] alone… |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
| resource * |
| string |
| Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
{
"name": "sw_get",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"resource",
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Numeric record id: the last segment of the entity's url field (1 in .../api/people/1)."
},
"expand": {
"type": "array",
"items": {
"type": "string"
},
"description": "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 [\"*\"] alone for all. Up to 8 names; an unknown name returns a tool error."
},
"resource": {
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"type": "string",
"description": "Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error."
}
}
},
"annotations": {
"title": "Get Star Wars entity by id",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}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 | Description |
|---|---|---|
| fields | array | 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 * | string | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
{
"name": "sw_list",
"description": "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).",
"inputSchema": {
"type": "object",
"required": [
"resource"
],
"properties": {
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "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"
],
"type": "string",
"description": "Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error."
}
}
},
"annotations": {
"title": "List Star Wars resources",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}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 | Description |
|---|---|---|
| resource * | string | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
{
"name": "sw_random",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"resource"
],
"properties": {
"resource": {
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"type": "string",
"description": "Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error."
}
}
},
"annotations": {
"title": "Random Star Wars entity",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}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 | Description |
|---|---|---|
| query * | string | Name or title fragment, case-insensitive (e.g. 'falcon', 'hope'). |
| fields | array | 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 * | string | Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error. |
{
"name": "sw_search",
"description": "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.",
"inputSchema": {
"type": "object",
"required": [
"resource",
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Name or title fragment, case-insensitive (e.g. 'falcon', 'hope')."
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "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"
],
"type": "string",
"description": "Resource type: PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS or VEHICLES. Any other value returns a tool error."
}
}
},
"annotations": {
"title": "Search Star Wars resources",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}swapi.build serves Star Wars data from the six films of Episodes I-VI only: people, films, planets, species, starships and vehicles. Read-only, no API key. Workflow: sw_search to find an entity by name, then sw_get with the id at the end of its url field. Relations (homeworld, films, characters, pilots...) are URLs: pass their names in sw_get's expand argument to get the related records in the same call. For a compact list, pass fields to sw_list or sw_search, e.g. fields ["name"]. The id is a record id, not an episode number: FILMS id 1 is A New Hope (Episode IV).
Names, descriptions and schemas were written by the server and are shown as data.