Skip to main content
Glama
ksp-mods-mcp

ksp-mods-mcp

by tabbykat113

ksp-mods-mcp

MCP server for searching KSP mods from the CKAN index.

Installation

Requires uv.

uv tool install git+https://github.com/tabbykat113/ksp-mods-mcp

That's it. The index is built automatically on the first tool call.

The database is stored in your platform's data directory (~/.local/share/ksp-mods-mcp/ckan.db on Linux, AppData/Local/ksp-mods-mcp/ckan.db on Windows). Override with the CKAN_DB environment variable if needed.

You can also run harvest manually at any time to update the index — it's a no-op if nothing changed upstream.

Related MCP server: mcp-server-npm

Adding to your MCP client

Claude Desktop

Edit claude_desktop_config.json (find it via Settings → Developer):

{
  "mcpServers": {
    "ckan": {
      "command": "ksp-mods-mcp"
    }
  }
}

Other MCP clients

Use ksp-mods-mcp as the command. The server communicates over stdio.

Tools

Tool

Description

search_mods_tool

Search by name/author regex, tags, KSP version compatibility, cached status. Paginated.

get_mod_tool

Details for a mod by identifier. Selectable categories: metadata, relations, install, versions, github, spacedock, raw.

get_recommendations_tool

Related mods via dependency/recommendation relationships. Forward and reverse. Paginated.

list_tags_tool

All tags in the index ranked by mod count.

list_parts_tool

Parts inside a mod's cached ZIP. Three detail levels: summary, basic, long.

get_part_tool

Full detail for a single part: formatted module stats (engine thrust/Isp, RCS, reaction wheels, etc.) and resource amounts.

index_status

DB stats, last harvest timestamp, and whether the CKAN download cache is detected.

refresh_index

Re-harvest the CKAN-meta archive. No-op if unchanged; use force=True to rebuild.

Search options

  • name — regex matched against identifier and display name, e.g. "engineer", "^MechJeb", "visual|scatter"

  • author — regex matched against author(s), e.g. "sarbian", "squad|nertea"

  • tags + tags_mode — "and" (all tags required) or "or" (any tag)

  • ksp_versions — e.g. ["1.12"]; matches any mod with a release supporting that version

  • sort_by — "downloads" (default), "downloads asc", "name", "name desc", "download_size", "install_size", "updated", "updated asc"

  • cached_only — only return mods whose latest-version ZIP is present in the CKAN download cache

  • limit / offset — pagination (max 100 per page)

Recommendations options

  • identifiers — list of CKAN mod identifiers to find relations for

  • categories — which relationship types to include (default: depends, recommends, suggests):

    • Forward: depends, supports, recommends, suggests

    • Reverse: depends_by, supported_by, recommended_by, suggested_by

    • Pass ["all"] to include all categories

  • Results are deduplicated: if the same mod appears via multiple sources or categories, the highest-priority category wins and all source mods are listed in related_mods

  • limit / offset — pagination (max 100 per page)

CKAN download cache integration

If CKAN is installed and has downloaded mods, is_cached: true appears on any result whose latest-version ZIP is present in the local download cache. The cache directory is detected automatically (%LOCALAPPDATA%/CKAN/downloads on Windows, $XDG_DATA_HOME/CKAN/downloads on Linux). Override with the CKAN_DOWNLOAD_CACHE environment variable.

Note: is_cached reflects the latest version of a mod. If you have an older version cached but not the latest, the flag will not appear — the cached copy may not match what CKAN would install. If you're pinned to an older KSP version (e.g. 1.8.1) and intentionally keep older mod versions, use the ksp_versions filter to find compatible mods and disregard the cached status.

Both list_parts_tool and get_part_tool require a cached ZIP to work.

Part detail levels

list_parts_tool has three detail levels:

  • summary — total part count and category breakdown

  • basic — per-part name, resolved title, and category

  • long — basic + cost, mass, tech node, bulkhead profiles, supported module type names, unsupported module names, and carried resource names

get_part_tool always returns full detail: all of the above plus structured module data (engine thrust, Isp, propellants; RCS thrust and propellants; reaction wheel torque; solar panel output; command pod crew; parachute drag; decoupler ejection force; docking node type; generator and converter rates; harvester efficiency) and full resource amounts. Module types with no formatter are listed by name under unsupported_modules.

