MCP Server Studio
Ask an AI about your Minecraft server and let it run it: players, worlds, configs, logs.
Registry name: com.mairwunnx/minecraft-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"minecraft-mcp": {
"command": "npx",
"args": [
"-y",
"@mairwunnx/[email protected]"
],
"env": {
"WORLDAPI_URL": "<WORLDAPI_URL>",
"WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>",
"WORLDAPI_PLAYER": "<WORLDAPI_PLAYER>",
"WORLDAPI_LOCAL_DIR": "<WORLDAPI_LOCAL_DIR>",
"WORLDAPI_READ_ONLY": "<WORLDAPI_READ_ONLY>"
}
}
}
}Run in your terminal:
claude mcp add minecraft-mcp -e WORLDAPI_URL='<WORLDAPI_URL>' -e WORLDAPI_TOKEN='<WORLDAPI_TOKEN>' -e WORLDAPI_PLAYER='<WORLDAPI_PLAYER>' -e WORLDAPI_LOCAL_DIR='<WORLDAPI_LOCAL_DIR>' -e WORLDAPI_READ_ONLY='<WORLDAPI_READ_ONLY>' -- npx -y @mairwunnx/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"minecraft-mcp": {
"command": "npx",
"args": [
"-y",
"@mairwunnx/[email protected]"
],
"env": {
"WORLDAPI_URL": "<WORLDAPI_URL>",
"WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>",
"WORLDAPI_PLAYER": "<WORLDAPI_PLAYER>",
"WORLDAPI_LOCAL_DIR": "<WORLDAPI_LOCAL_DIR>",
"WORLDAPI_READ_ONLY": "<WORLDAPI_READ_ONLY>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"minecraft-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mairwunnx/[email protected]"
],
"env": {
"WORLDAPI_URL": "<WORLDAPI_URL>",
"WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>",
"WORLDAPI_PLAYER": "<WORLDAPI_PLAYER>",
"WORLDAPI_LOCAL_DIR": "<WORLDAPI_LOCAL_DIR>",
"WORLDAPI_READ_ONLY": "<WORLDAPI_READ_ONLY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"minecraft-mcp": {
"command": "npx",
"args": [
"-y",
"@mairwunnx/[email protected]"
],
"env": {
"WORLDAPI_URL": "<WORLDAPI_URL>",
"WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>",
"WORLDAPI_PLAYER": "<WORLDAPI_PLAYER>",
"WORLDAPI_LOCAL_DIR": "<WORLDAPI_LOCAL_DIR>",
"WORLDAPI_READ_ONLY": "<WORLDAPI_READ_ONLY>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
WORLDAPI_URL | No | WorldAPI base URL including /api/v1, such as http://localhost:8110/api/v1. Leave it out for the singleplayer world open on this machine with the WorldAPI mod. |
WORLDAPI_TOKEN | No | A WorldAPI token. Its permissions decide which tools the agent gets. Leave it empty for what anonymous clients may read. A singleplayer world brings its own token and never gets this one. |
WORLDAPI_PLAYER | No | Your player name. “I”, “me”, and “my” mean this player, and tools that take a player use it when the agent leaves one out. |
WORLDAPI_LOCAL_DIR | No | Where singleplayer worlds announce themselves, ~/.worldapi/local by default. |
WORLDAPI_READ_ONLY | No | 1 hides every tool that changes the server |