mc-mod-config
This MCP server manages Minecraft mod configuration files (.cfg, .toml, .json) for reading, validating, comparing, and cleaning up modpack configs — fully offline.
Read a single config — parse
.cfg(Forge),.toml(Fabric), or.jsonfiles into structured data with any detected issues.List all configs — recursively scan a
config/directory and return each file's path, mod ID, format, and size.Validate configs — check a whole directory for empty values, invalid numbers, parse errors, and oversized strings.
Compare config directories — diff old vs. new configs (e.g., before/after a modpack update) to report added, removed, changed, and unchanged files with key-level detail.
Find orphaned configs — detect config files whose mod JAR is missing from
mods/, using installed JARs plus a built-in known-mods database.Get default configs — retrieve known baseline configs for popular mods like Sodium, OptiFine, Phosphor, Lithium, and Fabric API.
Provides parsing, validation, and comparison of Fabric TOML Minecraft mod configuration files, including support for nested tables and arrays.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mc-mod-config check for orphaned configs in my modpack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mc-mod-config-mcp
MCP server for Minecraft mod configuration file management. Reads, validates, compares, and cleans up .cfg, .toml, and .json config files from modpacks.
Tools
Tool | Description |
| Parse a single config file ( |
| Recursively scan a config directory and list all configs with mod ID, format, and size |
| Validate all configs for common issues: empty values, invalid numbers, parse errors, oversized strings |
| Diff two config directories (before/after modpack update) and report added/removed/changed files |
| Find config files whose mod JAR is no longer present in the |
| Return known default/baseline config for popular mods (Sodium, OptiFine, Phosphor, Lithium, Fabric API) |
Related MCP server: mcp-config-tools
Supported Config Formats
Format | Extension | Loader |
Forge INI-style |
| Forge |
Fabric TOML |
| Fabric |
JSON |
| Any |
Features
Multi-format parsing — handles Forge
.cfg, Fabric.toml, and.jsonconfigs nativelyValidation engine — detects empty values, invalid numbers, parse errors, and oversized strings
Config comparison — key-level diff for tracking changes across modpack updates
Orphan detection — matches config files against installed mod JARs plus a built-in known-mods database
Default configs — bundled known-good defaults for popular performance mods
Fully offline — no network calls; all data is local or built-in
Installation
Prerequisites
Node.js 18+
npm
Build
cd mc-mod-config-mcp
npm install
npm run buildRun as standalone MCP server
node dist/index.jsThe 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-mod-config": {
"command": "node",
"args": ["${MC_MOD_CONFIG_ROOT}/dist/index.js"]
}
}
}Path note: Replace
${MC_MOD_CONFIG_ROOT}with the absolute path to this project's root directory. On Windows, use forward slashes:["C:/path/to/mc-mod-config-mcp/dist/index.js"](把C:/path/to/替换成你的实际路径)。 Alternatively, set an environment variableMC_MOD_CONFIG_ROOTpointing to the project root and use the variable in the config.
Configuration
本工具零配置即可用(内置默认值,任何环境开箱即用)。以下项目可通过环境变量或项目根目录 .env 文件覆盖(复制 .env.example 为 .env):
变量 | 默认值 | 说明 |
|
| 支持扫描/解析的配置文件扩展名(逗号分隔,可扩展自定义扩展名) |
|
| 单个配置文件大小上限(MB),超过则跳过 |
|
| 校验时字符串值长度告警阈值 |
扩展已知模组默认配置库:编辑 src/mod-defaults.json(构建后为 dist/mod-defaults.json),在 defaults 下新增/覆盖模组即可,无需改代码。例如新增 "iris": { "name": "Iris", "fallbackConfig": { "enableShaders": true } }。
优先级:环境变量 > .env 文件 > 内置默认值。改动后重启 MCP server 生效。
Usage Examples
Read a config file
{
"name": "read_mod_config",
"arguments": {
"configPath": "/path/to/mods/sodium/sodium.toml"
}
}List all configs in a modpack
{
"name": "list_mod_configs",
"arguments": {
"configDir": "/path/to/modpack/config"
}
}Validate configs for issues
{
"name": "validate_mod_configs",
"arguments": {
"configDir": "/path/to/modpack/config"
}
}Compare configs before and after an update
{
"name": "compare_mod_configs",
"arguments": {
"oldConfigDir": "/path/to/old-modpack/config",
"newConfigDir": "/path/to/new-modpack/config"
}
}Find orphaned configs
{
"name": "find_orphaned_configs",
"arguments": {
"modsDir": "/path/to/modpack/mods",
"configDir": "/path/to/modpack/config"
}
}Get default config for a mod
{
"name": "get_mod_default_config",
"arguments": {
"modId": "sodium"
}
}Architecture
mc-mod-config-mcp/
├── src/
│ └── index.ts # MCP server + all tool implementations
├── dist/ # Compiled JavaScript (output of tsc)
├── skills/
│ └── mc-mod-config-helper.md # Trae Work skill for config management
├── __tests__/
│ └── unit.test.ts # Unit tests (fully offline)
├── package.json # Node.js dependencies (@modelcontextprotocol/sdk, zod)
├── tsconfig.json # TypeScript config (CommonJS output)
└── .gitignoreThe MCP uses the official @modelcontextprotocol/sdk v1.x with McpServer and StdioServerTransport.
Testing
npm run build
npm testAll unit tests are fully offline and do not require a Minecraft installation.
Platform Compatibility
Tool | Windows | macOS | Linux |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
| ✅ | ✅ | ✅ |
All tools use cross-platform Node.js fs and path APIs. All paths are resolved as absolute paths before processing. The Forge .cfg parser handles sections, type detection, and quoted values; the Fabric .toml parser handles nested tables and arrays.
License
MIT
Available Tools
6 toolscompare_mod_configsA
Compare two config directories (e.g. before/after a modpack update). Reports added, removed, changed, and unchanged config files with key-level diff info.
Inputs: newConfigDir (required), oldConfigDir (required).
find_orphaned_configsA
Find config files whose mod JAR is no longer present in the mods/ directory. Useful after removing mods.
Inputs: modsDir (required), configDir (required).
get_mod_default_configA
Get the known default/baseline config for a specific mod. Supports Sodium, OptiFine, Phosphor, Lithium, Fabric API.
Inputs: modId (required).
list_mod_configsA
List all mod config files in a config directory (recursively). Returns file path, mod ID, format, and size.
Inputs: configDir (required).
read_mod_configA
Read and parse a mod config file (.cfg for Forge, .toml for Fabric, .json for any). Returns the parsed config tree.
Inputs: configPath (required).
validate_mod_configsB
Validate all mod config files in a directory for common issues: empty values, invalid numbers, parse errors, oversized strings.
Inputs: configDir (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: reading, listing, validating, comparing, finding orphaned configs, and retrieving defaults. There is no meaningful overlap, and even read_mod_config vs get_mod_default_config are clearly separated by actual vs baseline config.
All tool names follow a consistent verb_noun snake_case pattern. Singular and plural forms are used appropriately for the object, so the naming is predictable and uniform.
Six tools is a well-scoped size for a config inspection and audit server. Each tool covers a meaningful workflow without redundancy or bloat.
The toolset covers the full apparent read/audit lifecycle: discovering, reading, validating, comparing, finding orphaned configs, and getting baseline defaults. It intentionally does not include writing/editing, but that does not create a gap for the server's evident diagnostic purpose.
Maintenance
Related MCP Connectors
Validate JSON, YAML, XML and CSV with exact line/column errors and silent-corruption warnings.
Read-only knowledge of Nightbreak Minecraft plugins: wiki, source, config schemas and validation.
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Validate oh-my-posh configurations and segment snippets against the official schema.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConfig Validator AI - MCP server providing AI-powered tools and automation by MEOK AI Labs12 npm45 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing configuration file tools for AI agents. Parse, validate, merge, convert, and diff configuration files across all common formats.47 npmMIT
- FlicenseAqualityCmaintenanceManages, edits, backups, and validates Claude Desktop and other client JSON configurations.5-
- AlicenseBqualityBmaintenanceEnables reading, validating, and managing Minecraft resource packs, including structure checks, asset listing, pack comparison, and Modrinth queries.953 npmMIT