Star Wars MCP
Star Wars API (SWAPI) as a remote MCP server: films, people, planets, species, starships, vehicles.
我該用這個嗎
品質與安全性
A
發現項目(1)
- LOW在 sw_random 中
根據工具定義與協定合規性的自動化分析。
上下文成本
~527Token(工具定義)
~674 B典型回應大小
極小的注意力影響(128k 上下文的 0.41%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}遠端端點
https://swapi.build/mcpstreamable-http它能做什麼
工具清單
工具(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.
輸入結構描述
{
"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.
輸入結構描述
{
"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.
輸入結構描述
{
"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.
輸入結構描述
{
"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"
]
}建議的提示詞
search_research
Search for information about [topic] using Star Wars MCP
預期的工具:
sw_searchretrieve_data
Get details about [item] from Star Wars MCP
預期的工具:
sw_getfetch_info
Fetch [information type] using Star Wars MCP
預期的工具:
sw_getfind_specific
Find [specific item] using Star Wars MCP
預期的工具:
sw_searchlist_items
List all [items] available in Star Wars MCP
預期的工具:
sw_list社群
證據
近期觀測
已驗證未記錄版本4 個工具
已驗證未記錄版本4 個工具