Minecraft
MCP server by MairwunNx Verified · mairwunnx.com
Lets an AI assistant see and run a Minecraft server through the WorldAPI mod, covering players, worlds, configs and logs. Made for server owners and players who want to ask about and change their game in plain language.
Install Minecraft
Built from the published package, never by AI.
claude mcp add minecraft -- npx -y @mairwunnx/minecraft-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"minecraft": {
"args": [
"-y",
"@mairwunnx/minecraft-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"minecraft": {
"args": [
"-y",
"@mairwunnx/minecraft-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"minecraft": {
"args": [
"-y",
"@mairwunnx/minecraft-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add minecraft -- npx -y @mairwunnx/minecraft-mcp{
"mcpServers": {
"minecraft": {
"args": [
"-y",
"@mairwunnx/minecraft-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add minecraft npx -y @mairwunnx/minecraft-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the minecraft block.
About
minecraft-mcp is an MCP server that lets an AI assistant see and run a Minecraft server. It runs next to your AI client, such as Claude Desktop, Claude Code, Cursor, or VS Code, and talks to the WorldAPI mod on a Paper, Fabric, or NeoForge server, or in a singleplayer world. It offers 51 tools covering the server, worlds, blocks, chests, entities, players, commands, leaderboards, recipes, configs, logs, and Java scripts.
The token you give it decides what the agent may do. A viewer token shows 19 read-only tools, and read-only mode hides every write. The project is aimed at Minecraft server owners and players who want to ask questions about their world and make changes in plain language. The source states that it has no telemetry, paid features, or ads.
Written from the project's README and checked against it.
Tools it gives your assistant
Players and inventoriesReports who is online and where, with item enchantments, durability, and potion effects.Worlds, blocks, and entitiesReads and changes blocks, chests, entities, and worlds, with undo for placed blocks.Configs and logsReads the console and config files, and changes values while keeping comments when the token allows.Commands and timeRuns server commands, such as giving items or setting the time to morning.Live eventsWatches for events such as a player joining and reports them back.Discord, Telegram, and webhooksConnects game events to Discord, Telegram, Slack, Teams, or Google Chat through WorldAPI webhooks.
What you need
- WorldAPI 4.2.0 or newer on a Paper, Fabric, or NeoForge server
- A WorldAPI token, or the WorldAPI mod in your game for singleplayer
- An MCP-capable AI client such as Claude Desktop, Claude Code, Cursor, or VS Code
| Setting | Needed | What it is |
|---|---|---|
WORLDAPI_Environment variable | Optional | 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_Environment variable, secret | Optional | 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_Environment variable | Optional | 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_Environment variable | Optional | Where singleplayer worlds announce themselves, ~/.worldapi/local by default. |
WORLDAPI_Environment variable | Optional | 1 hides every tool that changes the server |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Who's online right now and where are they?
- Why is the server lagging?
- Tell me when Steve joins the server.
Good to know
- The agent talks only to the WorldAPI instance you point it at.
- A viewer token shows 19 read-only tools.
- Read-only mode hides every write tool.
- It requires WorldAPI 4.2.0 or newer on the server.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Minecraft
All alternatives →Medplum is a developer platform for building healthcare apps, with a FHIR-based API and a repository for healthcare data. The source is the README for its main code repository, not a description of an MCP server.
Describes Puter, an open-source, self-hostable internet computer with office, AI builder and developer tools. The source does not document an MCP server or list its tools, so this listing could not be verified from the text.
Microsoft Fabric MCP Server is an MCP server for interacting with Microsoft Fabric. Its source, README, changelog and troubleshooting guide are in the microsoft/mcp repository. The source does not list its individual tools.
Template MCP server example.
Business Contact Finder is listed as an MCP server from modelcontextprotocol. The source provided is the MCP Registry README, which does not describe this server's tools, setup or behavior.
The source provided is the README for the MCP Registry, not code for a contractor licence tool. It does not describe a Contractor Licence Changes server, so this listing cannot be confirmed from the text.
Compare with Medplum, mcp-server or Microsoft Fabric MCP Server
Minecraft: common questions
Does minecraft-mcp run its own AI model?
No. The source says it runs inside your AI client, talks only to the WorldAPI you point it at, and runs no model itself.
Can it be used in singleplayer?
Yes. With the WorldAPI mod in your game, minecraft-mcp finds the open world by itself and follows you from world to world.
What controls what the AI can change?
The token you give it sets the allowed actions. A viewer token only reads, and read-only mode hides every write.
How do I install Minecraft?
In Claude Code run claude mcp add minecraft -- npx -y @mairwunnx/minecraft-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Minecraft the official server?
Minecraft is published by mairwunnx.com from its verified domain in the official MCP Registry.
Is Minecraft free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Minecraft safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Minecraft?
Similar MCP servers: Medplum, mcp-server, Microsoft Fabric MCP Server, Template MCP Server.
Does Minecraft work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
