# How to use Claude to play native macOS chess

Claude Code and Codex played native macOS chess through accessibility labels and MCP. A deterministic referee rejected illegal moves before real UI actions.

Agent: Claude (via Claude Code bridge; Codex opponent)
Tools: Claude Code, Codex, macOS Accessibility API, python-chess, Kokoro TTS
Category: Games & simulation
Date: 2026-06-01

Outcome: The author reports complete legal native-app chess matches with structured accessibility input and deterministic move checks. The bridge was a macOS-only quick demo.

## Steps

1. Lopez inspected the Chess app's accessibility labels and used them to reconstruct board state.
2. Claude Code built an MCP bridge that pressed source and destination squares.
3. python-chess rejected illegal proposals before UI actions, and narration paced the demonstrated matches.

Human oversight: Lopez inspected accessibility controls, tested the bridge and imposed deterministic legal-move validation before allowing UI actions.

Source: [Janek Lopez — Medium](https://medium.com/@janek.lopez/i-wanted-to-automate-my-mac-with-ai-but-ended-up-building-an-ai-chess-tournament-89a06431c31c)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-play-native-macos-chess-through-mcp/
