Minecraft Server Builder MCP
README.md
# Minecraft Server Builder MCP
[](https://github.com/AdityaMods955/minecraft-server-builder-mcp/actions/workflows/ci.yml)
Create and manage Paper, Purpur, Fabric, and vanilla Minecraft servers from an MCP client or the built-in browser console. The HTTP service binds to `127.0.0.1` by default. Java is needed to run a server; JAR downloads and version/addon searches use the upstream services.
## Web Console
Start the service, then open **http://127.0.0.1:8791/**. The dark dashboard shows process state and recent output, sends console commands, starts/stops the process, edits `server.properties`, lists installed plugin JARs, and creates ZIP backups.

The console uses these local endpoints: `GET /api/status`, `GET /api/logs`, `POST /api/command`, `POST /api/start`, `POST /api/stop`, `GET|POST /api/properties`, `GET /api/plugins`, and `POST /api/backup`. Commands and property updates are JSON request bodies. Keep the listener on loopback unless you add your own authentication and network protections.
## Install and run
Requires Node.js 24+, pnpm 10+, and Java for starting Minecraft.
```sh
pnpm install
pnpm run build
pnpm start
```
Use `node dist/index.js --stdio` for an MCP stdio process. The default HTTP mode serves Streamable HTTP MCP at `http://127.0.0.1:8791/mcp` alongside the web page.
By default server operations use the `minecraft-server/` directory under the current working directory until `mc_create_server` chooses a folder. Set `MC_SERVER_DIR` to choose the initial directory. Set `PORT` to change the HTTP port; the listener stays on loopback.
### MCP client configuration
For clients that support Streamable HTTP:
```json
{
"mcpServers": {
"minecraft-server-builder": {
"url": "http://127.0.0.1:8791/mcp"
}
}
}
```
For a stdio client, use the following shape and replace the path with the checkout location:
```json
{
"mcpServers": {
"minecraft-server-builder": {
"command": "node",
"args": ["/path/to/minecraft-server-builder-mcp/dist/index.js", "--stdio"]
}
}
}
```
## Tool reference
| Tool | Purpose |
| --- | --- |
| `mc_versions` | Query live PaperMC, Purpur, Fabric, or Mojang version catalogs. |
| `mc_create_server` | Write EULA reminder, preset properties, Aikar-flag launch scripts, optionally download the server JAR. |
| `mc_config` | Read or update `server.properties`. |
| `mc_search_addons` | Search plugin listings on Modrinth or Hangar. |
| `mc_install_addon` | Download an addon JAR into the configured `plugins/` folder. |
| `mc_server_start`, `mc_server_stop`, `mc_server_status` | Control and inspect the Java process. |
| `mc_console_cmd`, `mc_console_logs` | Send a command or read captured output. |
| `mc_backup` | Create a ZIP snapshot, skipping `logs/` and `cache/`. |
| `mc_web_console` | Return the browser page and route list. |
`mc_create_server` configures subsequent process and addon tools to use the created directory. The scaffold writes `eula=false`; read the Minecraft EULA and set it to `true` yourself before first launch.
## Checks
GitHub Actions installs dependencies, runs TypeScript typechecking and build, then runs the offline `node:test` suite. The tests cover properties, launch scripts, HTTP routes, and archive contents without Java or network access.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues