Install
openclaw skills install iot-platform[WIP] Guide to connect to Cloud Studio IoT's OpenClaw platform via MCP API. Use when configuring MCP server connections, sending commands to IoT devices, rea...
openclaw skills install iot-platform🚧 WIP -- This skill is under active development. Details may change as the OpenClaw API stabilizes.
OpenClaw exposes an MCP (Model Context Protocol) server through its gateway, allowing Claude Code and other MCP clients to interact with IoT devices, read sensor data, and manage channels programmatically.
openclaw --version)systemctl --user status openclaw-gateway)curl -fsS http://127.0.0.1:18789/healthz)curl -fsS http://127.0.0.1:18789/healthz
# Expected: OK
Add the OpenClaw MCP server to your Claude Code settings (~/.claude/settings.json or project .claude/settings.json):
{
"mcpServers": {
"openclaw": {
"type": "sse",
"url": "http://127.0.0.1:18789/mcp"
}
}
}
For remote access via Tailscale:
{
"mcpServers": {
"openclaw": {
"type": "sse",
"url": "http://openclaw-desktop:18789/mcp"
}
}
}
Once configured, restart Claude Code and check that the OpenClaw tools appear in the available MCP tools list.
Gateway binds to 127.0.0.1 only. Accessible from the local machine.
gateway:
bind: loopback
port: 18789
Accessible from any device on your Tailscale network.
gateway:
bind: loopback
port: 18789
tailscale:
mode: serve
Publicly accessible with password authentication.
gateway:
bind: loopback
port: 18789
tailscale:
mode: funnel
auth:
mode: password
password: "your-secure-password"
These are the expected MCP tools and resources exposed by the gateway:
| Tool | Description |
|---|---|
openclaw_device_list | List connected IoT devices |
openclaw_device_command | Send a command to a specific device |
openclaw_sensor_read | Read current sensor data |
openclaw_channel_list | List configured channels (Telegram, etc.) |
openclaw_channel_send | Send a message through a channel |
openclaw_agent_run | Run an agent task on the gateway |
| URI Pattern | Description |
|---|---|
openclaw://devices | List of all registered devices |
openclaw://devices/{id}/sensors | Sensor readings for a device |
openclaw://channels | Configured communication channels |
openclaw://config | Current gateway configuration |
systemctl --user restart openclaw-gateway
journalctl --user -u openclaw-gateway -f
curl http://127.0.0.1:18789/healthzss -tlnp | grep 18789tailscale statusEnsure the password in your MCP config matches the one in ~/.openclaw/gateway.yaml.
# Gateway management
openclaw doctor # Run diagnostics
openclaw config list # Show current config
openclaw channels list # List channels
# Device interaction (CLI)
openclaw devices list # List devices
openclaw devices status # Device health overview
# Logs
journalctl --user -u openclaw-gateway -f
config/gateway.yaml.examplescripts/OpenClaw — IoT Platform & AI Gateway https://cloudstudioiot.com/