promotional bannermobile promotional banner

YAM - MCP - Assistant Bridge

Client-side MCP server that lets AI assistants like Claude read your game: player, inventory, registries, tags, recipes, world and events. Optionally act in game

YAMC MCP

A client-side only mod for Fabric and NeoForge that runs a Model Context Protocol server inside Minecraft, so AI assistants such as Claude Code can read live game state: player, inventory, world, registries, tags, recipes (modded too) and more. They can also act in game. Servers do not need the mod.

Supported versions

One jar per Minecraft version and loader, named yamcmcp-<loader>-<mod version>+<minecraft>.jar:

Jar built for Fabric runs on NeoForge runs on Java
1.21.1 1.21 – 1.21.1 1.21.1 21
1.21.4 1.21.4 1.21.4 21
1.21.5 1.21.5 1.21.5 21
1.21.8 1.21.7 – 1.21.8 1.21.8 21
1.21.10 1.21.9 – 1.21.10 1.21.10 21
1.21.11 1.21.11 1.21.11 21
26.1.2 26.1.2 26.1.2 25
26.2 26.2.x 26.2.x 25
26.3 26.3.x 26.3.x 25

The Fabric jars need Fabric API.

Install & connect

  1. Download the jar for your Minecraft version and loader from Modrinth, CurseForge or the GitHub releases (or build it, see Development) and drop it into your mods/ folder.
  2. Launch the game. The server listens on http://127.0.0.1:25599/mcp.
  3. In game, run /yamc connect. It copies the setup command to your clipboard:
   claude mcp add --transport http minecraft http://127.0.0.1:25599/mcp --header "Authorization: Bearer <token>"

The same command is written to config/yamcmcp-connect.txt, and the token is in config/yamcmcp-token.txt.

  1. /yamc status shows the request count and the last connected client.

Push notifications (Claude Code channels)

With the plain HTTP connection above, Claude has to poll events_since for events. To have events like death, damage, dimension changes and level-ups pushed into the conversation as they happen, connect through the bundled stdio bridge, which Claude Code loads as a channel:

claude mcp add minecraft -- java -cp "/path/to/mods/yamcmcp-<version>.jar" dev.yamc.mcp.bridge.StdioBridge \
    --url http://127.0.0.1:25599/mcp --token-file "/path/to/.minecraft/config/yamcmcp-token.txt"
claude --dangerously-load-development-channels server:minecraft

/yamc connect channel copies this command with the real paths filled in. It's also written to config/yamcmcp-connect.txt.

  • The bridge uses only the JDK, so the Java that runs Minecraft works. Start the game before Claude Code; if the game restarts, the bridge reconnects the event stream automatically.
  • Events arrive as <channel source="minecraft" event="death" seq="42">Player DIED at ...</channel>.
  • Pushed by default: death, damage (at most once per 5 s), dimension_change, level_up, gamemode_change, join_world, leave_world. Claude can change this at runtime with the push_settings tool. To change the defaults, set push.eventTypes in the config.
  • Chat is not pushed by default. Other players' chat would land in Claude's context, and with action tools enabled that is a prompt-injection risk. If you opt in, pushed chat is labelled as untrusted.
  • Channels are a Claude Code research preview. They need a claude.ai or Console login, and Team/Enterprise organizations must enable them first.

Singleplayer tip: press F3+P to turn off pause-on-focus-loss. Otherwise the game pauses while you are in your terminal, and movement or mining tools can't run.

What data is available where

Data Remote server Singleplayer / LAN host
Static registries (blocks, items, entities, fluids, effects, …; modded registries too) ✅ ✅
Synced data-driven registries (biome, damage_type, enchantment, dimension_type, trims, …) and their tags ✅ ✅
Recipes, modded included ✅ up to 1.21.1 (ingredient tags flattened to item lists); ❌ from 1.21.2, servers no longer send recipes to clients ✅ from the integrated server, tags intact
Structures, structure sets, worldgen features, noise, loot tables, locate ❌ server-only data ✅

Every response reports a source (static, synced, integrated_server, client).

Tools (71)

