Skip to main content
Glama
justinscott12

modrinth-mcp

modrinth-mcp

一个封装了 Modrinth API 的 MCP 服务器,使 AI 代理(Claude Code、Claude Desktop、Cursor 等)能够搜索项目、读取项目/版本元数据,以及发布 Minecraft 模组——创建项目并上传构建好的 jar 作为新版本。

工具

工具

认证

功能说明

modrinth_whoami

验证你的令牌;返回已认证的用户信息。

modrinth_search_projects

搜索公开的 Modrinth 项目。

modrinth_get_project

通过 slug 或 id 获取项目元数据。

modrinth_list_project_versions

列出项目已发布的版本。

modrinth_create_version

通过上传一个或多个 jar 发布新版本

modrinth_create_project

创建新项目(作为草稿)。

modrinth_modify_version

编辑现有版本的元数据。

只读工具无需令牌即可使用。任何写入操作都需要 Modrinth 个人访问令牌

Related MCP server: ModWrench MCP Server

获取令牌

https://modrinth.com/settings/pats 创建一个个人访问令牌,并授予以下权限:

  • 读取项目

  • 读取版本

  • 创建版本

  • 写入版本

将其设置为 MODRINTH_TOKEN 环境变量。

安装

作为 Claude Code 插件

/plugin marketplace add justinscott12/modrinth-mcp
/plugin install modrinth-mcp@justinscott12

启用插件时,系统会提示你输入 Modrinth 令牌。它通过 npx 在底层运行已发布的 npm 包。

作为 MCP 服务器(任意客户端)

将以下内容添加到你的 MCP 客户端配置中(例如 Claude Desktop 的 claude_desktop_config.json):

{
  "mcpServers": {
    "modrinth": {
      "command": "npx",
      "args": ["-y", "@justinscott12/modrinth-mcp"],
      "env": {
        "MODRINTH_TOKEN": "your-modrinth-pat"
      }
    }
  }
}

或者直接在 Claude Code 中配置:

claude mcp add modrinth --env MODRINTH_TOKEN=your-modrinth-pat -- npx -y @justinscott12/modrinth-mcp

环境变量

变量

默认值

用途

MODRINTH_TOKEN

Modrinth 个人访问令牌。写入操作必需。

MODRINTH_STAGING

未设置

设置为 1 以访问 https://staging-api.modrinth.com 进行安全测试。

MODRINTH_USER_AGENT

modrinth-mcp/<version> …

覆盖发送给 Modrinth 的 User-Agent。

示例流程

  1. modrinth_whoami — 确认认证正常。

  2. modrinth_create_project — 创建项目页面(作为草稿创建)。

  3. modrinth_create_version — 上传你构建好的 jar,并指定目标 game_versionsloaders

  4. 准备就绪后,在 Modrinth 网站上提交项目进行审核。

注意: create_versioncreate_project 会发布公开内容。请仅在确实打算发布时调用它们。

开发

npm install
MODRINTH_STAGING=1 MODRINTH_TOKEN=your-staging-pat npm start

该服务器通过 stdio 进行 MCP 通信。stdout 保留给协议使用;日志输出到 stderr

许可证

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to read and modify Mendix application models through MCP tools for creating modules, entities, pages, microflows, deploying, and querying runtime data.
    1

View all related MCP servers

Related MCP Connectors

  • Search a curated directory of 300+ verified AI agents, MCP servers, and agentic tools.

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

View all MCP Connectors

Latest Blog Posts

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/justinscott12/modrinth-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server