原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Star Wars API & MCP server (swapi.build)

作者:eldermoraes版本 2.15.0i★ –i在云端运行
注册名称build.swapi/star-wars

安装

概览

作者提供的说明(英文原文)

Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://swapi.build/mcp

在终端中运行这条命令

claude mcp add --transport http star-wars https://swapi.build/mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "star-wars": {
      "url": "https://swapi.build/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "star-wars": {
      "type": "http",
      "url": "https://swapi.build/mcp"
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://swapi.build/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

工具名称和描述与服务器在 2026年11月7日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • sw_get

    Gets one Star Wars entity by numeric record id and returns it as a JSON object. Take the id from the end of an entity's url field (from sw_search, sw_list or a relation URL). Ids are record ids, not episode numbers: FILMS id 1 is A New Hope (Episode IV). An unknown id returns a t

  • sw_list

    Lists every entity of one Star Wars resource type as a JSON array (Episodes I-VI data). Responses are large (all 82 PEOPLE, about 38 KB); to find a single entity, prefer sw_search, then sw_get; for a compact index pass fields, e.g. ["name"] (about 5 KB).

  • sw_random

    Returns one random Star Wars entity of the given resource type as a JSON object. Each call can return a different entity, so it is not idempotent. Useful for demos and quizzes; to fetch a specific entity use sw_search or sw_get.

  • sw_search

    Start here. Finds Star Wars entities by name (title for FILMS) with a case-insensitive substring match: 'sky' finds Luke, Anakin and Shmi Skywalker. Returns a JSON array of full entities; an empty array [] means no match; pass fields to shorten each entity. The id to pass to sw_g

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 swapi.build 验证(注册中心会核实域名所有权)

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • ✓ 通过

    端点有响应

    在 479 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 4 个工具描述,未发现针对 AI 的隐藏指令

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32673 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32673 个服务器的 79% 更新
  • 基础检查结果等于或优于此分类中其他 32673 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Star Wars API & MCP server (swapi.build) 安全吗?

它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(2.15.0)于9天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Systemdox

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Systemdox

作者:puglieseweb

Your architecture in your agents' context: checks, specs, ADRs and docs over MCP, at write time.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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 built to stay up for live demos. 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:dev

The API and frontend will be available at http://localhost:5432.

API Endpoints

Base path: /api

ResourceList AllBy IDRandomSearch
PeopleGET /api/peopleGET /api/people/:idGET /api/people/randomGET /api/people?search=name
FilmsGET /api/filmsGET /api/films/:idGET /api/films/randomGET /api/films?search=title
PlanetsGET /api/planetsGET /api/planets/:idGET /api/planets/randomGET /api/planets?search=name
SpeciesGET /api/speciesGET /api/species/:idGET /api/species/randomGET /api/species?search=name
StarshipsGET /api/starshipsGET /api/starships/:idGET /api/starships/randomGET /api/starships?search=name
VehiclesGET /api/vehiclesGET /api/vehicles/:idGET /api/vehicles/randomGET /api/vehicles?search=name

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.

GET /api/stats returns anonymous request counts per route (for example /api/people/{id} or /mcp) and per group (REST API, MCP, pages, SEO, other) for the last 24 hours (?period=24h, per hour), 7 days (default, per day; &granularity=hour for hourly) or 30 days (?period=30d, per day), each with the window before it for comparison, plus server response times per route and per group under performance (requests, mean, min, max, standard deviation and approximate p50/p95/p99 in milliseconds, network excluded). They are counted with no IP address or client details. The /stats page shows the same numbers with filters, a trend chart, a ranking and a Performance section.

All responses are JSON. Example:

curl http://localhost:5432/api/people/1

OpenAPI

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-fetch

MCP 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/mcp

Full setup guides: [swapi.build/docs/mcp](https://swapi.build/docs/mcp)

ToolArgumentsReturns
sw_listresource, optional fieldsAll entities of a resource
sw_getresource, id, optional expandOne entity by id
sw_randomresourceA random entity
sw_searchresource, query, optional fieldsName/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). expand names relations to embed in the same call (["homeworld", "species"], or ["*"]); fields projects each entity (["name"] gives a compact index; url always stays).

Since 2.13.0 the records are also MCP resources: swapi://people (an index) and swapi://people/1 (the sw_get text), for the six types, plus the templates swapi:// /{id}. The server prompt character_profile takes a character name.

Caching: Quarkiverse MCP Server 2.0.0 emits the required ttlMs: 0 and cacheScope: "public" fields on stateless discovery and tool-list responses. Zero TTL means immediately stale; no positive freshness period is configured. Its cache hints apply to discovery, list methods and resources/read, not `tools/call`. Tool-result caching is not enabled, including for sw_random. REST/edge caching is a separate mechanism.

Claude Code

claude mcp add --transport http swapi-build https://swapi.build/mcp

Or 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.

Claude Desktop & claude.ai

Settings → Connectors → Add custom connector → name swapi-build, URL https://swapi.build/mcp. No authentication needed. Verify in any chat via the + menu → Connectors.

OpenAI Codex

codex mcp add swapi-build --url https://swapi.build/mcp

Or 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.

GitHub Copilot (VS Code)

.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.

IBM Bob

~/.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).

WebMCP in the browser (experimental)

The website exposes sw_list, sw_get, sw_search and sw_random through WebMCP. Names and required arguments match the remote MCP tools, including uppercase resource names; the optional expand and fields arguments exist only on the remote server. Each browser tool updates the visible explorer and returns complete records in a JSON result with ok, data, resource and path. The browser result envelope differs from the remote MCP transport.

Use a compatible browser with WebMCP enabled and the document.modelContext API. The setup and demonstration guide explains the inspector, example calls and cancellation behavior. When the API is unavailable, the site works normally. No model API key or AI runtime is embedded in the site. The JavaScript is bundled by Quinoa and runs in the browser, including when served by the Quarkus native executable.

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/

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 @RegisterForReflection for native image support
  • Service (e.g., FilmService.java): loads data from JSON at startup, caches in memory
  • Resource (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=true

The frontend is automatically built and bundled by Quinoa during the Maven build. No separate npm step is needed.

Deployment

The app runs as a native (GraalVM/Mandrel) executable on a self-hosted server on Oracle Cloud, managed by systemd behind Caddy (TLS via Let's Encrypt). DNS is managed on Cloudflare (DNS-only records pointing to the server). Publishing a GitHub Release runs .github/workflows/native-binary.yml: test suite, native build attached to the Release, a manual approval, then the install on the server over SSH and the production probes. The runbook is docs/DEPLOY.md.

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.

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx