npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

modrinth-mcp

v1.0.1

Published

MCP server for the Modrinth API

Readme

modrinth-mcp

npm

MCP server for the Modrinth API. Exposes the full Modrinth REST API v2 as tools for AI coding assistants like Claude Code and Codex.

Installation

Wizard (recommended)

Run the interactive installer and pick which agents to wire up:

npx -y modrinth-mcp install

It detects installed clients (Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, Antigravity 2.0, Codex), lets you multi-select them with the keyboard (↑/↓ move, space toggle, a all, enter confirm), optionally stores your Modrinth token, and merges the server into each client's config. Existing servers are preserved and a .bak backup is written.

Non-interactive / scripted:

npx -y modrinth-mcp install --client cursor,codex --token <your-pat>

Run npx -y modrinth-mcp install --help for all options.

Manual

Or add it to your client's MCP config by hand:

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

Generate a PAT at modrinth.com/settings/account.

From source

git clone https://github.com/oneauraaa/modrinth-mcp.git
cd modrinth-mcp
npm install        # builds automatically via the prepare script
node dist/index.js install

Run from a clone, the wizard points configs at your local dist/index.js instead of npm.

Tools

Tags (no auth required)

| Tool | Description | |------|-------------| | modrinth_get_categories | All project categories | | modrinth_get_loaders | All mod loaders | | modrinth_get_game_versions | All Minecraft versions | | modrinth_get_licenses | All SPDX licenses |

Projects

| Tool | Auth | Description | |------|------|-------------| | modrinth_search_projects | No | Faceted search | | modrinth_get_project | No | Get by ID or slug | | modrinth_get_multiple_projects | No | Batch fetch | | modrinth_check_project_validity | No | Check if slug/ID exists | | modrinth_get_project_dependencies | No | Get dependencies | | modrinth_create_project | Yes | Create project | | modrinth_update_project | Yes | Update fields | | modrinth_delete_project | Yes | Delete permanently | | modrinth_follow_project | Yes | Follow | | modrinth_unfollow_project | Yes | Unfollow |

Versions

| Tool | Auth | Description | |------|------|-------------| | modrinth_list_versions | No | List with filters | | modrinth_get_version | No | Get by ID | | modrinth_get_version_from_hash | No | Look up by file hash | | modrinth_create_version | Yes | Create and upload files | | modrinth_update_version | Yes | Update fields | | modrinth_delete_version | Yes | Delete permanently | | modrinth_schedule_version | Yes | Schedule publication | | modrinth_add_files_to_version | Yes | Upload additional files | | modrinth_delete_file_from_version | Yes | Delete file by hash |

Users

| Tool | Auth | Description | |------|------|-------------| | modrinth_get_user | No | Get by ID or username | | modrinth_get_authenticated_user | Yes | Get PAT owner | | modrinth_update_user | Yes | Update profile | | modrinth_get_user_projects | No | List user's projects |

Teams

| Tool | Auth | Description | |------|------|-------------| | modrinth_get_project_team | No | Get team members | | modrinth_add_team_member | Yes | Add member | | modrinth_update_team_member | Yes | Update role/permissions | | modrinth_remove_team_member | Yes | Remove member | | modrinth_transfer_team_ownership | Yes | Transfer ownership |

Notifications

| Tool | Auth | Description | |------|------|-------------| | modrinth_get_notifications | Yes | List notifications | | modrinth_mark_notification_read | Yes | Mark as read | | modrinth_delete_notification | Yes | Delete |

Reports

| Tool | Auth | Description | |------|------|-------------| | modrinth_submit_report | Yes | Submit report | | modrinth_get_reports | Yes | List submitted reports | | modrinth_update_report | Yes | Update/close report |

Development

npm install
npm test        # run tests
npm run build   # compile TypeScript