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

v0.2.0

Published

MCP server bridge & launcher CLI for Minecraft — connect AI tools to Minecraft via Model Context Protocol, launch and manage instances

Readme

minecraft-mod-mcp

npm node Deno Bun License

MCP (Model Context Protocol) server bridge for Minecraft — connect AI tools to Minecraft via standard MCP.

Works with OpenCode, Claude Code, Cursor, and any MCP-compatible AI tool.

Features

  • 35+ MCP tools: screenshot, click, type, scroll, drag, hotkey, execute commands, query player/world state
  • Multi-version: Minecraft 1.8.9 through 26.1.2, Forge / Fabric / NeoForge
  • Zero-config port discovery: mod and server auto-negotiate ports (9876–9000)
  • Cross-runtime: Node.js 20+, Deno, Bun
  • MCP Streamable HTTP transport: standards-compliant

Quick Start

# Install globally
npm install -g minecraft-mod-mcp

# Or use directly
npx minecraft-mod-mcp

# With options
npx minecraft-mod-mcp --port 9878 --no-discover

For the full CLI reference (launching servers, managing versions, accounts, building SDKs), see CLI Usage Guide — available in 8 languages.

MCP Configuration

Add to your .mcp.json or opencode.json:

{
  "mcpServers": {
    "minecraft": {
      "type": "streamable-http",
      "url": "http://localhost:9876/mcp"
    }
  }
}

The server auto-scans ports 9876–9000. If 9876 is occupied, it picks the next available.

Tools

Sensing (always available)

| Tool | Description | |------|-------------| | ping | Ping the mod | | screenshot | Capture screenshot with coordinate grid | | get_player_info | Player position, health, mode, etc. | | get_world_info | World seed, time, weather, etc. | | debug_fields | F3 debug overlay data | | get_screen_buttons | List GUI buttons | | enumerate_widgets | Full widget tree |

Input (requires control mode)

| Tool | Description | |------|-------------| | click | Click at (x, y) | | right_click | Use / place | | mouse_drag | Drag from A to B | | scroll | Scroll wheel | | press_key | Press keyboard key | | type_text | Type text | | paste_text | Paste via clipboard | | hotkey | Key combination | | set_view_angle | Set yaw/pitch | | look_delta | Rotate view | | execute_command | Minecraft slash command |

Control

| Tool | Description | |------|-------------| | enter_control_mode | Release mouse, enable input | | exit_control_mode | Return to normal | | release_mouse | Release cursor | | set_gamemode | Change game mode | | launch_minecraft | Start MC (calls launch_mc.py) | | kill_minecraft | Stop MC | | get_minecraft_status | Connection status |

How It Works

AI Tool ──MCP──► minecraft-mod-mcp (TS) ──HTTP──► Minecraft Mod (Java)
                  port scan 9876-9000              port scan 9876-9000
  1. The Minecraft mod starts an HTTP server on the first available port (9876→9000)
  2. The MCP server discovers the mod by scanning the same range
  3. All communication is pure HTTP — no WebSocket, no hardcoded ports

Requirements

  • Minecraft with the minecraft-mcp mod installed
  • Node.js 20+ (or Deno, or Bun)
  • Python 3.11+ (for launch_mc.py game launcher)

License

Licensed under either of:

  • Apache License, Version 2.0
  • MIT License

at your option.