Swapi MCP Server

MCP server for SWAPI API

Local serverstdioTypeScript

What is the Swapi MCP Server?

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

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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

MCP server for SWAPI API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.