modrinth-mcp
Auto-discovers CurseForge App instances so their local mods, configs, and modpack setup can be inspected, migrated, and safely modified.
Provides Modrinth API tools for searching mods, modpacks, and shaders; retrieving project/version/dependency details; checking compatibility; downloading SHA-512-verified mods; and inspecting/exporting .mrpack files.
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., "@modrinth-mcp find a Fabric 1.20.1 performance modpack on Modrinth"
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.
modrinth-mcp
An MCP (Model Context Protocol) server built with the official MCP Python SDK v2 (MCPServer) for Modrinth mod/modpack discovery, deterministic Minecraft crash & Spark profiler analysis, local instance inspection, config editing, one-shot version migration, .mrpack inspect/export, snapshot rollback, and $O(\log n)$ crash bisection.
Runtime Modes
Mode | Flag | Transport | Exposed Surface | Filesystem Access |
Local (default) |
|
| All 18 tools + 4 built-in prompts | Strictly confined to |
Remote |
| Streamable HTTP ( | 6 stateless tools + 4 built-in prompts | None |
Zero barrier to entry: No API keys, no Modrinth OAuth login, and no required in-game mods (Spark is 100% optional and only used if you already have a Spark link or JSON export).
Safety Guarantees
Path-traversal confinement: Every local read/write resolves paths and rejects
.., null bytes, and symlinks/junctions escaping allowed instance roots.Dry-run by default:
modify_instance_mods,edit_mod_config, andmigrate_instance_versiondefault todry_run=Trueand automatically snapshotmods/andconfig/(retaining the latest 10 snapshots) before applying changes.SHA-512 verification: Mod downloads are restricted to
https://cdn.modrinth.comand verified against Modrinth's SHA-512 hash before placement.Modrinth rate-limit & cache etiquette: Uses a unique
User-Agent, batch endpoints (POST /v2/version_files,POST /v2/version_files/update), a sliding-window rate guard (< 300 req/min), and a local SQLite TTL cache.SSRF protection (Spark): Remote URLs in
analyze_spark_profileonly allowhttps://spark.lucko.me/<id>.
Related MCP server: mc-pack-builder-mcp
Quick Start
# Run locally via uvx (stdio, all 18 tools + 4 prompts)
uvx modrinth-mcp --mode local
# Or restrict local filesystem access explicitly
uvx modrinth-mcp --mode local --allowed-roots "C:\Users\you\AppData\Roaming\ModrinthApp"
# Run stateless remote HTTP server on http://127.0.0.1:8000/mcp (6 tools only)
uvx modrinth-mcp --mode remote --host 0.0.0.0 --port 8000Optional Docker Deployment (Remote Mode)
docker build -t modrinth-mcp .
docker run -p 8000:8000 modrinth-mcpCLI Options
--mode {local,remote}(default:local)--allowed-roots [PATH ...](overridesMODRINTH_MCP_ALLOWED_ROOTS)--host(default:127.0.0.1, remote mode only)--port(default:8000, remote mode only)--user-agent(default:MODRINTH_MCP_USER_AGENTorArthurofox/modrinth-mcp/1.0.0)--cache-db(default: OS cache directory SQLite file)
Client Configuration Snippets
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"modrinth": {
"command": "uvx",
"args": ["modrinth-mcp", "--mode", "local"]
}
}
}Claude Code (1-command CLI or .mcp.json)
claude mcp add modrinth -- uvx modrinth-mcp --mode local{
"mcpServers": {
"modrinth": {
"command": "uvx",
"args": ["modrinth-mcp", "--mode", "local"]
}
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"modrinth": {
"command": "uvx",
"args": ["modrinth-mcp", "--mode", "local"]
}
}
}Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"modrinth": {
"command": "uvx",
"args": ["modrinth-mcp", "--mode", "local"]
}
}
}Built-in MCP Prompts
fix_crash— Guided crash diagnosis → inspection → minimal dry-run fix (orbisect_crash).upgrade_modpack— Guidedmigrate_instance_versiondry-run → compatibility report → snapshot-backed migration.diagnose_lag— Guided Spark TPS/MSPT + mod-level bottleneck analysis → config/alternative fixes.prepare_server_pack— Guided client-only mod audit (client_only_mods) → optional.mrpackexport.
Exposed MCP Tools
A. Modrinth API Tools (Local + Remote)
search_modrinth— Search mods, modpacks, or shaders filtered bymc_version,loader, andproject_type.get_project_details— Compact project summary card (description,categories,license,wiki_url,source_url,issues_url, sides, truncatedbody).get_project_versions— List compatible versions and their dependency trees (required,optional,incompatible).check_compatibility_matrix— Check version availability, missing required deps, and explicit incompatibilities across slugs, project IDs, SHA-512 hashes, or (in local mode) an entireinstance_path.
B. Diagnostic & Log Analysis Tools (Local + Remote)
analyze_crash_log— Deterministic parser classifyingmixin_conflict,missing_dep,version_mismatch,oom, orunknownfromraw_log_text(or localinstance_path).analyze_spark_profile— Parse ahttps://spark.lucko.me/<id>URL (or local Spark JSON in local mode) into TPS, 95th-percentile MSPT, leaf hotspots, and mod-attributed inclusive share (top_mods).
C. Local Instance & Modpack Inspection Tools (Local Only)
list_instances— Auto-discover Prism Launcher, Modrinth App (legacy & modernapp.db), CurseForge App, ATLauncher, and vanilla.minecraftinstances.inspect_instance_mods— Hashmods/*.jar(SHA-512), readfabric.mod.json/META-INF/neoforge.mods.toml, batch-resolve via Modrinth, report missing deps,client_only_mods, and available updates.list_mod_configs— Discover.toml,.json,.properties,.cfg,.yamlfiles insideconfig/with optional substring filtering.read_mod_config— Safely read a config file insideconfig/with 15 KB line-range pagination.inspect_mrpack— Audit a.mrpackmodpack archive (mods, MC/loader versions, client/server split, overrides count) before installing it.
D. Safe Mutation, Export & Bisection Tools (Local Only)
edit_mod_config— Safely edit files insideconfig/withdry_run=Trueunified diff preview, JSON/TOML syntax validation, and automatic snapshot backup.modify_instance_mods—install(with transitiveinclude_required_deps=True+ conflict warnings),update,disable,enable, orremovemods withdry_run=Truedefault and automatic snapshot backup.migrate_instance_version— Batch-migrate an instance's mods to a target Minecraft version and loader (dry_run=Truedefault, optionaldisable_incompatible=True, SHA-512 verified downloads, automatic snapshot backup).export_mrpack— Export a local instance into a shareable Modrinth.mrpack(modrinth.index.json+overrides/config/+ local-only JARs).list_snapshots— List available backup snapshots (newest first, auto-pruned to latest 10) with timestamps and reasons.rollback_snapshot— Restoremods/andconfig/to a priorsnapshot_id.bisect_crash— Stateful $O(\log n)$ binary-search crash isolator (start,report_crashed,report_worked,abort) withpinned_library_modsand automatic snapshot restore on completion or abort.
Development
uv sync --extra dev
uv run ruff check src tests
uv run pytest -v # offline unit + in-memory MCP tests
uv run pytest -m live -v # live Modrinth API, Spark, HTTP, and stdio testsAvailable Tools
18 toolsanalyze_crash_logC
Deterministically parse a Minecraft crash report or latest.log for root cause and suspected mods.
Inputs: raw_log_text, instance_path. Returns: Structured output for analyze_crash_log.
analyze_spark_profileB
Parse a Spark profiler URL (https://spark.lucko.me/) or local JSON file.
Inputs: spark_url_or_file (required). Returns: Structured output for analyze_spark_profile.
bisect_crashC
Stateful O(log n) binary-search manager to isolate crashing mods safely.
Inputs: action (required), instance_path (required), pinned_library_mods. Returns: Structured output for bisect_crash.
check_compatibility_matrixB
Deterministically check version availability, missing required deps, and incompatibilities for projects or a local instance.
Inputs: target_loader (required), target_mc_version (required), projects, instance_path. Returns: Structured output for check_compatibility_matrix.
edit_mod_configB
Safely edit a config file inside config/ with JSON/TOML validation, diff preview, and auto-snapshot.
Inputs: new_content (required), instance_path (required), config_filename (required), dry_run. Returns: Structured output for edit_mod_config.
export_mrpackC
Export a local Minecraft instance to a valid shareable Modrinth .mrpack archive.
Inputs: output_path (required), instance_path (required), pack_name, pack_version, +1 more. Returns: Structured output for export_mrpack.
get_project_detailsB
Fetch a compact Modrinth project summary card (description, links, sides, license, body).
Inputs: project_id_or_slug (required). Returns: Compact project summary card for get_project_details.
get_project_versionsB
List compatible Modrinth versions and exact dependency trees for a project.
Inputs: loader (required), mc_version (required), project_id_or_slug (required), featured_only. Returns: Structured output for get_project_versions.
inspect_instance_modsB
Hash mods/*.jar (SHA-512), read embedded metadata, and batch-resolve via Modrinth.
Inputs: instance_path (required), check_updates. Returns: Structured output for inspect_instance_mods.
inspect_mrpackA
Inspect a local Modrinth .mrpack archive (mods, MC/loader versions, client/server split) before installing.
Inputs: mrpack_path (required). Returns: Structured output for inspect_mrpack.
list_instancesB
Auto-discover local Minecraft instances from Prism, Modrinth App, CurseForge, ATLauncher, or .minecraft.
Inputs: launcher_root. Returns: Structured output for list_instances.
list_mod_configsB
List supported config files inside an instance's config/ directory with optional substring filter.
Inputs: instance_path (required), limit, query. Returns: Structured output for list_mod_configs.
list_snapshotsA
List available backup snapshots (newest first) for an instance.
Inputs: instance_path (required). Returns: Structured output for list_snapshots.
migrate_instance_versionC
Batch-migrate an instance's mods to a target Minecraft version and loader with automatic snapshot backup.
Inputs: instance_path (required), target_mc_version (required), dry_run, target_loader, +1 more. Returns: Structured output for migrate_instance_version.
modify_instance_modsB
Install, update, disable, enable, or remove mods with automatic snapshot backup and optional dep resolution.
Inputs: actions (required), instance_path (required), dry_run, include_required_deps. Returns: Structured output for modify_instance_mods.
read_mod_configB
Safely read a .toml/.json/.properties config inside config/ (15KB line-range pagination).
Inputs: instance_path (required), config_filename (required), end_line, start_line. Returns: Structured output for read_mod_config with line-range pagination.
rollback_snapshotB
Restore mods/ and config/ to a prior snapshot_id created before mutation/bisection.
Inputs: snapshot_id (required), instance_path (required). Returns: Structured output for rollback_snapshot.
search_modrinthC
Find mods, modpacks, or shaders on Modrinth filtered by MC version and loader.
Inputs: query (required), limit, loader, mc_version, +1 more. Returns: Structured output for search_modrinth.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The tools are mostly cleanly separated by resource and action: instance discovery, mod inspection/mutation, config CRUD, snapshots, crash analysis, and Modrinth metadata are distinct. The closest overlap is between get_project_versions and check_compatibility_matrix, and to a lesser extent analyze_crash_log versus bisect_crash, but descriptions make their roles complementary rather than identical.
All 18 names are snake_case and follow a verb_noun shape (list_snapshots, get_project_details, edit_mod_config, migrate_instance_version). Verb choices vary only where the operation genuinely differs, and there are no style breaks such as camelCase or bare nouns.
Eighteen tools is somewhat heavy, but the server covers a broad workflow: discovery, Modrinth lookup, compatibility, config editing, mod mutation, snapshots, crash analysis, and mrpack handling. Each tool appears to own a distinct operation, so the count is reasonable if not minimal.
The surface covers the core lifecycle well: discover and inspect instances, inspect/install/update/remove mods, edit configs, migrate versions, snapshot/rollback, analyze crashes, and inspect/export mrpack files. Minor gaps remain, most notably no explicit install-from-mrpack or instance create/delete operation, and snapshot management lacks a delete/cleanup tool.
Maintenance
Related MCP Connectors
Start your own Minecraft: Java Edition server, add mods from Modrinth, and run its console.
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
Access all your MCPBundles tools in one place. Unified hub for all enabled bundles.
Scan AI agent skills, MCP server packages and MCP configs before you install them. Static analysis.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search, browse, and manage mods across Nexus Mods, mod.io, Thunderstore, and Modrinth, as well as perform local diagnostics like detecting games and parsing crash logs.MIT
- AlicenseAqualityCmaintenanceEnables creating Minecraft modpack structures, searching Modrinth mods, resolving dependencies, and checking compatibility.848 npmMIT
- AlicenseBqualityCmaintenanceEnables reading, validating, and managing Minecraft resource packs, including structure checks, asset listing, pack comparison, and Modrinth queries.948 npmMIT
- FlicenseAqualityDmaintenanceEnables MCP clients like Cursor to manage local CurseForge Minecraft instances by creating world-specific mod profiles, editing configs, diagnosing crashes, and applying changes on disk before launching the game.21-