Star Wars MCP server
{
"mcpServers": {
"swapi-star-wars": {
"type": "http",
"url": "https://swapi.build/mcp"
}
}
}{
"mcpServers": {
"swapi-star-wars": {
"type": "http",
"url": "https://swapi.build/mcp"
}
}
}{
"mcpServers": {
"swapi-star-wars": {
"type": "http",
"url": "https://swapi.build/mcp"
}
}
}{
"servers": {
"swapi-star-wars": {
"type": "http",
"url": "https://swapi.build/mcp"
}
}
}{
"mcpServers": {
"swapi-star-wars": {
"type": "http",
"url": "https://swapi.build/mcp"
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsonversion 2.5.1
What it does
This server exposes Star Wars data (people, films, planets, species, starships, vehicles) from the SWAPI.build API as an MCP server. It is for developers building AI applications that need to query or retrieve Star Wars reference data.
- Look up details about a specific Star Wars character, planet, or starship by ID or name.
- Retrieve random Star Wars entities to populate sample data or generate creative prompts.
- Search across Star Wars resources by name or title substring to answer user questions about the franchise.
Tools this server exposes
| Tool | Does |
|---|---|
| sw_list | List all entities of a specified resource type (PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS, or VEHICLES). |
| sw_get | Retrieve a single entity by resource type and ID. |
| sw_random | Return a random entity from a specified resource type. |
| sw_search | Search for entities by name or title substring within a resource type. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.