MCP.so
登录

MCP Starwars

@johnpapa

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

johnpapa

提交者

John Papa

关于 MCP Starwars

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 Starwars 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-starwars": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@johnpapa/mcp-starwars",
        "--client",
        "claude"
      ]
    }
  }
}

MCP Starwars 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Mcp Starwars?

Mcp Starwars is a Model Context Protocol (MCP) server that provides access to the SWAPI Star Wars API, allowing AI assistants to query characters, planets, films, species, vehicles, and starships. It is designed to demonstrate how an MCP server can interact with external APIs.

How to use Mcp Starwars?

Install via npx (npx -y @johnpapa/mcp-starwars) or Docker, then configure as an MCP tool in VS Code or Claude Desktop. For local testing, clone the repository and run the MCP Inspector.

Key features of Mcp Starwars

  • List and search Star Wars characters, planets, films, and more
  • Fetch detailed entity information by unique ID
  • Automatic pagination retrieves all results in one call
  • Built-in caching for optimized API performance
  • Cache management tools to clear or view cache statistics
  • Seamless integration with MCP-compatible hosts (VS Code, Copilot, Claude)

Use cases of Mcp Starwars

  • AI-powered Star Wars trivia and data exploration
  • Building interactive chatbot experiences with Star Wars lore
  • Educational demonstrations of MCP server capabilities
  • Rapid prototyping of agentic workflows using structured API data

常见问题

1

What data does Mcp Starwars use?

All data is fetched from the SWAPI documentation at [swapi.dev](https://swapi.dev).

2

What runtime does Mcp Starwars require?

Node.js version 20 or higher.

3

How do I install Mcp Starwars in VS Code?

Use the VS Code installation buttons in the README, or run `code --add-mcp` with the appropriate JSON configuration. You can also add it manually via VS Code settings or a `.vscode/mcp.json` file.

4

Can I run Mcp Starwars locally for testing?

Yes, clone the repository, install dependencies (`npm install`), build (`npm run build`), then start the MCP Inspector with `npx @modelcontextprotocol/inspector node build/index.js`.

5

Does Mcp Starwars require any authentication or API keys?

No, the SWAPI API is public and requires no authentication.

评论

其他 分类下的更多 MCP 服务器