Development

git clone https://github.com/tabbykat113/ksp-mods-mcp
cd ksp-mods-mcp
uv sync
uv run harvest
uv run ksp-mods-mcp

Available Tools

8 tools
get_mod_toolA

Get details for a KSP mod by its CKAN identifier.

Args: identifier: Exact CKAN identifier (e.g. "MechJeb2", "Trajectories"). Use search_mods to find identifiers first. categories: Which detail categories to include. Defaults to ["metadata"]. Available categories: - "metadata": name, abstract, authors, tags, license, version info (max_ksp_version, latest_version, last_updated_at), download_count, resources - "relations": depends, recommends, suggests, conflicts, provides - "install": install directives - "versions": full version history with per-version KSP compatibility - "github": GitHub repo stats, README preview, and latest release. Lazily fetched and cached (TTL 7 days). Includes fetched_at timestamp. - "spacedock": SpaceDock stats, descriptions, and latest version info. Lazily fetched and cached (TTL 3 days). Includes fetched_at timestamp. - "raw": full raw CKAN JSON (superset of all above) force_refresh: If True, bypass the cache TTL and re-fetch all requested enrichment categories (github, spacedock) from their sources.

Returns an error object if the mod is not found. Metadata results include is_cached: true if the mod's ZIP is in the CKAN download cache.

Inputs: identifier (required), categories, force_refresh. Returns: result

get_part_toolA

Get full details for a single KSP part from a mod's cached download ZIP.

Returns structured part data including formatted stats for all supported modules (engines, RCS, reaction wheels, solar panels, etc.) and a list of unsupported module names.

Use list_parts_tool with detail="basic" first to get valid part names. Only works for mods present in the local CKAN download cache.

Args: identifier: Exact CKAN mod identifier (e.g. "CryoEngines"). part_name: Internal part name as it appears in the CFG file (e.g. "cryoengine-stromboli-1"). This is the "name" field, not the display title. Use list_parts_tool to find it.

Returns a part object with: name, title, category, cost, mass, tech_required, bulkhead_profiles, modules (list of formatted module data per supported module type), unsupported_modules (list of module type names with no formatter), resources (list of {name, amount, max_amount}). Returns an error object if the mod is not cached, the ZIP cannot be read, or the part name is not found.

Inputs: part_name (required), identifier (required). Returns: result

get_recommendations_toolA

Get mods related to a given list of mods via CKAN dependency/recommendation relationships.

For each result, shows the same fields as search_mods plus the relationship category and which input mods it was found through.

If the same mod appears via multiple input mods or multiple relationship types, it is deduplicated: the highest-priority category wins, and all source mods are listed.

Args: identifiers: List of CKAN mod identifiers to find recommendations for. Use search_mods to find identifiers first. categories: Which relationship categories to include. Defaults to ["depends", "recommends", "suggests"]. Available categories (in priority order): - "depends": mods that the input mods depend on - "supports": mods that the input mods declare support for - "recommends": mods recommended by the input mods - "suggests": mods suggested by the input mods - "depends_by": mods that depend on any of the input mods - "supported_by": mods that declare support for any of the input mods - "recommended_by": mods that recommend any of the input mods - "suggested_by": mods that suggest any of the input mods Pass ["all"] to include all categories. limit: Number of results per page (default 20, max 100). offset: Pagination offset (default 0).

Returns JSON with keys: total, offset, limit, results. Each result has: identifier, name, abstract, tags, authors, max_ksp_version, latest_version, last_updated_at, download_count, download_size, install_size, category, related_mods.

Inputs: identifiers (required), limit, offset, categories. Returns: result

index_statusA

Return current status of the CKAN mod index.

Reports total mod count, number with download data, number with tags, and when the index was last harvested.

Inputs: no named parameters. Returns: result

list_parts_toolA

List the KSP parts included in a mod's cached download ZIP.

Only works for mods whose ZIP is present in the local CKAN download cache (i.e., mods you have downloaded via CKAN). Use index_status to check whether ckan_cache_available is true, and search_mods with cached_only=true to find mods that are cached.

Parts are scanned from GameData/{identifier}/Parts/**/*.cfg inside the ZIP. Bundled dependencies under other GameData/ subdirectories are ignored. Titles are resolved from the mod's English localization file where available.

