swapi-build
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swapi-buildGet me a random Star Wars character"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SWAPI.build
A free, open-source Star Wars API serving data about People, Films, Planets, Species, Starships, and Vehicles. Built with Quarkus and GraalVM for instant startup, minimal memory footprint, and out-of-the-box performance.
Inspired by the original SWAPI (created by Paul Hallett, maintained by Juriy Bura), this project was born out of the need for a Star Wars API that never goes offline. If you've ever had a live demo break because a third-party API went down, you know why this exists.
Quick Start
Prerequisites: Java 25 and Maven (or use the included Maven Wrapper).
cd swapi-app
./mvnw quarkus:devThe API and frontend will be available at http://localhost:5432.
Related MCP server: Simple MCP Server - Star Wars API
API Endpoints
Base path: /api
Resource | List All | By ID | Random | Search |
People |
|
|
|
|
Films |
|
|
|
|
Planets |
|
|
|
|
Species |
|
|
|
|
Starships |
|
|
|
|
Vehicles |
|
|
|
|
Ids are the record ids from each entity's url field (for films, 1 = A New Hope).
Successful responses return 200; unknown or non-numeric ids return 404.
All responses are JSON. Example:
curl http://localhost:5432/api/people/1OpenAPI
The full API contract is served at /openapi.json
(OpenAPI 3.x, generated from the code — always in sync). The
documentation page renders from it, including a
"try it" for every endpoint. Generate a client with, e.g.:
npx @openapitools/openapi-generator-cli generate -i https://swapi.build/openapi.json -g typescript-fetchMCP Server
swapi.build is also a remote MCP server over
Streamable HTTP. Any Streamable HTTP client works: the stateless 2026-07-28
revision sends self-contained requests, and earlier revisions negotiate a session
through initialize — both are served on the same endpoint. The legacy HTTP+SSE
transport (2024-11-05) is not supported. First-party, read-only, no authentication:
https://swapi.build/mcpFull setup guides: swapi.build/docs/mcp
Tool | Arguments | Returns |
|
| All entities of a resource |
|
| One entity by id |
|
| A random entity |
|
| Name/title substring match |
resource is one of PEOPLE, FILMS, PLANETS, SPECIES, STARSHIPS, VEHICLES.
Ids are the record ids from each entity's url field (for FILMS, 1 = A New Hope).
claude mcp add --transport http swapi-build https://swapi.build/mcpOr share via .mcp.json at the repo root:
{
"mcpServers": {
"swapi-build": { "type": "http", "url": "https://swapi.build/mcp" }
}
}Verify: claude mcp list → swapi-build ✔ Connected.
Settings → Connectors → Add custom connector → name swapi-build, URL
https://swapi.build/mcp. No authentication needed. Verify in any chat via the + menu → Connectors.
codex mcp add swapi-build --url https://swapi.build/mcpOr in ~/.codex/config.toml (shared by CLI, IDE extension and ChatGPT desktop):
[mcp_servers.swapi-build]
url = "https://swapi.build/mcp"Verify: codex mcp list.
.vscode/mcp.json (top-level key is servers):
{
"servers": {
"swapi-build": { "type": "http", "url": "https://swapi.build/mcp" }
}
}Or Command Palette → MCP: Add Server. Verify via the Configure Tools button in Copilot Chat. On Business/Enterprise, the "MCP servers in Copilot" org policy must be enabled.
~/.bob/settings/mcp_settings.json (global) or .bob/mcp.json (project):
{
"mcpServers": {
"swapi-build": {
"type": "streamable-http",
"url": "https://swapi.build/mcp",
"disabled": false
}
}
}Or Bob panel → MCP tab → Edit Global MCP. Bob detects the tools automatically.
The server scales to zero when idle — if the very first connection attempt fails, retry once (the native binary starts in tens of milliseconds; the platform may take a bit longer to provision the container; subsequent calls are fast, whether your client is stateless or session-based).
Client examples
examples/java/langchain4j-mcp-client— ask questions in natural language; the tools come from the MCP server above, so the example defines none.examples/java/quarkus-rest-client— call the REST API from Java with a typed client.
Project Structure
swapi-app/
Dockerfile.vercel # Native container image used by Vercel deploys
src/main/
java/com/eldermoraes/ # Backend (Quarkus + Jakarta REST)
film/ # Film model, service, resource
people/ # People model, service, resource
planet/ # Planet model, service, resource
specie/ # Specie model, service, resource
starship/ # Starship model, service, resource
vehicle/ # Vehicle model, service, resource
mcp/ # MCP server tools (sw_list, sw_get, sw_random, sw_search)
SWObject.java # Base model class
SWService.java # Service interface
ApiResource.java # Root /api endpoint
ApplicationPath.java # Jakarta REST base path (/api)
resources/
data/ # Static JSON data files
application.properties # Quarkus configuration
webui/ # Frontend (TypeScript + Vite)
src/
api.ts # API client with request management
main.ts # SPA router
pages/ # Page renderers (home, resource, docs, mcp, about, privacy, terms)
json-highlight.ts # JSON syntax highlighting for result panels
style.css # Site styles
types.ts # TypeScript interfaces for API resources
constants.ts # Shared resource metadata
utils.ts # Shared utilities (escapeHtml)
src/test/
java/com/eldermoraes/ # Regression suite (REST contracts, MCP tools, forwarded headers)Each backend domain (film, people, planet, etc.) follows the same pattern:
Model (e.g.,
Film.java): POJO with@RegisterForReflectionfor native image supportService (e.g.,
FilmService.java): loads data from JSON at startup, caches in memoryResource (e.g.,
FilmResource.java): Jakarta REST controller with@RunOnVirtualThread
Build
cd swapi-app
# Development mode (live reload)
./mvnw quarkus:dev
# Production JAR
./mvnw package
java -jar target/quarkus-app/quarkus-run.jar
# Native executable (requires GraalVM or container build)
./mvnw package -Dnative
./mvnw package -Dnative -Dquarkus.native.container-build=trueThe frontend is automatically built and bundled by Quinoa during the Maven build. No separate npm step is needed.
Deployment
The app runs on Vercel as a native (GraalVM/Mandrel) container image, built from swapi-app/Dockerfile.vercel. DNS is managed on Cloudflare (DNS-only records pointing to Vercel). Deploys are done with npx vercel deploy --prod from the swapi-app/ directory.
Tech Stack
Runtime: Quarkus 3.33 on Java 25 with Virtual Threads
MCP server: Quarkiverse MCP Server — Streamable HTTP, stateless and session-based clients
Serialization: Jakarta REST + JSON-B
Native image: GraalVM via Mandrel builder
Frontend: TypeScript + Vite, served by Quinoa
Contributing
Pull requests are always welcome. Whether it's fixing a bug, improving the docs, or adding new features, jump in and help make the best Star Wars API in the galaxy even better.
Fork the repository
Create your feature branch (
git checkout -b feature/my-change)Make your changes (with tests) and run the suite:
cd swapi-app && ./mvnw testCommit and push
Open a Pull Request
Changelog and releases
Release history lives in CHANGELOG.md. Tagged releases are on the
Releases page. The version
served in /openapi.json (info.version) is always the latest released version.
The release process itself is documented in docs/RELEASE.md.
Credits
Original SWAPI by Paul Hallett, maintained by Juriy Bura
Star Wars data from community-driven sources such as Wookieepedia
All Star Wars content and imagery are property of Lucasfilm Ltd. and Disney. This project is not affiliated with or endorsed by Lucasfilm or Disney.
License
Licensed under the Apache License 2.0. The website also publishes a Privacy Policy and Terms of Use.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceA comprehensive MCP server that wraps the complete World of Warcraft retail API into 197 tools for Game Data and Profile information. It enables users to query character statistics, achievements, collections, and game mechanics across all global regions and locales.Last updated7
- Alicense-qualityDmaintenanceEnables searching characters, planets, and films from the Star Wars universe via the SWAPI API.Last updated61ISC
- Alicense-qualityBmaintenanceEnables LLMs and clients to search for Star Wars characters, planets, and films by exposing SWAPI as MCP tools.Last updated1MIT
- Alicense-qualityDmaintenanceMCP server for querying the Star Wars universe via the SWAPI API, providing access to characters, films, starships, vehicles, species, and planets.Last updatedISC
Related MCP Connectors
MCP server exposing live Helldivers 2 galactic war data.
Rick and Morty MCP — wraps the Rick and Morty API (free, no auth)
An MCP server for deep research or task groups
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/eldermoraes/swapi.build'
If you have feedback or need assistance with the MCP directory API, please join our Discord server