
Awesome Mineflayer MCP
io.github.G0Osey99由 GitHub 帳號 G0Osey99 發布v1.3.2更新於 Oct 24, 2026
Control a Mineflayer Minecraft bot with 120+ MCP tools: move, mine, craft, fight, build, and see.
發布方自己的服務:Awesome Tools
概覽
本機 MCP 伺服器,讓 AI 助理透過 123 個工具操控 Mineflayer Minecraft 機器人:移動、挖礦、合成、戰鬥、建造、交易並觀察世界。
- 可以做什麼
- 連線、重新連線與中斷機器人,查看連線狀態與預設帳號設定。觀察世界:生命狀態、位置、背包、玩家、實體、方塊、計分板與事件。移動與行動:尋路、挖掘、放置方塊、戰鬥、採集以及建造/挖掘巨集。管理物品與設施:背包、容器、熔爐、附魔、村民交易、合成與自動選工具。自動化生存與互動:自動進食、護甲、睡覺、載具、釣魚、書與告示牌、聊天與斜線指令。透過第一人稱截圖或示意圖查看世界,並保存跨重啟的路徑點。
- 適用情境
- 適合讓 AI 代理在你自行掌控的 Minecraft Java 版伺服器上無人值守地遊玩或測試:採集、挖礦、建造、戰鬥、交易或探索。也適合腳本化機器人流程,以及採集木材、挖鑽石等引導式提示。
- 執行需求
- 以 npx 或全域 npm 安裝執行的本機程序,需要 Node.js 20 或 22。需要一個 Minecraft Java 版伺服器(大致 1.8 到 1.21.x)。離線模式伺服器只需使用者名稱;線上模式伺服器需要 Microsoft 帳號並完成一次裝置碼登入,權杖會快取在 profiles 目錄。截圖需要 Chrome、Edge 或安裝 Playwright Chromium。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Awesome Mineflayer MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
awesome-mineflayer-mcp
[npm version] [node] [license: MIT]
A production-ready Model Context Protocol server that gives an LLM agent standalone-equivalent control over a Mineflayer Minecraft bot — movement, mining, crafting, inventory, combat, containers, chat, and much more — exposed as 123 strongly-typed tools across 26 groups, plus guided prompts, vision (real first-person screenshots + schematic maps), persistent waypoints, build/dig macros, and dual (poll + push) event streaming, with full bot lifecycle management. Tool results carry both human-readable text and machine-readable structuredContent.
Backed by the Mineflayer ecosystem: mineflayer-pathfinder (A* navigation), mineflayer-pvp (combat), mineflayer-collectblock (gathering), mineflayer-tool (auto tool-select), mineflayer-auto-eat, and mineflayer-armor-manager.
Requirements
- Node.js ≥ 20 (developed on 22.16)
- A Minecraft server to connect to (Java Edition). The bot auto-detects the server version. Don't have one? See Get a server to test against.
- For online-mode servers: a Microsoft account (
auth: "microsoft").
Supported versions
A few tools only work on newer versions/features (e.g. elytra_fly, chat signing). On a version mismatch the bot is kicked with an outdated client/server message — pass an explicit version.
Installation
Run it on demand with npx (no install needed):
…or install it globally:
The server speaks MCP over stdio, so it is normally launched by your MCP client rather than run by hand.
Use with an MCP client
Add it to your client's MCP server configuration. The recommended form uses npx so you always get the latest published build:
Claude Desktop (claude_desktop_config.json), Claude Code, Cursor, or any stdio MCP client:
If you installed it globally, use "command": "awesome-mineflayer-mcp" with "args": [] instead.
Get a Minecraft server to test against
If you don't already have a server, spin up a throwaway offline-mode one with Docker (no account needed):
…or a one-liner without the repo:
Then connect: connect_bot { host: "localhost", username: "DevBot", auth: "offline" }. Tear it down with docker compose down -v (or docker rm -f mc). Don't expose an offline-mode server to the public internet.
Autonomous operation (default account)
For hands-off use, configure a default account so the bot connects automatically on startup — no connect_bot call required. Run the interactive setup:
It asks for the server host/port, an offline or Microsoft account, and whether to auto-connect on startup, then writes ~/.awesome-mineflayer-mcp/config.json (no password is stored). For a Microsoft account it runs the device-code sign-in once and caches the token under profilesFolder, so later startups need no prompt.
On startup the server auto-connects the configured account (verify with get_connection_status). The agent can also call connect_default to (re)connect it or get_default_account to inspect it.
Configure without the wizard (env vars)
You can set the default account entirely from your MCP client config — handy for headless deploys. Environment variables override the config file:
For Microsoft auth in a headless setup, run setup once locally first (or point MCP_PROFILES_FOLDER at a directory with a pre-cached token).
Configuration (environment variables)
Example — disable rarely-used groups:
Quick start (tool flow)
connect_bot{ host, username, auth }— connect (resolves once the bot spawns). Skip this if you configured a default account — the bot auto-connects on startup; just checkget_connection_status.- Act:
goto,dig,collect_block,craft_item,pvp_attack,chat, … - Observe: call
get_observationfor a one-shot snapshot (vitals, position, inventory, nearby entities, new events) — pass the returnedevents.nextSinceback each tick. Or composeget_state/get_inventory/list_entities/get_events, or subscribe to thebot://*resources. disconnect_botwhen done.
New to the server? Use the getting_started prompt (see Prompts) for an in-context walkthrough.
Block / item / entity arguments accept human names ("iron_ore", "diamond_pickaxe", "zombie"); unknown names return fuzzy suggestions.
Authentication
auth: "offline"(default) — offline-mode servers;usernameis the in-game name.auth: "microsoft"—usernameis the account email. A device-code prompt is emitted as anmsa_codeevent / log notification. SetprofilesFolderto cache the token so subsequent runs skip the prompt, or pass a cachedaccessToken. Tip: runnpx awesome-mineflayer-mcp setuponce to do the device-code sign-in and cache the token, then the server connects autonomously (see Autonomous operation).
Tool catalog (123 tools, 26 groups)
Full generated reference (every tool, prompt, resource):
docs/TOOLS.md.
Group keys (for MCP_DISABLE_GROUPS) are shown in brackets.
- Lifecycle
[lifecycle]—connect_bot,connect_default,disconnect_bot,reconnect_bot,respawn,get_connection_status,get_default_account - State & inspection
[state](read-only) —get_observation(one-call snapshot for an agent's observe loop),get_state,get_inventory,list_players,list_entities,find_nearest_entity,get_entity_details,get_scoreboards,get_teams,get_boss_bars,get_control_states,get_chat_patterns,support_feature,pathfinder_status,get_settings,get_physics,get_loaded_plugins - World queries
[world](read-only) —get_block_at,find_blocks,get_cursor_target,get_blocks_in_region,wait_for_chunks_to_load - Movement & pathfinding
[movement]—goto,set_goal,flee_from,follow_entity,stop_pathfinding,get_path_to,configure_movements,configure_pathfinder,set_control_state,clear_control_states,elytra_fly,wait_for_ticks,set_physics_enabled - Look
[look]—look_at,look,look_at_entity - Digging & building
[digging]—dig,place_block,activate_block,activate_entity,swing_arm - Combat
[combat]—pvp_attack,attack_entity,pvp_stop,pvp_configure - Inventory & items
[inventory]—equip_item,unequip_item,toss_item,set_quickbar_slot,consume,activate_item,click_window,move_slot_item,transfer_items - Containers
[containers]—open_container,read_open_container,container_deposit,container_withdraw,close_window - Furnace / smelting
[furnace]—open_furnace,furnace_action,furnace_status,smelt_item - Enchanting & anvil
[enchanting]—enchant_item,anvil_combine - Villager trading
[villager]—open_villager,trade_with_villager - Crafting
[crafting]—list_recipes,craft_item - Block gathering
[gathering]—collect_block,cancel_collect,set_collect_config - Tool auto-select
[tool]—equip_tool_for_block,set_tool_chest_locations,get_best_tool - Survival automation
[survival]—autoeat_set_enabled,autoeat_configure,autoeat_eat,autoeat_cancel,autoeat_preview,armor_equip_all - Beds & sleep
[beds]—sleep,wake - Vehicles
[vehicles]—mount_entity,dismount,steer_vehicle - Fishing, books & signs
[fishing]—fish,cancel_fish,write_book,update_sign - Chat & communication
[chat]—chat,whisper,run_command,tab_complete,register_chat_pattern,remove_chat_pattern,wait_for_message - Settings
[settings]—set_settings - Creative mode
[creative]—creative_set_inventory_slot,creative_clear_inventory,creative_fly,creative_fly_to - Vision
[vision]—get_screenshot(real first-person textured game render),render_map(dependency-free schematic map) — see Vision - Waypoints
[waypoints]—set_waypoint,list_waypoints,delete_waypoint,goto_waypoint(persisted across restarts) - Build & dig macros
[build]—clear_region,dig_tunnel,dig_staircase,fill_region(cancellable, multi-block) - Events & telemetry
[events]—get_events,cancel_task - Raw protocol
[raw]—send_packet,subscribe_packet,list_packet_subscriptions(advanced/unsafe; off unlessMCP_ENABLE_RAW=true)
Long-running actions (goto, dig, collect_block, pvp_attack, fish, smelt_item, craft_item) are mutually exclusive and cancellable — start a new movement/combat action to supersede the prior one, or call stop_pathfinding / pvp_stop / cancel_collect / cancel_fish / cancel_task.
Prompts
The server exposes guided, parameterized workflows as MCP prompts — clients surface them as slash-commands / templates. They teach an agent how to chain the right tools for a goal:
getting_started— orientation: connect → observe → act → recover.gather_wood{ count?, logType? }— find trees and collect logs.mine_to_diamonds{ targetY? }— descend safely and branch-mine.build_shelter{ material? }— enclose a safe space before nightfall.find_and_smelt{ input, fuel? }— mine/gather an input and smelt it.follow_and_defend{ player }— follow a player and fight off hostiles.
Block/item arguments offer name autocompletion drawn from the connected world.
Vision — let the agent see
Two complementary tools return PNG images as MCP image content, so a vision-capable model (and a human) can look at the world instead of reconstructing it from JSON.
get_screenshot — a real game render
Captures an actual textured Minecraft render of what the bot sees — first-person from its eyes (default) or a third-person orbit — exactly like an in-game screenshot. Under the hood, prismarine-viewer renders the real world (client-side WebGL) and a headless browser screenshots it. Args: width, height, firstPerson, waitMs, viewDistance.
Setup (one-time). The renderer deps ship as optional packages (installed by default with npm install). All you also need is a browser:
- Already have Google Chrome or Microsoft Edge? Nothing to do — it's used automatically.
- Otherwise run
npx playwright install chromiumonce. - Headless servers: install Chrome/Chromium, or set
MCP_SCREENSHOT_EXECUTABLE_PATH/MCP_SCREENSHOT_BROWSER_CHANNEL.
If the deps/browser aren't available, get_screenshot returns a clear UNSUPPORTED error with these steps — the rest of the server is unaffected. The renderer packages are pure-JS (no native build), but if you want the leanest possible install and don't need screenshots, use npm install --omit=optional.
render_map — a dependency-free schematic
A lightweight colored top-down map (or mode:"slice" cross-section) drawn from block data with a built-in PNG encoder (no extra deps at all). Good as a minimap/overview or when the screenshot extras aren't installed. North (−Z) is up; bot = white dot with a facing tick; players cyan, hostiles red, passives yellow, items grey; includes a block legend.
Safety & guardrails
Sensible defaults that matter once an agent drives the bot autonomously (especially with a default account):
- Command policy.
run_commandblocks server-administration verbs by default (op,deop,ban,kick,stop,whitelist, and theexecute/function/schedulewrappers, …). Ordinary gameplay commands (/tp,/time,/give, …) are allowed. Override withMCP_COMMAND_DENY(replaces the default; empty = allow all) or lock down withMCP_COMMAND_ALLOW(strict allow-list). This is best-effort defense-in-depth, not a hard boundary — it gates on the first command verb, and a bot with operator permissions could still find a way around it. For untrusted/autonomous deployments, preferMCP_COMMAND_ALLOW,MCP_READ_ONLY, and not granting the bot's account operator rights. Note: incoming player chat is delivered to your agent as events — treat it as untrusted input. - Host allow-list.
MCP_ALLOWED_HOSTSrestricts which serversconnect_bot/reconnect_botmay join, so an agent can't repoint the bot (and its cached token) at an arbitrary address. - Read-only mode.
MCP_READ_ONLY=trueregisters only observation tools (plus connection management) — look-but-don't-touch. - Rate limiting.
MCP_CHAT_MIN_INTERVAL_MSspaces outbound chat/commands to avoid spam-kicks. - No secret leakage. Passwords / access tokens are never stored on disk and are redacted from connection-error messages.
Resources
Subscribe-capable JSON resources for clients that support resource subscriptions:
bot://state— live self snapshot (position, vitals, gamemode, time, weather, held item, control states)bot://inventory— items, armor, off-hand, held slotworld://entities— up to 50 nearest tracked entitiesworld://players— server rosterbot://events— tail of recent eventsbot://waypoints— saved named waypoints
Plus parameterized resource templates for on-demand lookups: block://{x}/{y}/{z} and entity://{id}.
Events
Game events are delivered two ways:
- Pull:
get_events({ since, types, limit })drains a ring buffer; pass the returnednextSinceto read only new events.dropped: truesignals the buffer overflowed since yoursince. - Push: subscribed resources emit throttled
notifications/resources/updated; notable lines (chat, death, kick, error, msa_code) are forwarded viasendLoggingMessage.
High-frequency observations (movement, per-tick updates, block/entity updates, time) are intentionally not buffered — read them on demand via get_state and the read-only tools.
Development (from source)
Architecture and the full design rationale: docs/superpowers/specs/2026-06-28-mineflayer-mcp-server-design.md.
See CONTRIBUTING.md for how to add a tool/group and run a local test server.
Publishing (maintainers)
Pushing a v* tag publishes to npm, GitHub Container Registry (Docker), the MCP Registry, and updates Smithery — all via .github/workflows/ci.yml. npm version keeps package.json, src/config.ts, and server.json in sync.
Full one-time setup and the step-by-step release checklist are in RELEASE.md. The published npm package ships only dist/, README.md, LICENSE, and NOTICE (see the files field).
Troubleshooting
Connection failures now return a specific error code and suggestions (not an opaque INTERNAL). Common cases:
First-run sign-in for Microsoft auth is interactive once — run npx awesome-mineflayer-mcp setup to do it and cache the token.
Docker
A Dockerfile is included for headless/autonomous deployments (configure a default account via MCP_DEFAULT_*):
Mount a volume at /root/.awesome-mineflayer-mcp to persist the config and Microsoft token cache. (The server speaks MCP over stdio, so a container is most useful for autonomous default-account runs rather than for a client to spawn.)
Limitations
- One bot per server process (single-session by design).
- Evaluations require a seeded world. A live Minecraft world is not deterministic, so the evaluation set in
eval/targets a documented seeded fixture (seeeval/fixture.md); it cannot be verified against an arbitrary live server. cancel_fishis best-effort (Mineflayer exposes no first-class fishing abort).- Microsoft auth's first run needs an interactive device code (surfaced as an
msa_codeevent); useprofilesFolderto cache it.
License
MIT
來源:README.md,提交 89a407c
工具
0版本歷史
1- v1.3.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Awesome 整合
Awesome Tools
tools.awesome官方發布者
搜尋精選的 SaaS 與 AI 工具目錄,查看分類與標籤,提交自己的產品,並驗證回鏈徽章。

Awesome JEV
由 GitHub 帳號 daftAI2026 發布
搜尋 Jev / System One 專案並檢視其記錄的納入證據。AI 翻譯

Awesome Report
由 GitHub 帳號 ks0430 發布
讓助理把調查結果發布成包含表格、圖表與圖解的簡潔網頁,並提供一個可分享的連結。

Awesome Agent Skills
由 GitHub 帳號 shadowrootdev 發布
一個本機 MCP 伺服器,為助理提供 100 多個精選 AI 代理技能目錄,可列出、檢視、呼叫與重新整理這些技能。

Awesome Copilot MCP Server
由 GitHub 帳號 microsoft 發布
一個本機 MCP 伺服器,從 Awesome Copilot 儲存庫取得 GitHub Copilot 自訂檔案,供助理使用。