MCP server for swapi api
git clone https://github.com/abhishekjkrsna/swapi-mcpMCP Servers overview
# 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:
```json
{ "mcpServers": { "swapi-mcp": { "command": "npm", "args": ["start"] } } }
```
If your client requires an absolute working directory, configure it like this:
```json
{ "mcpServers": { "swapi-mcp": { "command": "npm", "args": ["start"], "cwd": "/absolute/path/to/swapi-mcp" } } }
```What people ask about swapi-mcp
What is abhishekjkrsna/swapi-mcp?
+
abhishekjkrsna/swapi-mcp is mcp servers for the Claude AI ecosystem. MCP server for swapi api It has 0 GitHub stars and was last updated today.
How do I install swapi-mcp?
+
You can install swapi-mcp by cloning the repository (https://github.com/abhishekjkrsna/swapi-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is abhishekjkrsna/swapi-mcp safe to use?
+
abhishekjkrsna/swapi-mcp has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.
Who maintains abhishekjkrsna/swapi-mcp?
+
abhishekjkrsna/swapi-mcp is maintained by abhishekjkrsna. The last recorded GitHub activity is from today, with 0 open issues.
Are there alternatives to swapi-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy swapi-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/abhishekjkrsna-swapi-mcp)<a href="https://claudewave.com/repo/abhishekjkrsna-swapi-mcp"><img src="https://claudewave.com/api/badge/abhishekjkrsna-swapi-mcp" alt="Featured on ClaudeWave: abhishekjkrsna/swapi-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!