MCP 服务器

Star Wars MCP

build.swapi/star-wars
媒体与内容 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Provides searchable access to Star Wars films, characters, planets, species, starships, and vehicles.

sw_get
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.
只读 幂等
输入模式
{'type': 'object', 'required': ['resource', 'id'], 'properties': {'id': {'type': 'integer', 'description': "Numeric record id (from the entity's url field)"}, 'resource': {'enum': ['PEOPLE', 'FILMS', 'PLANETS', 'SPECIES', 'STARSHIPS', 'VEHICLES'], 'type': 'string', 'description': 'Resource type'}}}
sw_list
Lists all entities of a Star Wars resource type from swapi.build. Returns a JSON array.
只读 幂等
输入模式
{'type': 'object', 'required': ['resource'], 'properties': {'resource': {'enum': ['PEOPLE', 'FILMS', 'PLANETS', 'SPECIES', 'STARSHIPS', 'VEHICLES'], 'type': 'string', 'description': 'Resource type'}}}
sw_random
Returns one random Star Wars entity of the given resource type. Great for live demos. Returns a JSON object.
只读
输入模式
{'type': 'object', 'required': ['resource'], 'properties': {'resource': {'enum': ['PEOPLE', 'FILMS', 'PLANETS', 'SPECIES', 'STARSHIPS', 'VEHICLES'], 'type': 'string', 'description': 'Resource type'}}}
sw_search
Searches a Star Wars resource by name (title for FILMS), case-insensitive substring match. Returns a JSON array.
只读 幂等
输入模式
{'type': 'object', 'required': ['resource', 'query'], 'properties': {'query': {'type': 'string', 'description': 'Name/title fragment'}, 'resource': {'enum': ['PEOPLE', 'FILMS', 'PLANETS', 'SPECIES', 'STARSHIPS', 'VEHICLES'], 'type': 'string', 'description': 'Resource type'}}}
已添加
sw_search
2026年9月17日 07:58
已添加
sw_random
2026年9月17日 07:58
已添加
sw_list
2026年9月17日 07:58
已添加
sw_get
2026年9月17日 07:58