Skip to main content
Glama
dcd887

mc-pack-builder-mcp

by dcd887

mc-pack-builder-mcp

用于 Minecraft 整合包构建的 MCP 服务器。创建整合包结构、在 Modrinth 上搜索模组、解析依赖并检查兼容性。

工具

工具

描述

create_pack

创建新的整合包目录结构(pack.mcmeta、version.txt、loader.txt、mods/)

get_pack_info

读取现有整合包元数据:MC 版本、加载器、模组数量及常见问题

search_mods

按关键词在 Modrinth 上搜索模组,返回 ID、名称、描述、下载次数

get_mod_info

获取 Modrinth 模组的详细信息:版本历史、依赖项、支持的 MC 版本

resolve_dependencies

递归解析模组的完整依赖链(直接 + 间接)

check_pack_compatibility

检查已安装模组与目标 MC 版本的已知不兼容性

generate_dependency_list

为现有整合包中的所有模组生成完整的依赖列表

Related MCP server: HMCL MCP Server

功能

  • 整合包结构创建 — 生成包含所有必需文件的标准整合包目录

  • Modrinth 集成 — 直接从 Modrinth API 搜索和查询模组元数据

  • 依赖解析 — 跟踪完整依赖树以确保满足所有要求

  • 兼容性检查 — 检测已知冲突(例如 OptiFine 与 Fabric、Sodium 与 Embeddium)

  • 离线操作 — 所有本地整合包工具无需网络即可工作;只有搜索/信息工具需要 Modrinth

安装

先决条件

  • Node.js 18+

  • npm

构建

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

作为独立 MCP 服务器运行

node dist/index.js

服务器通过 stdio(JSON-RPC 2.0)进行通信。它可以被任何兼容 MCP 的客户端使用。

MCP 客户端配置

添加到您的 MCP 客户端配置:

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

使用示例

创建新的整合包

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

在 Modrinth 上搜索模组

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

解析依赖

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

检查整合包兼容性

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

架构

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

该 MCP 使用官方 @modelcontextprotocol/sdk v1.x,包含 McpServerStdioServerTransport

测试

npm run build
node test.js

测试在 os.tmpdir() 下创建临时目录,并在测试后自行清理。无需安装 Minecraft。

平台兼容性

工具

Windows

macOS

Linux

create_pack

get_pack_info

search_mods

get_mod_info

resolve_dependencies

check_pack_compatibility

generate_dependency_list

所有工具均使用跨平台的 Node.js fspath API。依赖网络的工具(search_modsget_mod_inforesolve_dependencies)无论平台如何都需要互联网访问。

许可证

MIT

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Create, update, and publish changelog entries on your Patchlog changelog from any MCP client.

  • Fleet discovery for the cyanheads MCP ecosystem — semantic search + install snippets.

  • Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcd887/mc-pack-builder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server