SWAPI MCP
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 MCPWhat Star Wars categories can you show me?"
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 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
Related MCP server: API-Market MCP Server
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:
{ "mcpServers": { "swapi-mcp": { "command": "npm", "args": ["start"] } } }If your client requires an absolute working directory, configure it like this:
{ "mcpServers": { "swapi-mcp": { "command": "npm", "args": ["start"], "cwd": "/absolute/path/to/swapi-mcp" } } }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
- Alicense-qualityCmaintenanceA server that enables interaction with any API that has a Swagger/OpenAPI specification through Model Context Protocol (MCP), automatically generating tools from API endpoints and supporting multiple authentication methods.Last updated91116Apache 2.0
- AlicenseCqualityDmaintenanceA Model Context Protocol server that exposes over 200+ APIs from API.market as MCP resources, allowing large language models to discover and interact with various APIs through natural language commands.Last updated341004MIT
- Alicense-qualityDmaintenanceThis MCP server provides tools like weather lookup and follows the Model Context Protocol for tool calling, resource sharing, and prompt templates.Last updated327MIT
- Alicense-qualityDmaintenanceA toy MCP server for exploring Model Context Protocol capabilities, including resources, tools, and prompts.Last updatedApache 2.0
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server exposing live Helldivers 2 galactic war data.
Rick and Morty MCP — wraps the Rick and Morty API (free, no auth)
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/abhishekjkrsna/swapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server