Star Wars API & MCP server (swapi.build)
by swapi.build · build.swapi/star-wars
Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key.
- Category
- Cloud and DevOps
- Connection
- Remote (HTTP)
- Tools
- 4 reported
- Status
- Online
Connect it to your AI
Claude Code
claude mcp add --transport http star-wars https://swapi.build/mcpClaude, ChatGPT, Cursor and other apps
Add it as a custom connector with this URL (Streamable HTTP):
https://swapi.build/mcpCursor, VS Code and other apps (mcp.json)
{
"mcpServers": {
"star-wars": {
"url": "https://swapi.build/mcp"
}
}
}Tools it offers
4 tools, as the server itself reported during our check on Oct 31, 2026.
sw_getGets 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: FILMsw_listLists 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 fsw_randomReturns 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 orsw_searchStart 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
Questions
What is the Star Wars API & MCP server (swapi.build) MCP server?
Free Star Wars MCP server (SWAPI): people, films, planets, species, starships, vehicles. No API key. It is made by swapi.build and listed in the official MCP Registry as build.swapi/star-wars. MCP (Model Context Protocol) is the open standard that lets AI apps like Claude, ChatGPT and Cursor use outside tools.
How do I add Star Wars API & MCP server (swapi.build) to Claude?
In the Claude app or claude.ai, open Settings, then Connectors, choose "Add custom connector" and paste https://swapi.build/mcp. In Claude Code, run: claude mcp add --transport http star-wars https://swapi.build/mcp
How do I add Star Wars API & MCP server (swapi.build) to ChatGPT?
ChatGPT can use remote MCP servers as connectors. In ChatGPT settings, under Apps and Connectors, turn on developer mode if asked, create a new connector and paste https://swapi.build/mcp.
How do I add Star Wars API & MCP server (swapi.build) to Cursor?
Open Cursor settings, go to MCP, choose "Add new MCP server" (or edit ~/.cursor/mcp.json) and add: { "mcpServers": { "star-wars": { "url": "https://swapi.build/mcp" } } }
Does Star Wars API & MCP server (swapi.build) work right now?
Yes. It responded when we last checked on 31 Oct 2026. We check remote MCP servers every day.
What can Star Wars API & MCP server (swapi.build) do?
It gives your AI 4 tools, including sw_get, sw_list, sw_random, sw_search. The full list is on this page.
Is this your server? Get the badge for your README
Markdown (GitHub README)
[](https://chen.media/mcp/build-swapi-star-wars)HTML (switches to dark mode on its own)
<a href="https://chen.media/mcp/build-swapi-star-wars"><picture><source media="(prefers-color-scheme: dark)" srcset="https://chen.media/mcp/badge/build-swapi-star-wars.svg?theme=dark"><img src="https://chen.media/mcp/badge/build-swapi-star-wars.svg" alt="Listed on chen.media/mcp" height="40"></picture></a>More in Cloud and DevOps
See allPostman MCP ServerVerified maker
postman.comGive your AI agents trusted access to the full Postman platform.
Atlassian Rovo MCP ServerVerified maker
atlassian.comConnect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
ZapierVerified maker
zapier.comHosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Vercel MCPVerified maker
vercel.comAn MCP server for Vercel
WixVerified maker
wix.comA Model Context Protocol server for Wix AI tools
Microsoft MCP Server for EnterpriseVerified maker
@microsoftOfficial Microsoft MCP Server to query Microsoft Entra data using natural language