mcp-server-swapy

mcp-server-swapy

MCP server for querying the Star Wars universe via the SWAPI API, providing access to characters, films, starships, vehicles, species, and planets.

Category
Visit Server

README

MCP Server - Star Wars API Yarn License

Servidor MCP (Model Context Protocol) para consultas ao universo Star Wars via SWAPI. Ideal para integrações, estudos e demonstrações de arquitetura em camadas com Node.js/TypeScript.

Sumário

Sobre o Projeto

  • Inspirado no projeto base do canal Código Fonte TV (veja créditos abaixo).
  • Reimplementado para consumir a API pública SWAPI, trazendo informações sobre personagens, filmes, naves, veículos, espécies e planetas do universo Star Wars.
  • Desenvolvido em Node.js/TypeScript, seguindo arquitetura em camadas (DDD):
    • Domain: Modelos de domínio.
    • Infrastructure: Serviços de integração com a SWAPI.
    • Application: Lógica de negócio e formatação dos dados.
    • Interface: Controladores MCP e validação de entrada.
    • main.ts: Ponto de entrada do servidor MCP.

Pré-requisitos

Como executar

  1. Instale as dependências:
    yarn install
    
  2. Faça o build do projeto:
    yarn build
    
  3. Configure o client para se comunicar com mcp-server, mais informações, clique aqui.

O servidor ficará disponível via stdio, pronto para receber requisições MCP.

Scripts disponíveis

Os principais scripts configurados no package.json para uso com Yarn são:

  • yarn build: Compila o projeto TypeScript para JavaScript na pasta build/.
  • yarn test: Executa os testes automatizados com Jest.

Você pode rodar os scripts assim:

yarn build   # Compila o projeto
yarn test    # Executa os testes

Sobre a SWAPI

A SWAPI é uma API REST aberta, sem autenticação, que fornece dados do universo Star Wars. Principais recursos disponíveis:

  • People (/people/): Personagens icônicos como Luke Skywalker, Darth Vader, etc.
  • Films (/films/): Informações sobre os filmes da saga.
  • Starships (/starships/): Naves espaciais.
  • Vehicles (/vehicles/): Veículos terrestres e aéreos.
  • Species (/species/): Espécies do universo Star Wars.
  • Planets (/planets/): Planetas famosos como Tatooine, Hoth, Naboo, etc.

Exemplos de uso da API

  • Buscar um personagem:
    curl https://swapi.bry.com.br/api/people/1/
    # Retorna dados de Luke Skywalker
    
  • Buscar um planeta:
    curl https://swapi.bry.com.br/api/planets/1/
    # Retorna dados de Tatooine
    
  • Buscar por nome:
    curl "https://swapi.bry.com.br/api/people/?search=leia"
    # Busca personagens com nome contendo 'leia'
    

Contribuição

Contribuições são bem-vindas! Para contribuir:

  • Faça um fork do projeto
  • Crie uma branch com sua feature ou correção
  • Envie um pull request
  • Abra issues para sugestões ou bugs

Licença

Distribuído sob a licença ISC. Veja o arquivo LICENSE para mais detalhes.

Créditos

Este projeto foi baseado no exemplo do canal Código Fonte TV, adaptado para consumir a SWAPI.

Para mais detalhes sobre a SWAPI, acesse a documentação oficial.


Feito com ☕ por Gustavo Freitas. Dúvidas ou sugestões: LinkedIn

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured