Star Wars MCP
Star Wars API (SWAPI) as a remote MCP server: films, people, planets, species, starships, vehicles.
Should I use this
Quality & Safety
Findings (1)
- LOWin sw_random
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}Remote endpoints
https://swapi.build/mcpstreamable-httpWhat it can do
Tool inventory
Tools (4)
🟢sw_get(resource, id)
Gets one Star Wars entity by numeric id. Ids are the record ids from each entity's url field (e.g. FILMS id 1 = A New Hope). Returns a JSON object.
Input Schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"description": "Resource type"
},
"id": {
"type": "integer",
"description": "Numeric record id (from the entity's url field)"
}
},
"required": [
"resource",
"id"
]
}🟢sw_list(resource)
Lists all entities of a Star Wars resource type from swapi.build. Returns a JSON array.
Input Schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"description": "Resource type"
}
},
"required": [
"resource"
]
}🟢sw_random(resource)
Returns one random Star Wars entity of the given resource type. Great for live demos. Returns a JSON object.
Input Schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"description": "Resource type"
}
},
"required": [
"resource"
]
}🟢sw_search(resource, query)
Searches a Star Wars resource by name (title for FILMS), case-insensitive substring match. Returns a JSON array.
Input Schema
{
"type": "object",
"properties": {
"resource": {
"type": "string",
"enum": [
"PEOPLE",
"FILMS",
"PLANETS",
"SPECIES",
"STARSHIPS",
"VEHICLES"
],
"description": "Resource type"
},
"query": {
"type": "string",
"description": "Name/title fragment"
}
},
"required": [
"resource",
"query"
]
}Recommended Prompts
sw_searchsw_getsw_getsw_searchsw_listCommunity
Evidence