toio-mcp
Enables natural language control of toio robot cubes via the OpenAI API for the WebAPI server.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
toio-mcp
自然言語で toio ロボットキューブを制御する MCP サーバー。 toio.js 経由で BLE 接続した toio を、Claude Desktop や MCP 対応クライアントから操作できる。
前提条件
Node.js 20 以上
Bluetooth 4.0 (BLE) 対応 の PC
toio Core Cube (実機が必要)
Windows の場合
toio.js が依存する noble のネイティブモジュールをビルドするため、以下が追加で必要である。
Visual Studio Build Tools 2022 — 「C++ によるデスクトップ開発」ワークロードを選択してインストールする
Python 3 — node-gyp が使用する
package.jsonのoverridesでnobleを Windows WinRT BLE 対応の@abandonware/nobleに差し替えている。
Related MCP server: blender-mcp
セットアップ
cd toio-mcp
npm install
npm run buildWebAPI サーバー
stackchan などの外部デバイスから自然言語で toio を操作するための WebAPI サーバーを内蔵している。 自然言語テキストを LLM(Claude / OpenAI)が解釈し、toio の操作に変換して実行する。
環境変数の設定
.env.example をコピーして .env を作成し、API キーを設定する。
cp .env.example .env.env の内容:
# LLM プロバイダ(claude または openai)
LLM_PROVIDER=claude
# Claude API を使う場合
ANTHROPIC_API_KEY=sk-ant-...
# OpenAI API を使う場合
# OPENAI_API_KEY=sk-...
# モデル名(省略時はデフォルト値を使用)
# LLM_MODEL=claude-sonnet-4-20250514
# WebAPI サーバーのポート番号
PORT=3000WebAPI の起動
npm run dev:web # 開発モード(tsx で直接実行)
npm run start:web # ビルド済みファイルで起動エンドポイント
メソッド | パス | 説明 | リクエストボディ |
GET |
| ヘルスチェック | なし |
POST |
| 自然言語で制御 |
|
POST |
| LLM を介さず直接制御 | ツール引数の JSON |
リクエスト例
# 自然言語で制御
curl -X POST http://localhost:3000/api/chat \
-H "Content-Type: application/json" \
-d '{"message": "前に進んで"}'
# 直接ツール呼び出し
curl -X POST http://localhost:3000/api/tools/move \
-H "Content-Type: application/json" \
-d '{"left": 50, "right": 50, "duration": 1000}'MCP サーバーの起動方法
1. Claude Desktop から使う(推奨)
Claude Desktop の設定ファイル claude_desktop_config.json に以下を追加する。
args のパスは実際のインストール先に合わせて変更すること。
{
"mcpServers": {
"toio": {
"command": "node",
"args": ["/path/to/toio-mcp/dist/index.js"]
}
}
}設定後、Claude Desktop を再起動すると toio ツールが利用可能になる。
2. Claude Code から使う
Claude Code の MCP 設定(.claude/settings.json など)に同様のサーバー定義を追加する。
3. 開発モードで起動する
ビルドなしで直接実行する場合は以下を使用する。
npm run dev4. MCP Inspector でテストする
MCP Inspector を使って各ツールを対話的にテストできる。
npm run inspect使い方
MCP クライアント(Claude Desktop など)から
connectツールを呼び出し、toio cube に BLE 接続するmove,spin,set_ledなどのツールで cube を操作する操作が終わったら
disconnectで切断する
MCP ツール一覧
ツール名 | 引数 | 動作 |
| なし | 最寄りの cube に BLE 接続 |
| なし | 切断 |
|
| 左右モーター制御 |
| なし | 停止 |
|
| その場で回転 |
|
| LED 色変更 |
|
| 内蔵効果音を再生 |
| なし | バッテリー残量を取得 |
技術スタック
TypeScript
Node.js ≥ 20
@toio/scanner+@toio/cube@modelcontextprotocol/sdkzod
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables Claude to control Nordic Thingy:52 IoT devices via Bluetooth LE, allowing users to manage LED colors, play sounds, and read environmental sensors through natural language conversations.-
- AlicenseCqualityBmaintenanceEnables AI-powered control of Blender through natural language, allowing users to create, manipulate, and automate 3D scenes, objects, materials, animations, and more via Claude or other MCP clients.7165MIT
- AlicenseAqualityDmaintenanceA stateful Bluetooth Low Energy (BLE) MCP server that enables AI agents to scan, connect, read/write characteristics, and subscribe to notifications on BLE devices.3569 PyPI19MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to control a Sphero RVR robot via the MCP protocol, including movement, LEDs, sensors, and battery monitoring.55MIT