JM

johnpapa/mcp-starwars

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

10 stars 6 forks 质量 67 趋势 18MIT

MCP Server for the SWAPI Star Wars API. The main goal of the project is to show how an MCP server can be used to interact with APIs.

概览

MCP Server for the SWAPI Star Wars API. The main goal of the project is to show how an MCP server can be used to interact with APIs. : All data used by this MCP server is fetched from the SWAPI documentation](https://swapi.dev). - : Get character data with optional search filters and automatic pagination - : Access all Star Wars entity collections with search capabilities - : Get detailed information about specific characters, planets, films, species, vehicles, or starships - : Seamlessly retrieve all pages of data with a single API call - : Optimize performance with intelligent API response caching - : Clear cache and view cache statistics to monitor performance - : Register this server with Model Context Protocol (MCP) tools (VS Code, Claude, etc.

README

以下为原文 README 节选,完整内容请查看原文。

MCP Server for the SWAPI Star Wars API. The main goal of the project is to show how an MCP server can be used to interact with APIs.

Note: All data used by this MCP server is fetched from the SWAPI documentation](https://swapi.dev).

🔧 Features

  • List Star Wars Characters: Get character data with optional search filters and automatic pagination
  • List Planets, Films, Species, Vehicles, and Starships: Access all Star Wars entity collections with search capabilities
  • Fetch Entity Details by ID: Get detailed information about specific characters, planets, films, species, vehicles, or starships
  • Automatic Pagination: Seamlessly retrieve all pages of data with a single API call
  • Built-in Caching: Optimize performance with intelligent API response caching
在 GitHub 查看完整 README

安装

npx -y @johnpapa/mcp-starwars
新手?先看 mcpskill.org 教程 →