# Bolt Iot — how to use (mcp.ai)

Connect your Bolt Iot account and use 6 tools for internet of things straight from your AI agent. Connect with your own API key. Bolt IoT is an integrated platform that enables users to build IoT projects by connecting sensors and actuators to the internet, offering cloud-based control and monitoring capabilities.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_bolt_iot?ms=1787291280000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `bolt_iot_analog_read`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/bolt_iot`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/bolt_iot/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/bolt_iot/analog/read` — Tool to read the analog value from a specified pin on a Bolt device. Use when you need sensor readings (0–1023) after confirming the device is online.
  - body: { pin: string }
- `POST https://api.mcp.ai/api/bolt_iot/check/device/status` — Tool to check whether a specified Bolt device is online. Use when you need to verify device connectivity before sending commands (e.g., control signals). Example: 'Check if device BOLT1234567 is onlin
  - body: { deviceID: string }
- `POST https://api.mcp.ai/api/bolt_iot/digital/write` — Tool to set a digital pin HIGH or LOW on a specified Bolt device. Use when controlling actuators or LEDs via digital output.
  - body: { pin: string, state: string, deviceName: string }
- `POST https://api.mcp.ai/api/bolt_iot/serial/read` — Tool to read incoming serial data from a Bolt device. Use when you've initialized UART with serialBegin and need to retrieve serial data.
  - body: { till?: integer, deviceName: string }
- `POST https://api.mcp.ai/api/bolt_iot/serial/write` — Tool to send serial data to a Bolt device. Use when you need to transmit ASCII data over UART after initializing UART with serialBegin.
  - body: { data: string, deviceName: string }
- `POST https://api.mcp.ai/api/bolt_iot/serial/write/read` — Tool to send serial data and read the response on a Bolt device. Use when you need to transmit ASCII data over UART and capture its reply immediately.
  - body: { data: string, deviceName: string }

## Example prompts
- "What can I do in Bolt Iot?"
- "Show me a summary of my Bolt Iot account"

## More
- Page: https://mcp.ai/bolt_iot
- Agent spec (llms.txt): https://mcp.ai/bolt_iot/llms.txt
- Postman collection: https://mcp.ai/bolt_iot/postman.json
