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

v1.0.0

Published

MCP server that allows AI agents to play Minecraft using Mineflayer

Readme

🎮 Minecraft MCP Server

An MCP (Model Context Protocol) server that allows AI agents to play Minecraft! Built with Mineflayer and the official MCP TypeScript SDK.

🚀 Features

Connection Management

  • Connect/disconnect to any Minecraft server
  • Support for offline and Microsoft authentication
  • Automatic version detection

Movement & Navigation

  • Pathfinding: Navigate to any coordinates using A* pathfinding
  • Follow players: Dynamically follow other players
  • Look at: Point the bot's view at specific coordinates
  • Jump: Make the bot jump

Block Interaction

  • Dig blocks: Break blocks at specific coordinates
  • Place blocks: Place blocks from inventory
  • Find blocks: Search for specific block types nearby
  • Activate blocks: Interact with chests, buttons, doors, etc.
  • Collect blocks: Navigate to and mine specific blocks

Inventory Management

  • View inventory: See all items in inventory
  • Equip items: Equip items to hand, off-hand, or armor slots
  • Drop items: Discard items from inventory

Crafting

  • Craft items: Automatically craft items with available recipes
  • Get recipes: Query available recipes for any item

Combat

  • Attack entities: Attack mobs or players
  • Stop attacking: Cease combat
  • Get nearby entities: List all entities within range

Chat & Communication

  • Send chat: Send public chat messages
  • Whisper: Send private messages to players
  • Get players: List all players on the server

Survival Features

  • Auto-eat: Automatic food consumption when hungry
  • Eat: Manually eat specific food items
  • Sleep: Find and sleep in nearby beds
  • Get status: Full status report (health, hunger, position, etc.)

📦 Installation

# Clone or download the project
git clone https://github.com/yourusername/minecraft-mcp.git
cd minecraft-mcp

# Install dependencies
npm install

# Build the project
npm run build

🔧 Configuration

Claude Desktop Configuration

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "minecraft": {
      "command": "node",
      "args": ["/path/to/minecraft-mcp/build/index.js"]
    }
  }
}

Cursor/VS Code Configuration

Add to your MCP settings:

{
  "mcp": {
    "servers": {
      "minecraft": {
        "command": "node",
        "args": ["/path/to/minecraft-mcp/build/index.js"]
      }
    }
  }
}

🎯 Available Tools

| Tool | Description | |------|-------------| | connect | Connect to a Minecraft server | | disconnect | Disconnect from the server | | get_status | Get bot's current status | | goto | Navigate to coordinates | | follow_player | Follow a specific player | | stop_movement | Stop all movement | | jump | Make the bot jump | | look_at | Look at coordinates | | dig_block | Break a block | | place_block | Place a block | | get_block_info | Get info about a block | | find_blocks | Find nearby blocks | | get_inventory | View inventory contents | | equip_item | Equip an item | | drop_item | Drop items | | craft_item | Craft an item | | get_recipes | Get crafting recipes | | attack_entity | Attack an entity | | stop_attack | Stop attacking | | get_nearby_entities | List nearby entities | | send_chat | Send chat message | | whisper | Private message a player | | get_players | List online players | | use_item | Use held item | | eat | Eat food | | sleep | Sleep in a bed | | wake | Wake up | | collect_block | Collect specific blocks | | activate_block | Interact with a block |

💡 Example Usage

Connecting to a Server

Connect to my local Minecraft server at localhost:25565 with username "AIBot"

Mining Diamonds

Find diamond ore near me and navigate to collect it

Building

Build a 3x3 cobblestone platform at my current position

Combat

Find and attack any zombies within 20 blocks

Crafting

Craft a wooden pickaxe using the wood in my inventory

🏗️ Development

# Run in development mode with auto-reload
npm run dev

# Build for production
npm run build

# Start the built server
npm start

🔐 Authentication

Offline Mode (Default)

For servers with online-mode=false:

Connect with auth: "offline"

Microsoft Account

For online servers (requires Microsoft account):

Connect with auth: "microsoft"

Note: Microsoft authentication will open a browser window for login.

⚠️ Known Limitations

  1. No GUI: The bot operates headlessly - no game window is displayed
  2. Server Compatibility: Works best with vanilla Minecraft servers
  3. Version Support: Supports Minecraft 1.8 through 1.21+
  4. Single Bot: Currently supports one bot connection at a time

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

📄 License

MIT License - feel free to use this in your own projects!

🙏 Credits