connect-claude
Skill2 starsChanged 4 months agoMITView on GitHub
Step 4 of 4 of the Minecraft Bedrock MCP setup. Register the running minecraft-bedrock-mcp-server with Claude (Claude Code or Claude Desktop) so the mc_* tools become available, then verify the connection with a live test call. Use when the user has the MCP server running and needs to connect Claude to their Minecraft world.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- blueprinterSkill
- building-architectSkill
- city-plannerSkill
- engineerSkill
- inspectorSkill
- landscape-architectSkill
- monument-builderSkill
- natural-landmarksSkill
- philosopherSkill
- plannerSkill
- player-houseSkill
- researcherSkill
- setup-bedrock-serverSkill
- setup-mcp-serverSkill
- setup-minecraft-worldSkill
- surveyorSkill
- terraformingSkill
- transit-architectSkill
- village-plannerSkill
- workerSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Before starting, get two things from the user:
- Distinctive: line 30
Ask the user which Claude they're connecting: Claude Code (CLI / IDE extension) or Claude Desktop.
- Very specific: line 48
Do not commit the token: If the user wants project scope, write the .mcp.json with the token pulled from an environment variable instead of …
- Very specific: line 68
After adding it, the user restarts Claude Code (or reloads the window in the IDE extension).
- Distinctive: line 115
Make sure at least one player is in the world (many tools act relative to players or the world origin).
- Very specific: line 117
Call mc_world_get_info (or mc_server_get_status).
- Distinctive: line 123
If a call fails:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Connect Claude to the Minecraft world (Step 4 of 4)
This is the final phase of the Minecraft Bedrock MCP setup. It assumes
Phase 3 (setup-mcp-server) is done: the MCP server is running and its bridge
handshake with the world succeeded.
Before starting, get two things from the user:
- The
/mcpURL —http://<host>:<port>/mcp, e.g.http://localhost:8765/mcp. Uselocalhostonly if Claude runs on the same machine as the MCP server; otherwise use the host's LAN IP or hostname. If the MCP server uses TLS, the scheme ishttps. - The
BRIDGE_CLIENT_TOKEN— the first secret from Phase 3 (the client token, not the agent token).
Name the server
minecraft-bedrock. The builder agent and skills in this plugin expect MCP tools under that name (mcp__minecraft-bedrock__mc_*). Use exactlyminecraft-bedrockas the server name below.
Ask the user which Claude they're connecting: Claude Code (CLI / IDE extension) or Claude Desktop. Follow the matching section.
Connecting Claude Code
The MCP server speaks the Streamable HTTP transport, which Claude Code
supports natively. The simplest path is the claude mcp add command:
claude mcp add --transport http minecraft-bedrock "http://<host>:8765/mcp" \
--header "Authorization: Bearer <BRIDGE_CLIENT_TOKEN>"Pick a scope with -s: local (default, this project only), project
(shared via a committed .mcp.json), or user (all projects on this
machine). For a personal setup, user is usually what the user wants:
-s user.
Do not commit the token. If the user wants project scope, write the
.mcp.json with the token pulled from an environment variable instead of
inlining it. This plugin ships .mcp.json.example in its repo root showing
that pattern:
{
"mcpServers": {
"minecraft-bedrock": {
"type": "http",
"url": "${MINECRAFT_MCP_URL:-http://localhost:8765/mcp}",
"headers": { "Authorization": "Bearer ${MINECRAFT_MCP_TOKEN}" }
}
}
}With that, the user sets MINECRAFT_MCP_URL and MINECRAFT_MCP_TOKEN in their
environment and the committed file stays secret-free.
After adding it, the user restarts Claude Code (or reloads the window in the
IDE extension). Confirm the server shows up with claude mcp list or
/mcp — it should report minecraft-bedrock as connected.
Connecting Claude Desktop
Two options:
A — Native custom connector (preferred, if the user's Claude Desktop has
it). In Settings → Connectors, add a custom connector with the URL
http://<host>:8765/mcp and a header Authorization: Bearer <BRIDGE_CLIENT_TOKEN>.
B — Via the mcp-remote adapter. Edit Claude Desktop's config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add under mcpServers:
{
"mcpServers": {
"minecraft-bedrock": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://<host>:8765/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer <BRIDGE_CLIENT_TOKEN>"
}
}
}
}The token goes through the AUTH_HEADER env var so its space isn't mangled by
argument parsing. Then fully restart Claude Desktop — the mc_* tools
appear under the tools (🔌) menu once it reconnects.
Verify the connection
A registered server isn't a working one — confirm with a live call:
- Make sure at least one player is in the world (many tools act relative to players or the world origin).
- Call
mc_world_get_info(ormc_server_get_status). A successful response — time, weather, dimensions — means the full chain is up: Claude → MCP server → bridge → behavior pack → world. - As a visible smoke test, call
mc_world_send_messagewith a short greeting and confirm the user sees it in the in-game chat.
If a call fails:
- Auth / 401 — wrong token, or the agent token was used instead of the client token. The client token is the first secret from Phase 3.
- Connection refused / timeout — MCP server not running, wrong host:port, or a firewall between Claude and the host.
- Tools connect but calls hang or error about the bridge — the world side
is down: re-check the Phase 3 handshake (BDS running, behavior pack active,
secrets.jsontoken).
Wrap up
Once mc_world_get_info returns cleanly, the setup is complete:
minecraft-bedrockMCP server registered with Claude.mc_*tools visible.- A live test call succeeded against the world.
Tell the user they're done — all four phases are complete. Suggest next steps:
- Try a simple prompt: "What's the time and weather? Set it to clear midday."
- Try building: "Build a small stone-brick house near the nearest player."
Claude works through the
mc_*tools to plan and place blocks in the world.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

