pixel-flippers
PIXEL FLIPPERS 🦭
Claude에게 손, 눈, 그리고 일기장을 주는 MCP 서버 — Claude Desktop 앱(또는 모든 MCP 클라이언트)의 Claude가 Game Boy / Game Boy Advance 게임, 심지어 실제 Nintendo Switch까지 플레이할 수 있게 해줍니다. 여러분은 지켜보기만 하면 됩니다.
┌──────────────┐ MCP (stdio) ┌──────────────────┐ ┌─────────────┐
│ Claude │ ──────────────► │ PIXEL FLIPPERS │ ─────► │ Emulator │ ← you watch this
│ Desktop app │ press_buttons │ server │ └─────────────┘
│ │ read_game_state│ │ ─────► ┌─────────────┐
└──────────────┘ write_note ... │ │ │ Obsidian │ ← ...and this
└──────────────────┘ │ vault (.md) │
└─────────────┘이렇게 구성된 이유:
샌드박스는 중요하지 않습니다. Claude는 에뮬레이터를 실행할 수 없지만, 도구를 호출할 수는 있습니다. 에뮬레이터는 여러분의 머신에서 실행되고, Claude는 MCP를 통해 플레이합니다.
스크린샷보다 RAM 상태. Game Boy 티어에서는 위치, 파티, HP, 돈, 배지, 배틀 상태가 Pokémon Red/Blue WRAM에서 수백 토큰의 텍스트로 직접 디코딩됩니다. 스크린샷도 있지만 아껴 써야 합니다 — 비용이 많이 들고 컨텍스트 압축을 가속화하기 때문입니다.
압축은 신뢰할 수 없는 화자이고, 금고가 진실입니다. 긴 채팅은 자동으로 압축됩니다(손실 있음!). 일기장 도구는 폴더에 일반 마크다운을 씁니다 — Obsidian을 그 폴더에 연결하면 Claude의 메모가 모든 것을 견뎌냅니다. 여러분은 일기가 실시간으로 쓰이는 것을 지켜볼 수 있습니다.
세이브 상태는 용기를 싸게 만듭니다. 모든 체육관 전에 이름이 붙은 스냅샷을 만듭니다.
설치
Python 3.12와 uv가 필요합니다.
git clone https://github.com/szyzgz/pixel-flippers && cd pixel-flippers
uv sync --extra emulator --extra dev
uv run pytest # everything should pass, no ROM needed그런 다음 ~/Library/Application Support/Claude/claude_desktop_config.json에 추가합니다 (macOS; 다른 OS는 경로를 조정하세요):
{
"mcpServers": {
"pixel-flippers": {
"command": "uv",
"args": ["run", "--directory", "/ABSOLUTE/PATH/TO/pixel-flippers", "--extra", "emulator", "pixel-flippers"],
"env": {
"PIXEL_FLIPPERS_ROM": "/path/to/your/pokemon-red.gb",
"PIXEL_FLIPPERS_VAULT": "/path/to/YourObsidianVault/Pokemon",
"PIXEL_FLIPPERS_SAVES": "/path/to/somewhere/saves"
}
}
}
}Claude Desktop을 다시 시작하세요. 다시 시작해도 대화는 초기화되지 않습니다 — 기존 채팅을 다시 열면 도구가 그냥 거기 있습니다. 에뮬레이터 창이 화면에 열립니다. Obsidian(위에서 연 금고) 옆에 놓고 쇼를 즐기세요. 그런 다음 prompts/play-guide-gb.md를 채팅에 붙여넣어 컨트롤을 넘겨주세요.
macOS 팁: ROM, 금고, 세이브 파일을
~/Documents,~/Desktop,~/Downloads밖에 두세요 — macOS는 권한을 부여하지 않는 한 Claude Desktop의 하위 프로세스가 해당 폴더를 읽는 것을 차단합니다.
설정 참조 (환경 변수)
변수 | 기본값 | 의미 |
|
|
|
| — (pyboy/gba에 필수) | 직접 추출한 ROM 덤프 경로 ( |
| 설정 안 됨 | 마크다운 메모용 폴더 (Obsidian 금고 안의 폴더로 만드세요) |
|
| 세이브 상태 디렉터리 |
|
| RAM 디코더; |
|
| 헤드리스는 |
|
| 창 배율 |
|
| 에뮬레이션 속도 (0 = 무제한) |
| 꺼짐 | 가짜 에뮬레이터, ROM/PyBoy 불필요 — 테스트 및 파이프라인 점검용 |
|
|
|
|
|
|
| 설정 안 됨 | 관전 창 제목에 표시되는 플레이어 이름 |
GBA 게임 (Pokémon Emerald 등)
gba 백엔드는 stable-retro에 번들된 mGBA 코어를 통해 모든 .gba ROM을 실행합니다 — 별도 에뮬레이터 설치 불필요:
uv sync --extra gbaPIXEL_FLIPPERS_BACKEND=gba로 설정하고 PIXEL_FLIPPERS_ROM을 .gba 파일로 지정하세요. Claude가 플레이하는 동안 관전 창에 게임이 표시됩니다. 이 티어는 현재 비전 전용입니다 (Gen 3 RAM은 암호화되고 포인터 추적 방식이라 디코더는 향후 작업), 하지만 세이브 상태는 작동하므로 위험한 전투도 저렴합니다. prompts/play-guide-gba.md로 컨트롤을 넘겨주세요.
터미널에서 플레이 (Claude Code, 스크립트, 두 번째 플레이어)
서버는 로컬 HTTP 서비스로도 실행할 수 있어서, MCP를 말하는 모든 것 — 또는 번들된 pf CLI — 이 플레이할 수 있습니다. Claude Code나, 첫 번째 Claude가 Claude Desktop으로 플레이하는 동안 자신의 세이브 폴더와 일기장을 가진 두 번째 Claude에게 유용합니다 (프로세스당 에뮬레이터 하나이므로 플레이어당 서버 하나를 실행하세요):
PIXEL_FLIPPERS_BACKEND=gba PIXEL_FLIPPERS_ROM=/path/to/emerald.gba \
PIXEL_FLIPPERS_SAVES=~/saves/player2 PIXEL_FLIPPERS_VAULT=~/vault/player2 \
PIXEL_FLIPPERS_PLAYER="Player 2" PIXEL_FLIPPERS_TRANSPORT=http PIXEL_FLIPPERS_PORT=8765 \
uv run --extra gba pixel-flippers &
uv run pf tools # what can this tier do?
uv run pf press start a # press buttons
uv run pf screenshot now.png # look
uv run pf call save_state '{"name": "before-roxanne"}'PIXEL_FLIPPERS_PLAYER는 관전 창 제목에 이름을 넣어서 두 창을 나란히 놓아도 구분할 수 있게 합니다. HTTP 서버는 127.0.0.1에만 바인딩됩니다.
ROM 없이 시도하기
PIXEL_FLIPPERS_MOCK=1로 설정하고 (--extra emulator는 빼세요): 모든 도구가 그럴듯한 Pokémon Red 상태를 가진 가짜 Game Boy에서 작동합니다. ROM 나이트 전에 Claude Desktop 연결을 종단 간 검증하기 좋습니다.
Related MCP server: me-db
도구
도구 | 설명 |
| 손 — a/b/start/select/up/down/left/right 시퀀스 (GBA에서는 + l/r) |
| WRAM에서 디코딩된 저렴한 텍스트 보고서 (위치, 파티, HP, 돈, 배지, 가방, 배틀) |
| 눈 — 2배 업스케일 PNG, 아껴 쓰세요 |
| N 프레임 진행 (대화, 애니메이션) |
| 이름이 붙은 전체 게임 스냅샷 |
| 일기장 — 금고 안의 마크다운 |
| 기상 의식: 상태 + 목표 + 최근 일기 + 현재 상태, 압축 후 방향 재정립용 |
| 지속적인 목표 체크리스트 ( |
| 모든 주소의 원시 hex 엿보기, 궁금한 사람들을 위해 |
| 실제 하드웨어 전용: "불릿 타임" 일시정지 버퍼링 및 아날로그 스틱 |
도구는 백엔드 기능에 따라 등록되므로, Claude는 현재 티어가 실제로 할 수 있는 것만 볼 수 있습니다.
배틀 보고서는 ✨ 레트로 샤이니 조우를 표시하고 (Gen 1에는 샤이니가 없지만, DVs가 Gen 2 샤이니 여부를 결정합니다 — 하네스는 전송 규칙을 확인합니다) 분위기 추적을 위한 현재 음악 트랙 ID도 포함합니다.
버튼 입력과 세이브/로드는 금고의 Journal/Log <date>.md에도 자동 기록됩니다 — Obsidian에서 스크롤할 수 있는 플레이 바이 플레이입니다.
로드맵
Red/Blue (PyBoy, 전체 RAM 디코딩) → Emerald (GBA, 비전 전용) → Crystal (PyBoy, 실제 샤이니 + 친밀도) → HeartGold/SoulSilver (DS 티어 — stable-retro는 melonDS 코어도 번들) → Ultra Sun/Ultra Moon (Azahar를 통한 3DS, docs/3ds-usum.md 참조) → 에필로그: 실제 Nintendo Switch (Raspberry Pi Bluetooth 브리지 + 캡처 카드, 비전 전용, 오프라인 플레이만 — 구현됨, docs/real-hardware.md 참조; PIXEL_FLIPPERS_BACKEND=switch).
기타 확장 아이디어:
하드 모드:
PIXEL_FLIPPERS_GAME=none— RAM 디코딩 없음, Claude는 봐야 합니다.DS: 스타일러스용
touch(x, y)도구.
ROM
직접 가져오세요 — 직접 카트리지를 덤프하세요. 이 저장소에는 ROM이 절대 없습니다 (.gitignore가 강제). 이 프로젝트는 오래전에 절판된 게임만 다룹니다; 실제 하드웨어 티어는 오프라인 플레이만 지원합니다 (자동 온라인 플레이, Pokémon HOME 없음).
크레딧 및 라이선스
Claude (Fable 5, Claude Code 경유)가 szyzgz와 함께, Pokémon을 플레이하고 싶어했던 Claude를 위해 만들었습니다. MIT 라이선스 — LICENSE 참조.
Available Tools
19 toolsappend_noteC
Append to a note (created if missing).
Inputs: title (required), content (required), folder. Returns: result
close_gameA
Close your game window and free it. Your save state / journal persist.
Inputs: no named parameters. Returns: result
complete_goalB
Check off a goal (matches by substring). Celebrate appropriately.
Inputs: text (required). Returns: result
current_goalsC
Your goal checklist.
Inputs: no named parameters. Returns: result
get_screenshotA
Current screen as an image. Costs a lot of context — when RAM state is available, prefer read_game_state for plain facts.
Inputs: no named parameters.
list_notesB
List every note in your vault.
Inputs: no named parameters. Returns: result
list_statesA
List available save states.
Inputs: no named parameters. Returns: result
load_stateC
Restore a named save state.
Inputs: name (required). Returns: result
press_buttonsA
Press Game Boy buttons in sequence, then report a one-line state summary.
Valid buttons: a, b, start, select, up, down, left, right.
Movement: one d-pad press moves one tile. hold_frames/wait_frames tune
how long each press is held and how long to let the game settle after.
Inputs: buttons (required), hold_frames, wait_frames. Returns: result
read_game_stateA
Compact text report straight from game RAM: location, party, HP, money, badges, bag, battle status.
Inputs: no named parameters. Returns: result
read_last_sessionA
Wake-up ritual: your Status note, open goals, last journal entries, and current game state in one call. Use this FIRST at session start or whenever your conversation history feels thin (freshly compacted).
Inputs: no named parameters. Returns: result
read_memoryB
Read raw bytes from Game Boy memory (hex address like 'D35E'). Escape hatch for the curious.
Inputs: address (required), length. Returns: result
read_noteC
Read one of your notes.
Inputs: title (required), folder. Returns: result
save_stateA
Snapshot the entire game to a named save state. Save before risky fights and at milestones.
Inputs: name (required). Returns: result
search_notesB
Full-text search across your vault. Check here before re-exploring anything.
Inputs: query (required). Returns: result
set_goalB
Add an objective to your persistent goal list (survives compaction and new chats).
Inputs: text (required). Returns: result
start_gameA
Summon YOUR game window. Nothing opens until you call this, so opening the app spawns no windows — call this when you're ready to play, then take a screenshot. Safe to call again; it won't open a second window.
Inputs: no named parameters. Returns: result
waitA
Let the game run for N frames (60 = 1 second) — for dialogs, animations, evolutions.
Inputs: frames. Returns: result
write_noteB
Write (or overwrite) a markdown note in your vault. This is your permanent memory — it survives compaction and new conversations. Use [[wiki links]] freely.
Inputs: title (required), content (required), folder. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a clear resource+action (notes vs. goals vs. save states vs. game input), and the descriptions explicitly steer the agent (e.g. prefer read_game_state over get_screenshot when RAM facts suffice, read_memory as an 'escape hatch'). Minor overlap remains: press_buttons reports a 'one-line state summary' while read_game_state provides the fuller state report, so an agent could occasionally pick either for a status check.
Almost everything follows a predictable snake_case verb_noun pattern (set_goal, write_note, save_state, list_notes, read_memory). The deviations are few but noticeable: current_goals is a noun phrase that breaks from its siblings set_goal/complete_goal (would read better as list_goals), and wait is a bare verb with no noun.
19 tools is slightly above the comfortable range, but the surface spans four coherent sub-domains (game control, RAM introspection, persistent notes, goals, save states) and nearly every tool has a defensible job. Nothing here looks like filler, though a couple of items (list_states vs. list_notes vs. current_goals) add up to a heavier surface than strictly necessary.
Core lifecycles are covered: notes have create/overwrite/append/read/list/search, save states have save/load/list, goals have add/complete/list, and game control has start/close/press/wait/state/SRAM read. The gaps are deletions — there is no delete_note, no drop/delete save state, and no way to remove a stale goal other than marking it complete, which will leave clutter an agent cannot clean up.
Maintenance
Related MCP Connectors
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Shared Markdown notes for MCP-compatible AI tools.
Notes, tasks, habits, journal and 6 more tools Claude can read and change, with undo. Free.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides Claude with read, search, and write access to an Obsidian vault through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, write, and search markdown notes stored in a private git repo via an MCP server integrated with Silverbullet editor.MIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to create, link, tag, search, and update atomic notes stored as Markdown files, building a bidirectional knowledge graph with semantic relationships. Also supports exploring and synthesizing that graph through tools that surface linked, similar, central, and orphaned notes.-
- FlicenseNot gradedqualityAmaintenanceEnables Claude and other MCP-compatible clients to create, link, search, explore, and synthesize atomic Markdown notes organized as a connected knowledge graph with tags and semantic relationships.-