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-driver-mcp

v0.7.0

Published

Stdio MCP gateway for the Minecraft Driver Fabric mod

Readme

Minecraft Driver MCP gateway

This gateway is made to be used with the minecraft-driver-mcp Fabric client mod. Install the mod in each Minecraft client you want to control, using a matching release.

The gateway is the recommended connection method for coding agents using the mod. It advertises built-in tools before Minecraft starts and stays connected across game restarts. It uses the mod's instance registry to discover local clients and forwards calls to the selected client's HTTP endpoint. Clients must be running with the mod to execute game calls. The gateway does not start or stop games, and it does not dynamically load tools contributed by extension mods.

The gateway requires Node.js 22 or later. The Minecraft mod still requires Java 21. Use matching gateway and mod releases; a Minecraft suffix such as +1.21.1 is ignored when comparing the versions.

Build and test from the repository

For released versions, run npx -y minecraft-driver-mcp@<matching-release> as the stdio command in your MCP host, or install the executable globally with npm install --global minecraft-driver-mcp@<matching-release>.

The built-in definitions are maintained in this package's catalogue.json. The mod build bundles the same file as a resource. To build and test the gateway:

cd gateway
npm ci
npm test
npm pack

npm pack creates a local .tgz package for testing source builds before publication. Install it with npm install --global ./minecraft-driver-mcp-<matching-release>.tgz and register minecraft-driver-mcp as the stdio command in your MCP host.

Configuration

The default config file is ~/.minecraft-driver-mcp/gateway.json; pass --config <path> to select another. If registryDirectory is omitted, the gateway uses the mod's default registry directory. Configured paths resolve relative to the config file.

{
  "tokens": {
    "builder": "MINECRAFT_BUILDER_TOKEN",
    "tester": "MINECRAFT_TESTER_TOKEN"
  },
  "connectTimeoutMs": 5000,
  "requestTimeoutMs": 70000
}

The tokens mapping connects unique instance names to environment variable names. Store bearer token values in the gateway process environment, not in the JSON file. Token mapping names must be unique. If multiple registry records share a name, select by PID; the token mapping still cannot distinguish those duplicate names.

Routing

Call mc_list_instances to inspect registry records. Its check_ready argument is optional; set it to true to check endpoint health and return authentication and version status. Call mc_wait_for_instance to wait for a selected record to become ready. It accepts an instance_name or instance_pid; ready defaults to true, timeout_ms defaults to 10000 and is capped at 60000, and ready:false performs registry discovery without waiting for endpoint readiness.

Forwarded game tools accept optional instance_name and instance_pid. Without selectors, exactly one live registered client must exist. Multiple live clients require explicit selection even if only one is ready. Supplying both selectors requires them to resolve to the same record. The gateway removes selector fields before forwarding the tool arguments. If the selected endpoint is unavailable, it returns an error without rerouting the call to another client. Names can remain stable across restarts; PIDs change. Endpoint readiness does not indicate that a world is loaded; use the mod's mc_wait_for for in-game screens and messages.

The gateway uses localhost and controls a player's game. Trust the local MCP host and machine. It does not retry forwarded calls, and canceling a request does not undo an action already received by the client.

MCP host timeouts

Forwarded requests can take up to 70000 ms. Set the host timeout above that value. Claude Code uses the MCP_TOOL_TIMEOUT environment variable in milliseconds; Codex uses tool_timeout_sec in seconds. See the full gateway guide for registration examples.