modrinth-mcp

v0.1.3
io.github.justinscott12/modrinth-mcp Checked 4 days ago Published 1 month ago

Search Modrinth and publish Minecraft mods (create projects, upload versions) via the Modrinth API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

modrinth_whoami

Verify the configured Modrinth token and return the authenticated user (username, id, email, role). Use this first to confirm auth works.

modrinth_search_projects

Search public Modrinth projects. Returns a compact list of hits (slug, title, project_type, downloads, description).

ParameterTypeDescription
query *stringSearch text, e.g. 'sodium' or 'anvil'.
facetsstringOptional raw Modrinth facets JSON, e.g. '[["project_type:mod"],["categories:fabric"]]'.
limitnumberMax hits.

modrinth_get_project

Get a Modrinth project's metadata by slug or id (title, type, loaders, game_versions, published version ids, status).

ParameterTypeDescription
id_or_slug *stringProject slug (e.g. 'no-anvil-limit') or id.

modrinth_list_project_versions

List a project's published versions (version_number, id, type, loaders, game_versions, download url of primary file).

ParameterTypeDescription
id_or_slug *stringProject slug or id.

modrinth_create_version

Publish a NEW version to an existing Modrinth project by uploading one or more built jar files. This is a write action that publishes public content — only call it when the user has explicitly asked to publish. The project must already exist on Modrinth.

ParameterTypeDescription
file_paths *arrayAbsolute path(s) to the jar file(s) to upload. First is treated as the primary file.
game_versions *arraySupported Minecraft versions, e.g. ['1.21.8'].
project_id *stringTarget project slug or id (must already exist).
version_number *stringVersion string, e.g. '1.21.8' or '2.0.0+1.21.8'.
changelogstringMarkdown changelog.
dependenciesarrayDependencies. e.g. Fabric API as required: [{project_id:'P7dR8mSH', dependency_type:'required'}].
featuredbooleanFeature this version.
loadersarrayMod loaders, e.g. ['fabric']. Defaults to fabric.
namestringDisplay name for the version.
version_typestringRelease channel.

modrinth_create_project

Create a NEW Modrinth project (the initial project page). Created as a DRAFT — nothing is public until you submit it for review on the site or set requested_status. This is a write action; only call it when the user explicitly asks to create a new project. After it exists, publish jars with modrinth_create_version.

ParameterTypeDescription
description *stringShort one-or-two-sentence summary shown in search.
slug *stringURL slug, 3-64 chars, e.g. 'no-anvil-limit'. Becomes modrinth.com/project/<slug>.
title *stringProject display name, e.g. 'No Anvil Limit'.
bodystringLong-form markdown description for the project page.
categoriesarrayFeatured categories, e.g. ['utility','game-mechanics']. Must be valid Modrinth categories for the project_type.
client_sidestringWhether the mod is needed on the client. Editable later.
discord_urlstringDiscord invite URL.
icon_pathstringAbsolute path to an icon image (png/jpg/webp/gif/svg).
issues_urlstringIssue tracker URL.
license_idstringSPDX license id, e.g. 'MIT', 'GPL-3.0-only', 'ARR'.
project_typestringProject type. Defaults to mod.
requested_statusstringDesired status once processed. Stays a draft until you submit for review on the site.
server_sidestringWhether the mod is needed on the server. Editable later.
source_urlstringSource code repo URL.
wiki_urlstringWiki/docs URL.

modrinth_modify_version

Edit metadata of an EXISTING published version (name, changelog, version_type, loaders, game_versions, featured). Does not upload files.

ParameterTypeDescription
version_id *stringThe version id to modify.
changelogstring
featuredboolean
game_versionsarray
loadersarray
namestring
version_typestring