Star Wars MCP

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

Should I use this

Quality & Safety

A
Description quality
93%
Schema completeness
100%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'sw_random' description lacks action verbin sw_random

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~527Tokens (tool definitions)
~674 BTypical response size
Minimal attention impact (0.41% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "star-wars": {
      "url": "https://swapi.build/mcp"
    }
  }
}

Remote endpoints

https://swapi.build/mcpstreamable-http

What it can do

Tool inventory

Tools (4)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢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.

Input 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.

Input 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.

Input 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.

Input 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"
  ]
}

Recommended Prompts

search_research
Search for information about [topic] using Star Wars MCP
Expected tools: sw_search
retrieve_data
Get details about [item] from Star Wars MCP
Expected tools: sw_get
fetch_info
Fetch [information type] using Star Wars MCP
Expected tools: sw_get
find_specific
Find [specific item] using Star Wars MCP
Expected tools: sw_search
list_items
List all [items] available in Star Wars MCP
Expected tools: sw_list

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded4 tools
verifiedversion not recorded4 tools