modrinth-mcp
modrinth-mcp
一个封装了 Modrinth API 的 MCP 服务器,使 AI 代理(Claude Code、Claude Desktop、Cursor 等)能够搜索项目、读取项目/版本元数据,以及发布 Minecraft 模组——创建项目并上传构建好的 jar 作为新版本。
工具
工具 | 认证 | 功能说明 |
| ✅ | 验证你的令牌;返回已认证的用户信息。 |
| – | 搜索公开的 Modrinth 项目。 |
| – | 通过 slug 或 id 获取项目元数据。 |
| – | 列出项目已发布的版本。 |
| ✅ | 通过上传一个或多个 jar 发布新版本。 |
| ✅ | 创建新项目(作为草稿)。 |
| ✅ | 编辑现有版本的元数据。 |
只读工具无需令牌即可使用。任何写入操作都需要 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 个人访问令牌。写入操作必需。 |
| 未设置 | 设置为 |
|
| 覆盖发送给 Modrinth 的 User-Agent。 |
示例流程
modrinth_whoami— 确认认证正常。modrinth_create_project— 创建项目页面(作为草稿创建)。modrinth_create_version— 上传你构建好的 jar,并指定目标game_versions和loaders。准备就绪后,在 Modrinth 网站上提交项目进行审核。
注意:
create_version和create_project会发布公开内容。请仅在确实打算发布时调用它们。
开发
npm install
MODRINTH_STAGING=1 MODRINTH_TOKEN=your-staging-pat npm start该服务器通过 stdio 进行 MCP 通信。stdout 保留给协议使用;日志输出到 stderr。
许可证
Maintenance
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
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to fetch comprehensive information about Maven packages from Maven Central, including README content, package metadata, dependencies, and search functionality with GitHub integration.8MIT
- 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
- AlicenseAqualityBmaintenanceEnables AI agents to search Minecraft obfuscated name mappings (class, method, field) across 38 versions, aiding modding, plugin development, and reflection.12MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to read and modify Mendix application models through MCP tools for creating modules, entities, pages, microflows, deploying, and querying runtime data.1
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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