Star Wars MCP

Star Wars API (SWAPI) as a remote MCP server: films, people, planets, species, starships, vehicles.

我该使用它吗

质量与安全性

A
描述质量
93%
模式完整度
100%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(1)

  • LOWTool 'sw_random' description lacks action verb在 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_search
retrieve_data
Get details about [item] from Star Wars MCP
预期工具: sw_get
fetch_info
Fetch [information type] using Star Wars MCP
预期工具: sw_get
find_specific
Find [specific item] using Star Wars MCP
预期工具: sw_search
list_items
List all [items] available in Star Wars MCP
预期工具: sw_list

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具