
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that drives a headless PICO-8 binary in lockstep so an LLM can press buttons, advance frames deterministically, capture pixel-perfect screenshots, and read cart variables.
MCP server for interactively playing PICO-8 carts is cataloged as an MCP server attributed to smartfrog. An MCP server that drives a headless PICO-8 binary in lockstep so an LLM can press buttons, advance frames deterministically, capture pixel-perfect screenshots, and read cart variables. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for interactively playing PICO-8 carts are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes; multiple sessions can run side by side, and session_id defaults to the most recent live one.
Buttons stay held between steps, and btnp() fires only on the first frame of a new press.
README.md · 871fa449ddfd · 采集于 2026-11-13 11:22:00 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
MCP server that lets an LLM play PICO-8 carts interactively: press buttons, advance frames deterministically, look at pixel-perfect screenshots, and read game variables — against the real PICO-8 binary, headless.
LLM ⇄ MCP (stdio) ⇄ pico8-mcp ⇄ pipes ⇄ pico8 -x cart_instrumented.p8
/tmp/pico8-mcp/<session>/ and a small Lua harness is
injected at the end of its __lua__ section (the original file is never
touched). The harness shadows btn/btnp and replaces _update/_update60
with a command loop.serial(0x804, …) stdin channel. On desktop PICO-8
(0.2.7) this read has fread semantics: it blocks until exactly len bytes
arrive. The driver therefore speaks fixed-size 8-byte packets
(<op:1><a:3 hex><b:3 hex>\n), which freezes the engine between commands and
gives perfect lockstep — batched frames run at host speed (~600 game frames
in <30 ms), not real time.printh (text lines prefixed @) and serial(0x805, …)
(raw binary: framebuffer + palette dumps), rendered server-side to PNG.pico8 on PATH (or PICO8_BIN=/path/to/pico8), version 0.2.x_update/_update60 and read input via btn/btnp
(standard carts do; custom flip() main loops are not supported)npm install && npm run build
opencode config (opencode.json):
{
"mcp": {
"pico8": {
"type": "local",
"command": ["node", "/path/to/pico8-mcp/dist/index.js"]
}
}
}
Claude Desktop and any other MCP host: same command, stdio transport.
| Tool | Purpose |
|---|---|
pico8_boot | Start a cart under lockstep control (game time frozen until you step). Optional seed for deterministic rnd(). |
pico8_step | Hold buttons (left/right/up/down/o/x), advance N frames, get a screenshot. |
pico8_play | Scripted sequence of {buttons, frames} steps in one call. |
pico8_screen | Pixel-perfect PNG of the current frame (scale 1–4). |
pico8_read | Read Lua globals by dotted path (player.x, objects.1.type…). |
pico8_peek | Hex dump of PICO-8 RAM (0x6000 framebuffer, 0x2000 map…). |
pico8_reset | Kill + restart from the original file (picks up cart edits). |
pico8_shutdown / pico8_sessions | Lifecycle / listing. |
pico8_boot_check | Run the unmodified cart with pico8 -x for N seconds and report boot errors (benchmark-style check). |
Multiple sessions can run side by side; session_id defaults to the most
recent live one.
The server hosts a small local web page so you can watch the LLM play in
real time: open http://127.0.0.1:7864/ in a browser. It shows the game
screen (streamed over SSE), the buttons currently held, and a log of every
tool call plus the cart's printh output.

pico8_step
calls play back like a fast-forward video. With no viewer connected there
is zero overhead.Env knobs:
| Variable | Default | Effect |
|---|---|---|
PICO8_MCP_VIEWER | 1 | set to 0 to disable the viewer entirely |
PICO8_MCP_VIEWER_PORT | 7864 | listen port (binds 127.0.0.1 only) |
PICO8_MCP_VIEWER_CHUNK | 15 | frames per intermediate screen grab while spectating |
If the port is already in use (e.g. a second MCP host), the viewer is disabled with a warning on stderr and the server keeps working normally.
btnp() fires on the first frame of a
new press only. To tap twice: step with the button, step with buttons: [],
step with the button again._draw of the last stepped frame.-x process; the error text is
surfaced in the tool result. pico8_reset starts over.0x5f80–0x5fff) as its packet buffer and
overrides btn/btnp globals — carts that use GPIO themselves or cache
local btn=btn before the harness loads will misbehave.npm run build then node test/mcp-probe.mjs [cart.p8] runs an end-to-end
probe through a real MCP client (boot → play → read → shutdown).PICO8_BIN selects an alternative PICO-8 binary.Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for interactively playing PICO-8 carts from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/pico8-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.