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

@tomisakae/mc-mcp

v1.0.4

Published

MCP dành cho Minecraft

Downloads

7

Readme

Minecraft MCP (Model Context Protocol)

Giới thiệu

Minecraft MCP là một Model Context Protocol (MCP) server dành cho Minecraft, cho phép bạn tương tác với Minecraft thông qua các công cụ MCP. Nó sử dụng API RESTful được cung cấp bởi Minecraft MCP API Mod để truy cập thông tin về người chơi, thế giới, vật phẩm, công thức chế tạo và thực thi lệnh từ bên ngoài game.

Các tính năng chính

  • Kiểm tra trạng thái Minecraft server
  • Lấy thông tin chi tiết về người chơi (vị trí, trạng thái, v.v.)
  • Xem túi đồ của người chơi
  • Phân tích các khối xung quanh người chơi
  • Liệt kê các entity gần người chơi
  • Xem thống kê của người chơi
  • Lấy thông tin về thế giới Minecraft
  • Thực thi lệnh Minecraft
  • Lấy danh sách vật phẩm trong game
  • Lấy công thức chế tạo của vật phẩm

Yêu cầu

1. Cài đặt Minecraft MCP API Mod

  • Đảm bảo bạn đã cài đặt Minecraft 1.21.1 với Fabric Loader
  • Tải mod và đặt vào thư mục mods của Minecraft
  • Khởi động Minecraft server hoặc singleplayer world
  • API server sẽ tự động chạy trên cổng 8080

2. Cài đặt Minecraft MCP

# Cài đặt các dependencies
npm install

# Xây dựng dự án
npm run build

Cấu hình với Model Context Protocol (MCP)

Claude Desktop

  1. Mở Claude Desktop và vào Settings
  2. Chọn mục Developer và bật Developer Mode
  3. Tìm file cấu hình tại:
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  4. Thêm cấu hình MCP vào file:
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": ["-y", "@tomisakae/mc-mcp"]
    }
  }
}

Sử dụng

Sau khi cấu hình, bạn có thể sử dụng các công cụ sau trong Claude Desktop:

Kiểm tra trạng thái

checkServerHealth

Lấy thông tin người chơi

getPlayerInfo playerName="Tên_Người_Chơi"

Lấy thông tin túi đồ

getPlayerInventory playerName="Tên_Người_Chơi"

Lấy thông tin xung quanh người chơi

getPlayerSurroundings playerName="Tên_Người_Chơi" radius=15 includeCommonBlocks=false

Lấy thông tin entity gần người chơi

getPlayerEntities playerName="Tên_Người_Chơi" radius=20 includeHostile=true

Lấy thống kê người chơi

getPlayerStatistics playerName="Tên_Người_Chơi"

Lấy thông tin thế giới

getWorldInfo

Thực thi lệnh

executeCommand command="give @p diamond 64"

Lấy danh sách vật phẩm

getItemsList

Lấy công thức chế tạo

getItemRecipes itemId="minecraft:diamond_sword"

Hiển thị hướng dẫn

minecraftHelp

Lưu ý

  • API server chỉ hoạt động khi Minecraft server đang chạy
  • Các API liên quan đến người chơi chỉ hoạt động khi người chơi đang online
  • Bán kính quét càng lớn, thời gian phản hồi càng lâu
  • Đảm bảo rằng bạn đang sử dụng phiên bản mới nhất của Minecraft MCP API Mod

Giấy phép

Dự án này được phát hành dưới giấy phép MIT.