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

minecraft-mod-mcp-server

v1.0.0

Published

MCP Server for Minecraft Modpack Development - generate quests, items, recipes, and more

Readme

minecraft-mod-mcp-server

Cloudflare Workers MCP server for Minecraft modpack development. Generates FTB Quests chapters and tasks, KubeJS scripts (weapons, armor, recipes), validates SNBT/config files, and provides diagnostic checks.

M8ven Verified

Deployment Status

Deployed at: https://minecraft-mcp.mcjj.workers.dev

This project runs as a Cloudflare Worker and is live at the URL above. For local development and testing, see Local Development below.

Local Development

Run locally to preview and test before deploying:

http://localhost:8788/mcp

Tools

FTB Quests Generation

| Tool | Description | |------|-------------| | generate_quest_chapter | Generate a complete FTB Quests chapter file (SNBT format) with multiple tasks, dependencies, and rewards | | generate_quest_task | Generate a single FTB Quests task definition (item/kill/advancement/checklist types) | | generate_hex_id | Generate a 16-bit random hex ID for FTB Quests chapter/task IDs | | generate_chapter_group_snbt | Generate chapter_groups.snbt to define quest book grouping (main/branch quests) | | generate_quest_data_snbt | Generate data.snbt quest book main config (title, icon, progress mode) |

KubeJS Script Generation

| Tool | Description | |------|-------------| | generate_kubejs_weapon | Generate KubeJS weapon registration code (attack damage, speed, durability, skills) | | generate_kubejs_armor_set | Generate KubeJS armor set registration code (helm/chest/leggings/boots with tier definitions) | | generate_kubejs_shaped_recipe | Generate KubeJS shaped recipe code (3x3 crafting pattern with ingredient mapping) | | generate_kubejs_shapeless_recipe | Generate KubeJS shapeless recipe code (just ingredients and output) | | generate_kubejs_smelting | Generate KubeJS smelting/furnace/smoker recipe code | | generate_kubejs_remove_recipe | Generate KubeJS recipe removal code (override or disable vanilla/mod recipes) |

Validation & Diagnostics

| Tool | Description | |------|-------------| | validate_snbt | Validate SNBT file syntax (check unmatched braces, Count format issues, etc.) | | check_kubejs_errors | Check KubeJS scripts for common errors (deprecated APIs, Rhino engine compatibility issues) | | generate_item_texture_path | Generate KubeJS item/armor texture path guide for correct file placement |

Features

  • FTB Quests generation — full SNBT output for quest books with dependencies, rewards, and grouping
  • KubeJS script generation — weapons, armor, shaped/shapeless/smelting recipes, and recipe removals
  • SNBT validation — catches syntax errors before they cause runtime issues in-game
  • KubeJS diagnostics — detects deprecated APIs and Rhino engine compatibility problems
  • Zero network dependency — all generation is purely algorithmic; no external APIs called
  • Cloudflare Workers ready — designed for edge deployment; no network or external API dependency for generation logic

Installation (Local Development)

Prerequisites

Setup

cd minecraft-mcp-server
npm install

Run locally

npm start
# or
npx wrangler dev

Then connect via MCP client to http://localhost:8788/mcp.

Deploy to Cloudflare

npm run deploy

Configuration for MCP clients

Local development — connect to the local server:

{
  "mcpServers": {
    "minecraft-mod": {
      "url": "http://localhost:8788/mcp"
    }
  }
}

Production deployment — connect to the live endpoint:

{
  "mcpServers": {
    "minecraft-mod": {
      "url": "https://minecraft-mcp.mcjj.workers.dev/mcp"
    }
  }
}

Architecture

minecraft-mcp-server/
├── src/
│   ├── index.ts           # Cloudflare Worker entry point + MCP server setup
│   ├── types.ts           # Cloudflare Workers environment types
│   ├── tools/
│   │   ├── quest.ts       # FTB Quests generation logic
│   │   ├── kubejs.ts      # KubeJS script generation logic
│   │   └── validate.ts    # SNBT validation + KubeJS diagnostics
│   └── templates/
│       ├── quest_chapter.ts
│       ├── kubejs_item.ts
│       └── kubejs_recipe.ts
├── __tests__/
│   └── unit.test.ts       # Unit tests (fully offline, 49 tests)
├── vitest.config.ts       # Vitest config (ESM, globals: false)
├── package.json           # Dependencies (@modelcontextprotocol/sdk, agents, zod, wrangler)
└── wrangler.jsonc         # Cloudflare Workers deployment config

The MCP server is built on the @modelcontextprotocol/sdk v1.x and is designed to run as a Cloudflare Worker via the agents library's createLegacyMcpHandler.

Testing

npm test
# or
npx vitest run

All 49 unit tests run fully offline — no network or Cloudflare account required for testing.

Platform Compatibility

| Aspect | Windows | macOS | Linux | |--------|---------|-------|-------| | Local dev (wrangler dev) | ✅ | ✅ | ✅ | | Unit tests (vitest) | ✅ | ✅ | ✅ | | Production deployment | Requires Cloudflare account | Requires Cloudflare account | Requires Cloudflare account |

This project is designed to run on Cloudflare Workers. For local development and testing, use wrangler dev — no Cloudflare account or internet connection is required. The generation logic is pure TypeScript and fully offline. To deploy to production, you need a Cloudflare account with Workers enabled.

License

MIT

Security Notes

npm audit --omit=dev reports 0 vulnerabilities. The MCP protocol packages are pinned to patched versions via overrides in package.json (@modelcontextprotocol/sdk ^1.32.1, @modelcontextprotocol/client ^2.3.1, @modelcontextprotocol/server ^2.3.1), because the agents library pins older vulnerable versions and upgrading it to a fixed major release would be a breaking change. All 14 tools declare the four MCP annotations (readOnlyHint / destructiveHint / idempotentHint / openWorldHint) and a zod inputSchema.