Star Wars MCP
Star Wars API (SWAPI) as a remote MCP server: films, people, planets, species, starships, vehicles.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (1)
- LOWen sw_random
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}Puntos de conexión remotos
https://swapi.build/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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.
Esquema de entrada
{
"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"
]
}Prompts recomendados
sw_searchsw_getsw_getsw_searchsw_listComunidad
Evidencia