
Swapi Mcp
io.github.abhishekjkrsnaPublished by GitHub account abhishekjkrsnav1.0.4Updated Oct 24, 2026
MCP server for SWAPI API
The publisher's own server: Star Wars API & MCP server (swapi.build)
Overview
A local MCP server that exposes Star Wars API (SWAPI) data, letting an assistant list data categories and look up character information.
- What you can do
- List the available Star Wars information categories from SWAPI, such as people, planets, films, species, vehicles and starships, as a comma-separated list. Retrieve Star Wars character information through the project's character tool. Data is fetched from the public Star Wars API over stdio transport.
- When to use it
- Useful when you want an assistant to answer questions about Star Wars characters or to discover which SWAPI data categories exist, for demos, testing or casual exploration rather than production data work.
- Requirements
- Runs locally as an npm package over stdio. Needs Node.js 20 or newer and npm; the README's client configuration runs it with npm start from the project directory. Network access to the Star Wars API is implied. No authentication, environment variables or headers are declared.
Installation
In SourceWeft
- Open Swapi Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
SWAPI MCP
A TypeScript-based Model Context Protocol (MCP) server that exposes Star Wars API data as MCP tools.
This project connects to the Star Wars API (SWAPI) and makes selected Star Wars information available through MCP-compatible clients using stdio transport.
Features
- 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
Tech Stack
- TypeScript
- Node.js
- Model Context Protocol SDK
- Zod
- Vitest
- tsx
Project Structure
text swapi-mcp/ ├── src/ # Source code ├── tests/ # Test files and mock data │ ├── api/ │ └── mock_data/ ├── package.json ├── package-lock.json ├── tsconfig.json └── vitest.config.js
Requirements
- Node.js 20 or newer
- npm
Some MCP-related dependencies require Node.js 20+, so using the latest LTS version is recommended.
Installation
npm install
Clone the repository and install dependencies:
Available Scripts
Start the development server
npm run start
Runs the MCP server directly from TypeScript using tsx.
Build the project
npm run build
Compiles TypeScript into JavaScript using the TypeScript compiler.
Run tests
npm run test
When started, the server connects using stdio and can be used by MCP-compatible clients.
Available Tools
get-list-of-star-wars-information
Returns a comma-separated list of available Star Wars information categories from SWAPI, such as:
- people
- planets
- films
- species
- vehicles
- starships
get-information-of-star-wars-characters
Returns Star Wars character information exposed by the project’s character tool.
Example MCP Client Configuration
You can configure an MCP-compatible client to run this server with npm:
If your client requires an absolute working directory, configure it like this:
Source: README.md at commit 57eae25
Tools
0Version history
1- v1.0.4LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.
Other Swapi integrations
Star Wars API & MCP server (swapi.build)
build.swapiOfficial publisher
Free, read-only remote MCP server for Star Wars data from Episodes I-VI: search, list, fetch by id, or pick a random person, film, planet, species, starship…

Swapi Mcp
Published by GitHub account mrfentmen
A local stdio MCP server that gives an assistant Star Wars data from SWAPI: characters, planets, films, starships, vehicles and species, with film…

Swapi
Published by GitHub account pipeworx-io
Pipeworx's SWAPI connector: lets an assistant look up Star Wars characters, planets, starships and films, plus route other data questions through the gateway.