Args: identifier: Exact CKAN mod identifier (e.g. "HeatControl", "NearFuturePropulsion"). detail: Level of detail to return: - "summary": total part count and breakdown by category (cheapest) - "basic": per-part name, resolved title, and category (default) - "long": basic + cost, mass, tech_required, bulkhead_profiles, modules (list of supported module type names), unsupported_modules (list of unsupported module type names), resources (list of resource names). Use get_part_tool for full module and resource detail.

Returns JSON. On success: summary: {total_parts, categories: {CategoryName: count}} basic/long: {total_parts, categories, parts: [...]} Returns an error object if the mod is not cached or the ZIP cannot be read.

Inputs: identifier (required), detail. Returns: result

list_tags_toolA

List all tags used in the CKAN mod index, with mod counts.

Args: limit: Maximum number of tags to return, ordered by popularity (default 50).

Returns JSON list of {tag, count} objects.

Inputs: limit. Returns: result

refresh_indexA

Re-harvest the CKAN-meta archive to update the mod index.

By default, this is a no-op if nothing has changed upstream (ETag check). Use force=True to bypass the check and rebuild unconditionally.

Args: force: Bypass ETag check and re-download/re-index everything.

Returns JSON with harvest result: status ("skipped" or "updated") and stats.

Inputs: force. Returns: result

search_mods_toolA

Search KSP mods by name, author, tags, and/or KSP version compatibility, paginated.

Args: name: Case-insensitive regex matched against mod identifier and display name. Examples: "engineer", "^MechJeb", "visual|scatter" author: Case-insensitive regex matched against mod author(s). A mod matches if any of its authors match. Examples: "sarbian", "squad|nertea" tags: List of tags to filter by. Examples: ["plugin"], ["parts", "resources"] tags_mode: How to combine multiple tags — "and" (mod must have all tags, default) or "or" (mod must have at least one tag). ksp_versions: KSP game versions to filter by. A mod matches if any of its released versions supports at least one of the given KSP versions. Uses prefix matching, so "1.12" matches "1.12.0", "1.12.5", etc. Examples: ["1.12"], ["1.11", "1.12"] sort_by: Sort order — "downloads" (default), "downloads asc", "name", "name desc", "download_size", "download_size asc", "install_size", "install_size asc", "updated", "updated asc". cached_only: If True, only return mods whose ZIP is present in the local CKAN download cache. Requires CKAN to have been used to download mods. limit: Number of results per page (default 20, max 100). offset: Pagination offset (default 0).

Returns JSON with keys: total, offset, limit, results. Each result has: identifier, name, abstract, tags, authors, max_ksp_version, latest_version, last_updated_at, download_count, download_size (bytes), install_size (bytes). Results include is_cached: true only for mods present in the CKAN download cache.

Inputs: name, tags, limit, author, +5 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool maps to a distinct operation: searching, fetching a mod, getting recommendations, listing tags/parts, getting part details, checking status, or refreshing the index. The only related pair is list_parts_tool/get_part_tool, but their descriptions clearly separate summary/basic listing from full part detail. No two tools appear to do the same thing.

    Naming Consistency4/5

    Most tools follow a verb_noun_tool pattern (search_mods_tool, get_mod_tool, list_tags_tool, list_parts_tool, get_part_tool). Two tools, index_status and refresh_index, deviate by omitting the _tool suffix, and index_status is a noun phrase rather than a verb phrase. Still, all names are snake_case and readable.

    Tool Count5/5

    Eight tools is an appropriate size for a KSP mod metadata and part-inspection server. Each tool has a clear role, with no bloated or redundant surface. The scope is substantial but easy to navigate.

    Completeness5/5

    The server covers mod discovery, detailed metadata and relationships, recommendations, tag taxonomy, and inspection of cached mod ZIPs and parts. It also provides index maintenance via refresh_index and cache awareness via index_status and cached_only search. For a read-only CKAN-based mod server, the tool set is essentially complete.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for searching and exploring MCP servers from the Glama MCP directory. This server provides tools to search for MCP servers, get detailed information about specific servers, and explore available server attributes using the Glama MCP API.
      3
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that enables web search and page content retrieval via the Keenable API, supporting search with filters and fetching clean markdown content from indexed URLs.
      2
      374 npm
      MIT