Skip to main content
Glama
dcd887

mc-pack-builder-mcp

by dcd887

mc-pack-builder-mcp

MCP-Server für den Bau von Minecraft-Modpacks. Erstellt Pack-Strukturen, sucht Mods auf Modrinth, löst Abhängigkeiten auf und prüft Kompatibilität.

Tools

Tool

Beschreibung

create_pack

Erstellt eine neue Modpack-Verzeichnisstruktur (pack.mcmeta, version.txt, loader.txt, mods/)

get_pack_info

Liest vorhandene Modpack-Metadaten: MC-Version, Loader, Mod-Anzahl und häufige Probleme

search_mods

Durchsucht Modrinth nach Mods per Stichwort, gibt ID, Name, Beschreibung und Download-Anzahl zurück

get_mod_info

Ruft detaillierte Informationen zu einer Modrinth-Mod ab: Versionsverlauf, Abhängigkeiten, unterstützte MC-Versionen

resolve_dependencies

Löst die vollständige Abhängigkeitskette einer Mod rekursiv auf (direkt + indirekt)

check_pack_compatibility

Prüft installierte Mods gegen eine Ziel-MC-Version auf bekannte Inkompatibilitäten

generate_dependency_list

Erstellt eine vollständige Abhängigkeitsliste für alle Mods in einem vorhandenen Pack

Related MCP server: modrinth-mcp

Funktionen

  • Erstellung der Pack-Struktur — erzeugt ein Standard-Modpack-Verzeichnis mit allen erforderlichen Dateien

  • Modrinth-Integration — sucht und fragt Mod-Metadaten direkt über die Modrinth-API ab

  • Abhängigkeitsauflösung — verfolgt den vollständigen Abhängigkeitsbaum, um sicherzustellen, dass alle Anforderungen erfüllt sind

  • Kompatibilitätsprüfung — erkennt bekannte Konflikte (z. B. OptiFine mit Fabric, Sodium vs. Embeddium)

  • Offline-Betrieb — alle lokalen Pack-Tools funktionieren ohne Netzwerk; nur Such-/Info-Tools benötigen Modrinth

Installation

Voraussetzungen

  • Node.js 18+

  • npm

Build

cd mc-pack-builder-mcp
npm install
npm run build

Als eigenständigen MCP-Server ausführen

node dist/index.js

Der Server kommuniziert über stdio (JSON-RPC 2.0). Er kann von jedem MCP-kompatiblen Client verwendet werden.

Konfiguration für MCP-Clients

Fügen Sie Folgendes zu Ihrer MCP-Client-Konfiguration hinzu:

{
  "mcpServers": {
    "mc-pack-builder": {
      "command": "node",
      "args": ["<path/to/mc-pack-builder-mcp>/dist/index.js"]
    }
  }
}

Verwendungsbeispiele

Ein neues Modpack erstellen

{
  "name": "create_pack",
  "arguments": {
    "pack_dir": "/path/to/MyModpack",
    "name": "My Modpack",
    "mc_version": "1.20.1",
    "loader": "fabric"
  }
}

Nach einer Mod auf Modrinth suchen

{
  "name": "search_mods",
  "arguments": {
    "query": "sodium",
    "limit": 5
  }
}

Abhängigkeiten auflösen

{
  "name": "resolve_dependencies",
  "arguments": {
    "project_id": "geckolib"
  }
}

Pack-Kompatibilität prüfen

{
  "name": "check_pack_compatibility",
  "arguments": {
    "pack_dir": "/path/to/MyModpack",
    "mc_version": "1.20.1"
  }
}

Architektur

mc-pack-builder-mcp/
├── src/
│   └── index.ts        # MCP server + all tool implementations
├── dist/               # Compiled JavaScript (output of tsc)
├── __tests__/
│   └── unit.test.ts    # Unit tests (offline)
├── package.json        # Node.js dependencies (@modelcontextprotocol/sdk, zod)
├── tsconfig.json       # TypeScript config (CommonJS output)
├── test.js             # Integration test runner
├── test_logs/          # Test output logs (gitignored)
└── .gitignore

Der MCP verwendet das offizielle @modelcontextprotocol/sdk v1.x mit McpServer und StdioServerTransport.

Tests

npm run build
node test.js

Tests erstellen temporäre Verzeichnisse unter os.tmpdir() und räumen danach selbst auf. Keine Minecraft-Installation ist erforderlich.

Plattform-Kompatibilität

Tool

Windows

macOS

Linux

create_pack

✅

✅

✅

get_pack_info

✅

✅

✅

search_mods

✅

✅

✅

get_mod_info

✅

✅

✅

resolve_dependencies

✅

✅

✅

check_pack_compatibility

✅

✅

✅

generate_dependency_list

✅

✅

✅

Alle Tools verwenden plattformübergreifende Node.js-fs- und path-APIs. Netzwerkabhängige Tools (search_mods, get_mod_info, resolve_dependencies) benötigen unabhängig von der Plattform Internetzugriff.

Lizenz

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Enables AI agents to search, read, and publish Minecraft mods on Modrinth, including creating projects and uploading jar files as new versions.
    7
    19 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables reading, validating, and managing Minecraft resource packs, including structure checks, asset listing, pack comparison, and Modrinth queries.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables Minecraft modpack development by generating FTB Quests chapters and tasks, KubeJS scripts (weapons, armor, recipes), validating SNBT/config files, and providing diagnostic checks.
    MIT