Swapi MCP Server

MCP server for SWAPI API

Local serverstdioTypeScript

What is the Swapi MCP server?

Most developer tooling work still happens through a UI a human drives. Swapi MCP server moves it into the conversation instead. MCP server for SWAPI API.

The short version

A TypeScript-based Model Context Protocol (MCP) server that exposes Star Wars API data as MCP tools.

  • MCP server built with TypeScript
  • stdio-based MCP transport
  • Fetches Star Wars data from SWAPI
  • Tool schema validation with Zod
  • Includes Vitest test setup
  • Supports coverage reports

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

What it needs from you

  • Node.js 20 or newer - npm Some MCP-related dependencies require Node.js 20+, so using the latest LTS version is recommended.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by abhishekjkrsna; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Swapi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

How to install the Swapi MCP server

{ "mcpServers": { "swapi-mcp": { "command": "npm", "args": ["start"] } } }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 20 or newer - npm Some MCP-related dependencies require Node.js 20+, so using the latest LTS version is recommended.

Frequently asked questions

It connects Swapi to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Swapi directly.