esp32-pet
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@esp32-pet set the pet to happy and have it say hello"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BIP
A desk pet on the Waveshare ESP32-S3-LCD-1.47B: a 172×320 face, one RGB LED, and a USB link a computer can drive. Cursor, Claude, and Codex connect through the built-in MCP server.
The board is ESP32-S3R8, 16 MB flash, 8 MB PSRAM, ST7789, QMI8658 IMU, and an 18-pin header for add-ons. Tilting the board turns the face. The only onboard key is BOOT (GPIO0). Hold BOOT while resetting to enter the ROM download mode.
Flash
Firmware builds in Docker with ESP-IDF 5.5.1. The image is pulled on first use. Output stays in .deps/, which is not part of the source tree.
bash scripts/build.sh
pip install esptool # or: python3 -m venv .venv && .venv/bin/pip install esptool
bash scripts/flash.sh /dev/cu.usbmodem1101On Linux the port is usually /dev/ttyACM0.
USB is enough. Wi-Fi is optional and only for the UDP state packet:
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/python scripts/provision.py --port /dev/cu.usbmodem1101 --ssid "Your2.4GHzSsid"The password is written to the board and is not kept in the repo. The pairing file is .deps/pet-device.json (mode 600).
Related MCP server: ui-chan
MCP
Install the bridge once:
python3 -m venv .venv
.venv/bin/pip install -e .This checkout already has a project config at .cursor/mcp.json. Restart Cursor and the esp32-pet server is available. Tools:
Tool | What it does |
| Face, gaze, mouth, blink |
| Timed face keyframes |
| Speak on the Mac with |
| Port, last face, recent button presses |
Set PET_USB_PORT when more than one USB serial device is plugged in.
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"esp32-pet": {
"command": "/absolute/path/to/esp32-pet/.venv/bin/python",
"args": ["-m", "bip_bridge.mcp_server"],
"cwd": "/absolute/path/to/esp32-pet"
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.esp32-pet]
command = "/absolute/path/to/esp32-pet/.venv/bin/python"
args = ["-m", "bip_bridge.mcp_server"]
cwd = "/absolute/path/to/esp32-pet"The server speaks MCP over stdio. It prints protocol messages on stdout and nothing else.
Voice and the local page
Voice needs ElevenLabs. Copy .env.example to .env and fill in the key and agent id, then:
.venv/bin/pip install -e ".[voice]"
pnpm live
pnpm live -- --ptt # BOOT (GPIO0) is the talk key
pnpm demo # macOS say, no API key
pnpm dev # dashboard at http://127.0.0.1:5173pnpm dev needs Node 22 and pnpm install. The page is a host preview of the face plus buttons for the onboard key and three add-on slots.
Pins
Use | GPIO |
LCD MOSI, SCLK, CS, DC, RST, backlight | 45, 40, 42, 41, 39, 46 |
RGB LED | 38 |
IMU SDA, SCL | 48, 47 |
TF card CMD, SCK, D0, D1, D2, D3 | 15, 14, 16, 18, 17, 21 |
USB D−, D+ | 19, 20 |
BOOT | 0 |
Free for add-ons: GPIO1, GPIO2, GPIO4–GPIO13. GPIO14–GPIO18 and GPIO21 are the TF slot. Leave them if the card should keep working.
Add-ons
An add-on is one C file and one line in firmware/pet/main/addon.c. firmware/pet/addons/example_button.c is a button on GPIO2 that reports button 4 (cycles the LED). It is not compiled until you add it to SRCS in firmware/pet/main/CMakeLists.txt and register &example_button_addon.
pet_emit_button(n) reuses the face actions: 1 pet, 2 cycle mood, 3 agent, 4 LED mode. The onboard BOOT key is separate. It always cycles the mood and is reported to the host as button 1.
The host hears one line per press:
PET_BTN button=1 mood=HAPPY led=0 energy=95A JSON line on the same serial port sets the face (mood, gazeX, gazeY, flags, energy, title, subtitle). STATUS answers with PET_STATUS and PET_IP.
Layout
firmware/pet/ ESP-IDF project for this board
bip_bridge/ USB controller and the MCP server
scripts/ build, flash, provision, voice
src/ optional local dashboard.env, .venv, .deps, and node_modules stay on your machine.
Available Tools
4 toolsbip_get_statusA
Return BIP's current expression state, USB port, Wi-Fi IP, and recent physical button presses.
Inputs: no named parameters.
bip_play_timelineC
Play a sequence of time-coded facial animation keyframes on BIP (non-blocking firmware loop).
Inputs: keyframes (required).
bip_set_stateB
Set BIP's physical facial expression, eye gaze direction, speaking mouth animation, or trigger an expressive blink over USB Serial.
Inputs: state (required), blink, gaze_x, gaze_y, +1 more.
bip_speakC
Speak English text aloud on Mac and synchronize BIP's mouth, gaze, and blinks to the audio duration.
Inputs: text (required), blink, gaze_x, gaze_y, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinguishable action: setting a single state, playing a keyframe timeline, reading status, and speaking text. There is mild overlap since bip_set_state also controls speaking mouth animation while bip_speak synchronizes mouth/gaze/blink, so an agent might hesitate over which to use for mouth motion, but the descriptions clarify the intended split.
All four tools use a consistent snake_case pattern with the shared 'bip_' prefix and a verb-led name (set_state, play_timeline, get_status, speak). The convention is predictable and readable across the whole surface.
Four tools is on the lean side but each covers a distinct facet (state, sequence playback, status, speech) of driving a physical pet device. It is slightly thin — no separate stop/reset tool — but nothing feels redundant.
The core actions (set expression, play animation, speak, read status) are covered, but there is no way to stop or interrupt a running timeline, reset to a known idle state, or enumerate valid expressions/gazes. These gaps will force agents to improvise when recovering from an animation or discovering valid state values.
Maintenance
Related MCP Connectors
Turns a phone into a camera+Bluetooth remote so AI assistants can see and control any PC.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Docs, code patterns and device kinds for the Velvet Bluetooth device SDK and Velvet Live API.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to control a Live2D desktop pet's expressions and actions via MCP protocol.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible agents to control a desktop mascot by switching its appearance and voice, showing speech-bubble dialogue, and managing state such as affinity.11 npm1MIT
- AlicenseBqualityCmaintenanceEnables natural-language control of DK-META2 devices through local BLE for vibration, linear extension, and rotation. It also supports scanning, connecting, status checks, and safe stop/disconnect operations without cloud access.83MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to control a transparent, always-on-top desktop character window over a loopback-only local HTTP API — applying expressions, motions, parameters and gaze, speaking via TTS or uploaded audio with lip-sync, capturing screenshots, and switching models, window placement and visibility. Everything stays local, so no cloud account or manual token handling is required.MIT