Player: player_status, player_inventory World: world_info, look_target, block_at, blocks_at, scan_area, find_blocks, nearby_entities, entity_info, players_online, open_container, hud Registries & tags: registry_list, registry_entries, registry_entry, tags_list, tag_members, tags_of Recipes: recipe_types, recipes_search, recipe_get, craft_plan, craftable_now Info: mods_list, item_tooltip, advancements, statistics, chat_history, events_since, wait_for_event, push_settings, export_data Singleplayer server data: loot_table, structure_info, locate_structure, locate_biome Screenshot: screenshot shows the AI what the player sees. With a camera position (x/y/z, or dx/dy/dz from the player's eyes) or direction (look_at_x/y/z, look_at_entity, yaw/pitch) it becomes a freecam: a view from above, around a corner or of the player, without moving the player or sending anything to the server. Up to 32 blocks from the player, loaded chunks only, and singleplayer/LAN host only unless enabled for multiplayer (see Config). Fishing: fishing_status, fish (casts, waits for a bite and reels in; bites and catches are also fish_bite / fish_caught events) Mod development (for a mod you are building, running in the same client, e.g. runClient):

  • logs: the game log (every mod, INFO and above) with stack traces, filtered by level, logger and text. ERRORs are also log_error events.
  • exceptions: every distinct exception since startup, grouped by where it was thrown, with counts; plus crash reports.
  • reload: reload resource packs (F3+T) and/or data packs (/reload), wait, and return what was logged as WARN/ERROR meanwhile.
  • asset_audit: a namespace's blocks, items and entities checked for missing translations, blockstates, item models, models, textures and (singleplayer) loot tables.
  • block_inspect: a block on the client and on the integrated server side by side, with the block entity NBT keys that differ (data that is not synced), scheduled ticks and redstone power.
  • entity_inspect: the same for an entity, plus its AI on the server: goals, target, path, brain (activities, behaviors, memories) and attributes with modifiers.
  • capabilities_at: the item, fluid and energy storage a block exposes (NeoForge capabilities, Fabric Transfer API and Team Reborn Energy), per slot and tank, and which kinds each side exposes.
  • gametest_run: run game tests (/test) and wait for per-test pass/fail with errors; mode=list lists them.
  • tick_control: freeze, step N ticks, sprint, or change the tick rate, waiting until done.
  • packet_log: count and list network packets while recording; mod channels show as custom_payload <id>.
  • mod_config: a mod's NeoForge config values (with defaults, ranges, comments) and setting one; on Fabric, its config files (read-only). Values and files that look like credentials are withheld.
  • keybinds / key_press: every key binding (mods' too) and pressing one by name for N ticks, bound or not.
  • screen_widgets / widget_click: the open screen's widget tree (class, bounds, label, state, text fields) and clicking a widget or filling a text field by index.
  • perf: FPS, memory, server tick time (average and worst), loaded chunks, entities and ticking block entities by type and mod.
  • mixins: loaded mixin configs, and the mixins applied to a given class (to find out why one did not apply).
  • screenshot save_baseline / compare_baseline: render regression checks with a differing-pixel count and a diff image.

Actions: send_chat, run_command, look_at, select_slot, interact, mine_block, move, container_click, open_inventory, close_screen, highlight, clear_highlights, notify_player

List tools share the same filters (namespace, query, which matches the id or the display name, and regex) and paging (page_size, cursor → next_cursor).

Config

NeoForge: config/yamcmcp-client.toml. Fabric: config/yamcmcp.properties (same keys without the section prefix, e.g. port, enableActions, push.eventTypes; read at startup, so restart the game after editing).

  • server.port (25599), server.bindAddress (127.0.0.1), server.requireToken (true), server.clientThreadTimeoutMs
  • tools.enableActions (true): set false for a read-only mod. Action tools are then hidden.
  • tools.enableIntegratedServerTools (true), tools.enableLocate (true), tools.eventBufferSize, tools.logBufferSize (5000 log lines)
  • tools.freecamMaxDistance (32): how far the screenshot camera may go from the player; 0 turns freecam off.
  • tools.freecamOnMultiplayer (false): allow freecam on multiplayer servers. Many servers count freecam as cheating, since it can see through walls.
  • push.enabled (true), push.eventTypes (empty = defaults listed above)

Security

  • Binds to loopback only.
  • Requires a bearer token.
  • Rejects browser requests from non-localhost Origins (DNS-rebinding protection).
  • With actions enabled, the AI can chat and run commands as you. On multiplayer servers that is visible to others and may break server rules.

To report a vulnerability, see SECURITY.md.

Source & development

Source, issues and build instructions: GitHub. One source tree builds every Minecraft version and loader; see the Development section of the README.

License

MIT, see LICENSE.

YAM - MCP - Assistant Bridge Team

profile avatar
  • 1
    Followers
  • 6
    Projects
  • 1.7K
    Downloads

More from robbyfoxView all

  • AE2 Pattern Planner project image

    AE2 Pattern Planner

    Plan an item's whole recipe tree and encode every AE2 pattern it needs. Client-side; servers don't need it.

    • 65
    • November 28, 2026
  • Dynamic Odyssey project image

    Dynamic Odyssey

    Embark on a thrilling journey through a world with technological wonders, exploration opportunities, and bountiful farming adventures.

    • 3.0K
    • August 12, 2026
  • ME Trading Terminal project image

    ME Trading Terminal

    Turn villager trades into AE2 Patterns, Continuous or stock requests.

    • 414
    • August 2, 2026
  • FUNC project image

    FUNC

    The ULTIMATE Minecraft experience that will BLOW YOUR MIND! This expertly curated NeoForge modpack combines the BEST automation, tech, exploration, and quality-of-life mods into one EXPLOSIVE package!!

    • 743
    • October 4, 2025
  • AE2 Pattern Planner project image

    AE2 Pattern Planner

    Plan an item's whole recipe tree and encode every AE2 pattern it needs. Client-side; servers don't need it.

    • 65
    • November 28, 2026
  • Dynamic Odyssey project image

    Dynamic Odyssey

    Embark on a thrilling journey through a world with technological wonders, exploration opportunities, and bountiful farming adventures.

    • 3.0K
    • August 12, 2026
  • ME Trading Terminal project image

    ME Trading Terminal

    Turn villager trades into AE2 Patterns, Continuous or stock requests.

    • 414
    • August 2, 2026
  • FUNC project image

    FUNC

    The ULTIMATE Minecraft experience that will BLOW YOUR MIND! This expertly curated NeoForge modpack combines the BEST automation, tech, exploration, and quality-of-life mods into one EXPLOSIVE package!!

    • 743
    • October 4, 2025