Craftos MCP logo

Craftos MCP

Runs and tests CC:Tweaked Lua programs in an emulator with terminal, monitor, world, turtle, modem, and snapshot support.

Install Craftos MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "craftos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "craftos-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y craftos-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

craftos-mcp provides an MCP interface to a CC:Tweaked emulator for running Lua programs and executing `*.test.lua` files. Its `craftos_run` tool exposes terminal and monitor text, PNG output, and golden snapshots, while `craftos_test` uses the `ccunit` harness. The emulator models computers, monitors, turtles, modems, rednet, block worlds, and supported modded peripherals without launching Minecraft. Use it when an AI coding agent or automated workflow needs to exercise ComputerCraft programs, inspect output, interact with a simulated world, or run repeatable tests.

Use cases

  • Run CC:Tweaked Lua programs without launching Minecraft
  • Test monitor interfaces with simulated button taps
  • Validate turtle programs in a configured block world
  • Run ccunit suites from an AI coding workflow
  • Inspect rednet communication between virtual computers

Key features

  • CC:Tweaked computer emulation
  • Program execution with terminal and monitor output
  • ccunit test discovery and execution
  • Turtles, rednet, modems, and simulated worlds
  • Modded peripheral and block support
  • World snapshots and time controls

Tools2

What Craftos MCP lets your agent do. Expand a tool for its parameters.

Self-reported~39 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · craftos-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads2.3kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed2Callable tools this server registers over MCP.

How Craftos MCP works

What craftos-mcp does

craftos-mcp runs CC:Tweaked programs inside an emulator rather than in a Minecraft instance. It can create computers with terminals, monitors, turtles, wireless modems, and files, then execute Lua code against a simulated block world. The environment also supports rednet communication between computers and selected peripherals and blocks from mods including Create, Mekanism, and Advanced Peripherals.

The MCP interface exposes two main operations. craftos_run starts a program in a fresh computer and returns terminal and monitor text, PNG output, and golden snapshots. craftos_test discovers and runs *.test.lua files with the ccunit test harness. An AI agent can use these operations to run code, inspect displays, trigger interactions, and repeat tests while developing a program.

How it works

The emulator uses the CC:Tweaked ROM built from the corresponding official CC:Tweaked files. Programs run against a virtual computer and its configured world, so testing does not require Minecraft. The command-line interface can print a program's screen output or run a complete test suite; the desktop and browser-oriented app views provide monitors, world state, computer tabs, network activity, and a 3D block view.

World configuration can describe monitors, blocks, modded devices, players, fuel, and inventory contents. Multiple computers can communicate over rednet. The simulated clock can be paused, advanced by ticks or larger time intervals, or accelerated. Named snapshots save and restore the complete world, and worlds can be exported as .craftos-world files.

Setup and configuration

The npm commands require Node.js 22 or newer and support Windows x64, Linux x64, and macOS 11 or later on Intel and Apple silicon. Run npx craftos-mcp from the folder containing the Lua files; that folder acts as the computer's disk. Installing the package globally also allows the craftos-mcp command to be used without npx.

Useful entry points include:

  • npx craftos-mcp run program.lua to execute one program
  • npx craftos-mcp test to run all matching tests below the current folder
  • npx craftos-mcp window to open a computer window
  • npx craftos-mcp app to use the broader computer and world interface
  • npx craftos-mcp setup --verbose to show setup steps

The first run downloads the required CC:Tweaked files and builds the ROM for the selected Minecraft version. Project choices are stored in craftos.json, which is also read by the command line and an AI agent. The project can select a Minecraft version and enable the mods present in its modpack.

Tools and capabilities

  • Run programs in fresh virtual computers.
  • Execute *.test.lua files through ccunit.
  • Read terminal and monitor text and produce PNG or golden-snapshot output.
  • Configure monitors, including their position and dimensions.
  • Simulate turtle movement, digging, building, fuel, blocks, and inventories.
  • Connect multiple computers with wireless modems and rednet.
  • Interact with players, buttons, modded peripherals, and world state.
  • Pause, accelerate, or advance simulated time.
  • Save, restore, and export complete worlds.

Limitations and notes

The emulator is intended for CC:Tweaked development and testing, not as a Minecraft server. Compatibility depends on the selected Minecraft version, enabled mods, and the behavior implemented by the emulator. The project reports high coverage of CC:Tweaked's own tests and compatibility with a range of community libraries, programs, and operating systems.

The initial setup downloads CC:Tweaked files from the official source and may take about a minute. macOS may require manually approving the unsigned desktop application on first launch. The npm distribution targets Windows x64, Linux x64, and macOS 11 or newer.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Craftos MCP

craftos-mcp is an MCP server that connects AI agents to a CC:Tweaked emulator. Its main tools, `craftos_run` and `craftos_test`, run Lua programs and execute `*.test.lua` files with ccunit. Agents can inspect terminal and monitor output while testing computers, turtles, worlds, modems, and supported modded peripherals.

Install or run it with Node.js 22 or newer using `npx craftos-mcp` from a folder containing your Lua files. You can also run `npm install -g craftos-mcp` once and invoke the command directly. The first setup downloads the required CC:Tweaked files and builds the selected ROM.

Run `npx craftos-mcp test` in the folder containing the tests. The command finds `*.test.lua` files below that folder and executes them with the `ccunit` harness, returning a failing exit status when a test fails.

Yes. The emulator supports turtles in a block world and includes supported peripherals and blocks from mods such as Create, Mekanism, and Advanced Peripherals. World configuration can provide ground, fuel, blocks, inventories, players, and mod-specific devices.

Yes. craftos-mcp is designed for AI agents and can be driven over MCP by Claude Code. An agent can run programs, read terminal and monitor results, interact with the simulated world, write and run tests, and iterate on failures.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCraftos MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/craftos-mcp?style=directory)](https://allmcps.com/mcp/craftos-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/craftos-mcp"><img src="https://allmcps.com/api/badge/craftos-mcp?style=directory" alt="Craftos MCP on AllMCPs" /></a>