mc-pack-builder-mcp
Enables creating Minecraft modpack structures, searching Modrinth mods, resolving dependencies, and checking compatibility.
README
mc-pack-builder-mcp
MCP server for Minecraft modpack building. Creates pack structures, searches mods on Modrinth, resolves dependencies, checks compatibility, and exports standardized modpacks ready for distribution.
Tools
| Tool | Description |
|---|---|
create_pack |
Create a new modpack directory structure (pack.mcmeta, version.txt, loader.txt, mods/) |
get_pack_info |
Read existing modpack metadata: MC version, loader, mod count, and common issues |
search_mods |
Search Modrinth for mods by keyword, returns ID, name, description, download count |
get_mod_info |
Get detailed info about a Modrinth mod: version history, dependencies, supported MC versions |
resolve_dependencies |
Recursively resolve a mod's full dependency chain (direct + indirect) |
check_pack_compatibility |
Check installed mods against a target MC version for known incompatibilities |
generate_dependency_list |
Generate a complete dependency list for all mods in an existing pack |
export_standard_pack |
Export a clean, distribution-ready modpack: cleanup extras, unwrap nested zips, generate modlist, optional volume splitting |
Features
- Pack structure creation — generates standard modpack directory with all required files
- Modrinth integration — search and query mod metadata directly from the Modrinth API
- Dependency resolution — follows the full dependency tree to ensure all requirements are met
- Compatibility checking — detects known conflicts (e.g. OptiFine with Fabric, Sodium vs Embeddium)
- Export standard pack — automatically cleans .minecraft extras, unwraps nested zip bundles, generates a styled
modlist.htmlor plainmodlist.txt, and optionally splits large packs into ≤256 MB volumes for easy distribution - Offline operation — all local pack tools work without network; only search/info tools need Modrinth
Installation
Prerequisites
- Node.js 18+
- npm
Build
cd mc-pack-builder-mcp
npm install
npm run build
Run as standalone MCP server
node dist/index.js
The server communicates via stdio (JSON-RPC 2.0). It can be consumed by any MCP-compatible client.
Configuration for MCP clients
Add to your MCP client config:
{
"mcpServers": {
"mc-pack-builder": {
"command": "node",
"args": ["${MC_PACK_BUILDER_ROOT}/dist/index.js"]
}
}
}
Path note: Replace
${MC_PACK_BUILDER_ROOT}with the absolute path to this project's root directory. On Windows, use forward slashes:["C:/Users/xxx/Desktop/mc-pack-builder-mcp/dist/index.js"]. Alternatively, set an environment variableMC_PACK_BUILDER_ROOTpointing to the project root and use the variable in the config.
Usage Examples
Create a new modpack
{
"name": "create_pack",
"arguments": {
"pack_dir": "/path/to/MyModpack",
"name": "My Modpack",
"mc_version": "1.20.1",
"loader": "fabric"
}
}
Read pack info
{
"name": "get_pack_info",
"arguments": {
"pack_dir": "/path/to/MyModpack"
}
}
Search for a mod on Modrinth
{
"name": "search_mods",
"arguments": {
"query": "sodium",
"limit": 5
}
}
Resolve dependencies
{
"name": "resolve_dependencies",
"arguments": {
"project_id": "geckolib"
}
}
Check pack compatibility
{
"name": "check_pack_compatibility",
"arguments": {
"pack_dir": "/path/to/MyModpack",
"mc_version": "1.20.1"
}
}
Generate dependency list
{
"name": "generate_dependency_list",
"arguments": {
"pack_dir": "/path/to/MyModpack"
}
}
Export standard pack (release-ready)
{
"name": "export_standard_pack",
"arguments": {
"source_pack_dir": "C:/Users/xxx/Desktop/MyModpack",
"output_dir": null,
"clean_minecraft_extra": true,
"minecraft_dir": "C:/Users/xxx/.minecraft",
"unwrap_nested": true,
"generate_modlist": true,
"modlist_format": "html",
"split_volumes": false,
"volume_max_mb": 256
}
}
Output: Creates a _ready sibling directory (or custom output_dir) with the cleaned package. Returns a JSON report listing all actions taken, warnings, mod count, and — if volume splitting is enabled — per-volume paths and sizes.
Architecture
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, adm-zip)
├── tsconfig.json # TypeScript config (CommonJS output)
├── test.js # Integration test runner
├── test_logs/ # Test output logs (gitignored)
└── .gitignore
The MCP uses the official @modelcontextprotocol/sdk v1.x with McpServer and StdioServerTransport.
Testing
npm run build
node test.js
Tests create temporary directories under os.tmpdir() and clean up after themselves. No Minecraft installation is required.
Platform Compatibility
| Tool | Windows | macOS | Linux |
|---|---|---|---|
create_pack |
✅ | ✅ | ✅ |
get_pack_info |
✅ | ✅ | ✅ |
search_mods |
✅ | ✅ | ✅ |
get_mod_info |
✅ | ✅ | ✅ |
resolve_dependencies |
✅ | ✅ | ✅ |
check_pack_compatibility |
✅ | ✅ | ✅ |
generate_dependency_list |
✅ | ✅ | ✅ |
export_standard_pack |
✅ | ✅ | ✅ |
All tools use cross-platform Node.js fs and path APIs. Network-dependent tools (search_mods, get_mod_info, resolve_dependencies) require internet access regardless of platform.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。