mc-pack-builder-mcp
mc-pack-builder-mcp
用于 Minecraft 整合包构建的 MCP 服务器。创建整合包结构、在 Modrinth 上搜索模组、解析依赖并检查兼容性。
工具
工具 | 描述 |
| 创建新的整合包目录结构(pack.mcmeta、version.txt、loader.txt、mods/) |
| 读取现有整合包元数据:MC 版本、加载器、模组数量及常见问题 |
| 按关键词在 Modrinth 上搜索模组,返回 ID、名称、描述、下载次数 |
| 获取 Modrinth 模组的详细信息:版本历史、依赖项、支持的 MC 版本 |
| 递归解析模组的完整依赖链(直接 + 间接) |
| 检查已安装模组与目标 MC 版本的已知不兼容性 |
| 为现有整合包中的所有模组生成完整的依赖列表 |
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,包含 McpServer 和 StdioServerTransport。
测试
npm run build
node test.js测试在 os.tmpdir() 下创建临时目录,并在测试后自行清理。无需安装 Minecraft。
平台兼容性
工具 | Windows | macOS | Linux |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
所有工具均使用跨平台的 Node.js fs 和 path API。依赖网络的工具(search_mods、get_mod_info、resolve_dependencies)无论平台如何都需要互联网访问。
许可证
MIT
This server cannot be installed
Maintenance
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
- AlicenseBqualityBmaintenanceManifest-driven MCP server scaffolder and runtime hub for tool integrations.1MIT
- FlicenseAqualityCmaintenanceMCP server that lets AI agents drive HMCL (Hello Minecraft! Launcher) programmatically to install Minecraft versions, search/download/import modpacks from Modrinth/CurseForge, and launch/stop the game.13
- AlicenseAqualityBmaintenanceMCP server for Minecraft modpack diagnostics, enabling mod conflict detection, log/crash analysis, and dependency lookup via Modrinth.9MIT
- AlicenseAqualityCmaintenanceEnables AI agents to search, read, and publish Minecraft mods on Modrinth, including creating projects and uploading jar files as new versions.7MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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