Star Wars MCP Server logo

Star Wars MCP Server

by johnpapa

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.

View on GitHub

Last updated: N/A

What is Star Wars MCP Server?

The Star Wars MCP Server is a Model Context Protocol (MCP) server that provides access to data from the SWAPI (Star Wars API). It allows users to retrieve information about Star Wars characters, planets, films, species, vehicles, and starships using a set of predefined tools.

How to use Star Wars MCP Server?

The server can be installed and used in various environments, including VS Code, Claude Desktop (via Smithery), and GitHub Copilot. Installation instructions are provided for each environment. Once installed, the server exposes a set of tools that can be invoked to retrieve specific Star Wars data. The tools accept inputs such as search terms and IDs, and return structured data.

Key features of Star Wars MCP Server

  • List Star Wars Characters, Planets, Films, Species, Vehicles, and Starships

  • Fetch Entity Details by ID

  • Automatic Pagination

  • Built-in Caching

  • Cache Management

  • Tool-based MCP Integration

Use cases of Star Wars MCP Server

  • Integrating Star Wars data into VS Code extensions

  • Using Star Wars data in Claude Desktop for AI-powered tasks

  • Exploring the SWAPI API through a structured interface

  • Building applications that require access to Star Wars data

  • Demonstrating MCP server integration with various tools

FAQ from Star Wars MCP Server

What is SWAPI?

SWAPI is the Star Wars API, a RESTful API that provides access to data about Star Wars characters, planets, films, species, vehicles, and starships.

How do I install the Star Wars MCP Server in VS Code?

You can install it using the VS Code installation buttons at the top of the README, or manually using the command line or VS Code settings.

How do I use the tools provided by the server?

The tools can be invoked from within VS Code, Claude Desktop, or GitHub Copilot. Each tool has a specific description and input parameters. Refer to the 'Tools' section of the README for details.

Does the server support caching?

Yes, the server has built-in caching to optimize performance. You can clear the cache and view cache statistics using the clear_cache and get_cache_stats tools.

Can I use this server with GitHub Copilot?

Yes, the README provides instructions on how to configure the server to be discoverable by GitHub Copilot and how to use the tools within Copilot.

Star Wars MCP Server - MCP Server | MCP Directory