
craftos-mcp
Emulated CC:Tweaked computers, monitors, turtles and rednet for running and testing Lua programs without Minecraft.
- tools
- 23
- transport
- STDIO
- env vars
- 3
- last updated
- Nov 20, 2026
What it does
- Runs programs with
craftos_runand tests withcraftos_test(*.test.luaviaccunit), returning terminal and monitor text, PNGs and golden snapshots - Drives interactive sessions with
craftos_session_create,craftos_type,craftos_key, andcraftos_touch_monitor, pluscraftos_ui,craftos_act,craftos_expect, andcraftos_script - Reads and writes workspace files with
craftos_read_file,craftos_write_file, andcraftos_list_files; no paid API key or browser sign-in is listed - Designed for developers writing CC:Tweaked Lua who want deterministic, scriptable tests with a virtual clock, seeded randomness, and simulated worlds
Tools
23 toolsPublic tool metadata for what this MCP can expose to an agent.
craftos_infoEngine, ROM and workspace status
Engine, ROM and workspace status
No parameter schema in public metadata yet.
craftos_write_fileWorkspace files (copied to the root of each computer)
Workspace files (copied to the root of each computer)
No parameter schema in public metadata yet.
craftos_read_fileWorkspace files (copied to the root of each computer)
Workspace files (copied to the root of each computer)
No parameter schema in public metadata yet.
craftos_list_filesWorkspace files (copied to the root of each computer)
Workspace files (copied to the root of each computer)
No parameter schema in public metadata yet.
craftos_runRun a program in a fresh computer: terminal and monitor text, PNGs, golden snapshots
Run a program in a fresh computer: terminal and monitor text, PNGs, golden snapshots
No parameter schema in public metadata yet.
craftos_testRun `*.test.lua` files with the `ccunit` harness
Run `*.test.lua` files with the `ccunit` harness
No parameter schema in public metadata yet.
craftos_session_createInteractive computers
Interactive computers
No parameter schema in public metadata yet.
craftos_typeInteractive computers
Interactive computers
No parameter schema in public metadata yet.
craftos_keyInteractive computers
Interactive computers
No parameter schema in public metadata yet.
craftos_touch_monitorInteractive computers
Interactive computers
No parameter schema in public metadata yet.
craftos_uiRead screens as data, act and wait until the program is done, assert
Read screens as data, act and wait until the program is done, assert
No parameter schema in public metadata yet.
craftos_actRead screens as data, act and wait until the program is done, assert
Read screens as data, act and wait until the program is done, assert
No parameter schema in public metadata yet.
craftos_settleRead screens as data, act and wait until the program is done, assert
Read screens as data, act and wait until the program is done, assert
No parameter schema in public metadata yet.
craftos_expectRead screens as data, act and wait until the program is done, assert
Read screens as data, act and wait until the program is done, assert
No parameter schema in public metadata yet.
craftos_scriptRead screens as data, act and wait until the program is done, assert
Read screens as data, act and wait until the program is done, assert
No parameter schema in public metadata yet.
craftos_network_createSeveral computers with modems
Several computers with modems
No parameter schema in public metadata yet.
craftos_network_updateSeveral computers with modems
Several computers with modems
No parameter schema in public metadata yet.
craftos_sim_commandChange and read the simulated world during a session
Change and read the simulated world during a session
No parameter schema in public metadata yet.
craftos_sim_stateChange and read the simulated world during a session
Change and read the simulated world during a session
No parameter schema in public metadata yet.
craftos_seedDeterminism, the virtual clock, what the program saw, pictures
Determinism, the virtual clock, what the program saw, pictures
No parameter schema in public metadata yet.
craftos_advanceDeterminism, the virtual clock, what the program saw, pictures
Determinism, the virtual clock, what the program saw, pictures
No parameter schema in public metadata yet.
craftos_traceDeterminism, the virtual clock, what the program saw, pictures
Determinism, the virtual clock, what the program saw, pictures
No parameter schema in public metadata yet.
craftos_screenshotDeterminism, the virtual clock, what the program saw, pictures
Determinism, the virtual clock, what the program saw, pictures
No parameter schema in public metadata yet.
Configuration
CRAFTOS_WORKSPACEFolder with your Lua project, copied onto every emulated computer (default: the current folder).
CRAFTOS_ADDONSMods to simulate besides CC:Tweaked: all, none, or ids separated by commas such as create,mekanism (vhcctweaks is opt-in: all,vhcctweaks).
CRAFTOS_VERSIONMinecraft version new computers start on: 1.21.1 (CC:Tweaked 1.121.0, the default), 1.20.1 (CC:Tweaked 1.121.0) or 1.18.2 (CC:Tweaked 1.101.3).
Readme
craftos-mcp
Run and test your ComputerCraft programs without starting Minecraft. craftos-mcp is a CC:Tweaked emulator for people who write CC Lua: computers, monitors you can tap, turtles that dig and build in a block world, rednet between several computers, and blocks from Create, Mekanism, Advanced Peripherals and more. Pause the clock, jump a day ahead, save the whole world and put it back. Write tests for your programs and run them with one command. It works by hand, like CraftOS-PC, and an AI coding agent can drive it too (below).
A turtle builds a small tower in the app's 3D view
The ROM is built from the real CC:Tweaked jar, and the engine passes 1189 of 1190 of CC:Tweaked's own tests at 1.101.3 (and 1361 of 1362 at 1.121.0). 58 of the community's libraries, programs and operating systems, from Basalt and Pine3D to Opus, LevelOS and Phoenix, install and run in it as they do in the game: the list. How exact is it says, area by area, what was measured in game and what was written from source.
Details
- Repository
- github.com/akkiruk/craftos-mcp
- Website
- github.com/Akkiruk/craftos-mcp
- Categories
- Game Development, Testing & QA
- Package
craftos-mcp- Transport
- STDIO
- Registry
- MCP registry, active
Similar to craftos-mcp
More Game Development
Mobai Mcpmobai-app255 starsDrives Android and iOS devices, emulators, and simulators through the MobAI desktop app.
Mobile Mcpmobile-next10.8K starsAutomates iOS and Android simulators, emulators, and real devices through accessibility trees and screenshots.
Isaacsim Mcp Serverwhats200072 starsNatural-language control of NVIDIA Isaac Sim scenes, robots, sensors, and physics from an MCP client.
Pyxel MCPkitao32 starsHeadless Pyxel game runs, asset readers, and frame diffs for AI-driven testing of Python retro games.
Mobile Device MCPsrmorete54 starsRemote control of iOS and Android devices: taps, screenshots, UI trees, and app management.
Windows-MCPcursortouch12K starsOpen-source MCP server giving AI agents control of Windows desktops, apps, files, and the registry.