Star Wars MCP
Star Wars API (SWAPI) as a remote MCP server: films, people, planets, species, starships, vehicles.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (1)
- LOWin sw_random
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}Remote-Endpunkte
https://swapi.build/mcpstreamable-httpWas es kann
Tool-Inventar
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.
Eingabe-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.
Eingabe-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.
Eingabe-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.
Eingabe-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"
]
}Empfohlene Prompts
sw_searchsw_getsw_getsw_searchsw_listCommunity
Nachweis