# Swapi MCP

> Swapi MCP is an open-source MCP server. SWAPI: characters, planets, films, starships, vehicles and species, with film cross-references. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mrfentmen/awesome-servers
- **MCP Registry name:** io.github.mrfentmen/swapi-mcp
- **Listing updated:** 2026-11-13

## About

SWAPI: characters, planets, films, starships, vehicles and species, with film cross-references.

## Install

### Claude Code (Terminal)

```sh
claude mcp add swapi-mcp -- npx -y swapi-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "swapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "swapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "swapi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "swapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "swapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "swapi-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Swapi MCP free?

Yes. Swapi MCP is open source, so you can use and self-host it for free.

### How do I add Swapi MCP to Claude Code?

Run this command in your terminal: claude mcp add swapi-mcp -- npx -y swapi-mcp

---
Source: https://ai-powered.com/mcp/swapi-mcp-2
