MCP Server & Skill

The SinricPro Docs MCP Server lets AI coding assistants read the official SinricPro documentation, API reference, and SDK examples directly — so tools like Claude Code, OpenAI Codex, and Cursor can answer SinricPro questions and write device code using up-to-date, authoritative sources instead of guessing.

It speaks the Model Context Protocol (MCP) over Streamable HTTP. There is nothing to install and no API key required — just point your client at the endpoint below.

Want your assistant to set up devices too? Connect to the account endpoint with your API key and it can also create, rename and delete devices in your account. To turn devices on and off, run scenes, or manage schedules, use the SinricPro agent skill.

llms.txt

If your assistant cannot use MCP, point it at llms.txt. It is a plain-text index of this documentation, with a one-line summary of every page, in the llms.txt format that ChatGPT, Claude, Cursor and similar tools can read.

Endpoint

https://docs.sinric.pro/mcp

What it gives your assistant

Once connected, your AI assistant gains these tools:

Tool What it does
docs_search Full-text search across all docs, API and SDK content
get_docs_overview Table of contents for everything available
get_api_reference REST API endpoint reference (api.sinric.pro)
get_sdk_example Working example code for a device on a given SDK
get_quickstart Step-by-step quickstart for a device
get_capabilities_matrix Which devices are supported on which SDK
get_changelog Recent changes across the platform and SDKs
get_pages Fetch full doc pages by path
submit_docs_feedback Send feedback about a docs page to the maintainers

SDKs covered: ESP8266/ESP32 (Arduino C++), ESP-IDF, Raspberry Pi Pico, Python, Node.js / TypeScript, and MicroPython. The guides on this site (voice commands, device templates, tutorials, OTA and troubleshooting) are included too.


Claude Code

Add it with one command:

claude mcp add --transport http sinricpro-docs https://docs.sinric.pro/mcp

Then run /mcp inside Claude Code to confirm it’s connected.

To share the server with your team, commit a .mcp.json file in your project root instead:

{
  "mcpServers": {
    "sinricpro-docs": {
      "type": "http",
      "url": "https://docs.sinric.pro/mcp"
    }
  }
}

Cursor

Create (or edit) ~/.cursor/mcp.json for all projects, or .cursor/mcp.json in a single project’s root:

{
  "mcpServers": {
    "sinricpro-docs": {
      "url": "https://docs.sinric.pro/mcp"
    }
  }
}

Cursor auto-detects the Streamable HTTP transport from the url field. Open Settings → MCP to verify the server shows as connected and its tools are listed.


OpenAI Codex

Edit ~/.codex/config.toml (global) or .codex/config.toml in a trusted project, and add:

[mcp_servers.sinricpro_docs]
url = "https://docs.sinric.pro/mcp"

Restart Codex and the SinricPro docs tools will be available. (Server names in config.toml use underscores.)


Bare metal / other MCP clients

The endpoint is a standard MCP Streamable HTTP server, so any compliant client works. Use the url form if your client supports HTTP transports directly:

{
  "mcpServers": {
    "sinricpro-docs": {
      "type": "http",
      "url": "https://docs.sinric.pro/mcp"
    }
  }
}

Client only supports stdio? Bridge it with mcp-remote:

{
  "mcpServers": {
    "sinricpro-docs": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://docs.sinric.pro/mcp"]
    }
  }
}

Quick connectivity test from a terminal — this performs the MCP initialize handshake and should return server info:

curl -s -X POST https://docs.sinric.pro/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'

Try it

Once connected, ask your assistant things like:

Your assistant will pull the answer straight from the official documentation.


Manage devices (account endpoint)

The account endpoint offers every docs tool above, plus tools that work on your own SinricPro account. Your assistant can create a device and then write a ready-to-flash sketch for it, in one conversation.

https://docs.sinric.pro/mcp/account

It needs your API key, sent as Authorization: Bearer <your API key>. Create one at portal.sinric.pro/credential/new/apikey. The key gives full access to your account, so keep it private, and delete it in the portal if it leaks.

Tool What it does
list_devices Your devices, with their type, room and online state
list_rooms Your rooms
list_device_types The device types you can create
create_device Creates a device from a name, type and room. It can also return the APP_KEY and APP_SECRET your sketch needs
update_device Renames a device, moves it to another room, or changes its description
delete_device Deletes a device permanently

Your assistant is told to check with you before creating, changing or deleting anything. Deleting only works with a device’s exact name or id, so a similar name can’t delete the wrong device. Each new device uses one of your device licenses, the same as creating it in the portal.

Claude Code:

claude mcp add --transport http sinricpro https://docs.sinric.pro/mcp/account \
  --header "Authorization: Bearer $SINRICPRO_API_KEY"

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "sinricpro": {
      "url": "https://docs.sinric.pro/mcp/account",
      "headers": { "Authorization": "Bearer <your API key>" }
    }
  }
}

OpenAI Codex (~/.codex/config.toml), with the key in the SINRICPRO_API_KEY environment variable:

[mcp_servers.sinricpro]
url = "https://docs.sinric.pro/mcp/account"
bearer_token_env_var = "SINRICPRO_API_KEY"

Then try:


Agent skill: control your smart home

The SinricPro agent skill (sinricpro-smart-home) lets an AI agent control your SinricPro account. It works with OpenClaw, Claude Code, and other agents that load SKILL.md skills.

  Docs MCP server Account endpoint Agent skill
Purpose Help you write SinricPro code Set up devices and write their code Control your devices
Talks to Public documentation Docs, and your account via api.sinric.pro Your account, via api.sinric.pro
Needs Nothing An API key Node.js 18+ and an API key

You can ask your agent things like:

The skill does not handle camera live view or snapshots, adding or removing devices (use the account endpoint), editing automations, or account settings.

Set it up

  1. Create an API key at portal.sinric.pro/credential/new/apikey. The key gives full access to your account, so keep it private, and delete it in the portal if it leaks.
  2. Clone the repository and copy the sinricpro-smart-home folder into your agent’s skills directory:

    git clone https://github.com/sinricpro/sinricpro-agent-skills.git
    
    Agent Skills directory
    OpenClaw ~/.openclaw/skills/ or <workspace>/skills/
    Claude Code ~/.claude/skills/ or <project>/.claude/skills/
  3. Set SINRICPRO_API_KEY in the environment your agent runs in. In OpenClaw, enter it in the skill’s configuration.

Locks and garage doors

By default, the skill can lock doors and close garage doors, but it refuses to unlock or open them, including inside scenes. This is because an agent can misread a request. To allow unlocking and opening, set SINRICPRO_ALLOW_UNLOCK=1. The agent is told to ask you before each unlock or open, but that environment variable is the only real safeguard. Enable it only if you accept the risk.

See the repository README for the CLI and all configuration options.