KM

kisaragi-mochi/stackchan-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

186 stars 68 forks 品質 77 トレンド 21NOASSERTION

如月もち/スタックチャンMCPは、https://github.com/kisaragi-mochi/stackchan-mcp.からインポートされたMCPサーバー候補です。

概要

如月もち/スタックチャンMCPは、https://github.com/kisaragi-mochi/stackchan-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

英語 |日本語

スタックチャン-MCP

これは、M5Stack公式StackChan(2025年Kickstarter出荷キット)用のMCP(Model Context Protocol)ブリッジで、任意のLLMクライアントがデバイスを駆動できるようにします。

スタックちゃんプロジェクトコミュニティ(2021年に石川真也が創設)から生まれました。このリポジトリは、その系譜から発展したM5Stack公式StackChanキットを対象としています。

任意のMCPクライアント(Claude Code/Claude Desktop/その他)から、StackChanの頭部移動、カメラキャプチャ、タッチセンサー読み取り、アバター表現スイッチなどの操作を呼び出せます。

リポジトリのレイアウト

このリポジトリはモノリポジトリです。

ディレクトリ 目次
firmware/ 78/xiaozhi-esp32の完全なgitサブツリー。カスタムのStackChanボードはfirmware/main/boards/stackchan/に位置しています。
gateway/ Python MCPゲートウェイ。stdio MCPサーバー(LLM側)+ WebSocket MCPクライアント(ESP32側)+HTTPキャプチャサーバー。
docs/ architecture.md:フルコンポーネント図、ツール名マッピング、写真フロー、認証、フェーズロードマップ。firmware-sync.md:上流のxiaozhi-esp32同期プレイブック。remote-access.md:非LAN使用向けのTailscaleファネルセットアップ。
examples/ オプションで未メンテナンスの例。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

English | 日本語

stackchan-mcp

An MCP (Model Context Protocol) bridge for the M5Stack official StackChan (2025 Kickstarter shipping kit), letting any LLM client drive the device.

Born out of the stack-chan project community (originated by Shinya Ishikawa in 2021). This repository targets the M5Stack official StackChan kit that grew out of that lineage.

┌─────────────┐     stdio MCP      ┌──────────────┐    WebSocket MCP    ┌──────────────┐
│ MCP client  │ ─────────────────▶ │   gateway    │ ──────────────────▶ │ ESP32 (CoreS3│
│ (e.g.Claude)│ ◀───────────────── │  (Python)    │ ◀────────────────── │  +StackChan) │
└─────────────┘                    │              │                     └──────────────┘
                                   │  /capture    │ ◀── HTTP POST (JPEG) ──┘
                                   └──────────────┘

From any MCP client (Claude Code / Claude Desktop / others) you can call StackChan operations such as head movement, camera capture, touch sensor reads, and avatar expression switches.

Repository layout

This repository is a monorepo.

Directory Contents
firmware/ Full git subtree of 78/xiaozhi-esp32. The custom StackChan board lives at firmware/main/boards/stackchan/.
gateway/ Python MCP gateway. stdio MCP server (LLM side) + WebSocket MCP client (ESP32 side) + HTTP capture server.
docs/ architecture.md: full component diagram, tool name mapping, photo flow, auth, phase roadmap. firmware-sync.md: upstream xiaozhi-esp32 sync playbook. remote-access.md: Tailscale Funnel setup for non-LAN use.
examples/ Optional, unmaintained examples. cloudflare-relay/: Cloudflare Workers WebSocket relay for reaching the gateway from outside the local LAN.

Target hardware

M5Stack official StackChan kit (Kickstarter 2025 shipping version). The firmware in this repository is meant to replace the kit’s factory firmware.

Part Spec
Body M5Stack CoreS3 (ESP32-S3, 16MB Flash, 8MB PSRAM)
Neck servos SCS0009 ×2 (yaw + pitch, serial bus, TX=GPIO6, RX=GPIO7)
Camera GC0308 (DVP, 320×240)
Touch FT6336 / Si12T
Display ILI9342 (SPI, 320×240)

A self-built stack-chan (following the original stack-chan project design) may also work as long as the pin assignments and I2C addresses match. Reports and PRs welcome.

Tools (callable by MCP clients via the gateway)

Tool Description Status
GitHub で README 全文を見る

インストール

docker run --rm --cpus=4 --ulimit nofile=65536:65536 \
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "stackchan-mcp": { "type": "stdio", "command": "stackchan-mcp", "env": { "STACKCHAN_TOKEN": "your-secret-token-here", "VISION_HOST": "your.host.lan.ip" } } } }