Que pouvez-vous faire avec io.github.abhishekjkrsna/swapi-mcp ?
- 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
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@abhishekjkrsna/swapi-mcpclaude mcp add swapi-mcp -- npx -y @abhishekjkrsna/swapi-mcp@1.0.4
{
"mcpServers": {
"swapi-mcp": {
"command": "npx",
"args": [
"-y",
"@abhishekjkrsna/swapi-mcp@1.0.4"
]
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
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:
{ "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" } } }
Questions fréquentes
Qu'est-ce que io.github.abhishekjkrsna/swapi-mcp ?
MCP server for SWAPI API
Comment installer io.github.abhishekjkrsna/swapi-mcp ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add swapi-mcp -- npx -y @abhishekjkrsna/swapi-mcp@1.0.4. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.abhishekjkrsna/swapi-mcp ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.abhishekjkrsna/swapi-mcp est-il open source ?
Son code est public sur GitHub, mais le dépôt ne déclare pas de licence standard.
Qui maintient io.github.abhishekjkrsna/swapi-mcp ?
Il est publié par abhishekjkrsna. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.