Repository navigation
Claude Code
Pavel Erokhin edited this page Oct 19, 2026
·
1 revision
Claude Code starts minecraft-mcp with npx, so you need Node.js 22 or newer.
-
Add the server. Replace the URL, the token, and the player name with yours:
claude mcp add minecraft \ -e WORLDAPI_URL=http://localhost:8110/api/v1 \ -e WORLDAPI_TOKEN=your-token \ -e WORLDAPI_PLAYER=Steve \ -- npx -y @mairwunnx/minecraft-mcp
Add
--scope userto have it in every project. Leave outWORLDAPI_TOKENto read only what visitors may. -
Start Claude Code and run
/mcp. You should seeminecraftconnected, with its tools. -
Ask “who's online?”.
claude mcp add moonlands -e WORLDAPI_URL=https://minecraft.mairwunnx.com/worldapi/api/v1 -- npx -y @mairwunnx/minecraft-mcpThen ask “who played the most on Moonlands this week?”.
When minecraft-mcp runs on another machine (see Other clients):
claude mcp add --transport http minecraft http://your-host:3333/mcp \
--header "Authorization: Bearer a-long-random-secret"Next: Tokens and permissions.
Players and server owners
- Installation
- Claude Desktop
- Claude Code
- Cursor
- Other clients
- Configuration
- Tokens and permissions
- Tools
- Example prompts
- Security
- Troubleshooting
Developers