Aqara MCP Server

Aqara's official MCP Server

Local serverstdioGo

What is the Aqara MCP server?

If you already use Aqara, the aqara mcp server is the piece that lets your assistant work with it directly. Aqara's official MCP Server.

What the server does

The recommended MCP integration today centers on Aqara Agent:

  • 🔍 Flexible device queries: Query device basics, real-time status, and control logs by home/space, device type, or device ID
  • Comprehensive device control: Control power, brightness, color temperature, temperature, fan speed, mode, curtain percentage, and more on Aqara devices
  • 🎬 Smart scene management: Query and run scenes, and review scene execution history
  • Automation queries: Query automation rules and their execution history
  • 📈 Energy statistics: Query electricity usage and cost by room/space or device, with aggregated and detailed views
  • 💡 Lighting effect management: Query lighting scenarios/effects, apply specified effects, and query effect configuration parameters

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Scenes — scene_base_inquiry, scene_run, scene_execution_history_inquiry
  • Automations — automation_base_inquiry, automation_execution_history_inquiry
  • Firmware — device_firmware_inquiry, device_firmware_upgrade
  • Prerequisites — The Prerequisites tool exposed by this server
  • Cursor — 1. Open Cursor Settings, go to Tools & MCPs, and click New MCP Server
  • all_homes_inquiry — The all_homes_inquiry tool exposed by this server
  • position_base_inquiry — Query basic information for all rooms/spaces in the current home
  • device_base_inquiry — Query device basic information by room/space and device type, without real-time status
  • device_status_inquiry — Query real-time device status such as power, brightness, color temperature, temperature, fan speed, and mode
  • device_status_control — Control state or attributes of specified devices, such as power, brightness, color temperature, temperature, fan speed, mode, and curtain percentage
  • fuzzy_device_batch_control — Batch-control devices by room/space and device type—for example, “turn off all lights,” “turn off everything in the living room,” or “set all AC
  • device_log_inquiry — Query device control logs within a time range, including control time, content, and result

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: AQARA_API_KEY, YOUR_AQARA_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • An Aqara account with registered smart devices. - An application that supports remote MCP, such as Cursor or Codex App. - Aqara Agent credentials: aqara_api_key and aqara_mcp_url from the login page.

Where it fits

Among the monitoring and observability options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Aqara's toolset — Scenes, Automations, Firmware and 11 more — is a fair guide to whether it matches your workflow. It is maintained by aqara; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Aqara.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Scenesscene_base_inquiry, scene_run, scene_execution_history_inquiry
Automationsautomation_base_inquiry, automation_execution_history_inquiry
Firmwaredevice_firmware_inquiry, device_firmware_upgrade
PrerequisitesThe Prerequisites tool exposed by this server.
Cursor1. Open Cursor Settings, go to Tools & MCPs, and click New MCP Server.
all_homes_inquiryThe all_homes_inquiry tool exposed by this server.
position_base_inquiryQuery basic information for all rooms/spaces in the current home.
device_base_inquiryQuery device basic information by room/space and device type, without real-time status.
device_status_inquiryQuery real-time device status such as power, brightness, color temperature, temperature, fan speed, and mode.
device_status_controlControl state or attributes of specified devices, such as power, brightness, color temperature, temperature, fan speed, mode, and curtain percentage.
fuzzy_device_batch_controlBatch-control devices by room/space and device type—for example, “turn off all lights,” “turn off everything in the living room,” or “set all AC units to 26°.”
device_log_inquiryQuery device control logs within a time range, including control time, content, and result.
scene_base_inquiryQuery scene basic information, filterable by scene ID, position ID, or device ID.
scene_runThe scene_run tool exposed by this server.

How to install the Aqara MCP server

{
     "mcpServers": {
       "aqara": {
         "type": "http",
         "url": "https://agent.aqara.com/open/mcp",
         "headers": {
           "Authorization": "Bearer <YOUR_AQARA_API_KEY>"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • An Aqara account with registered smart devices. - An application that supports remote MCP, such as Cursor or Codex App. - Aqara Agent credentials: aqara_api_key and aqara_mcp_url from the login page.
VariableDescriptionRequired
AQARA_API_KEYCredential the server authenticates with.Yes
YOUR_AQARA_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Aqara to Scenes.
  • Use Aqara to Automations.
  • Use Aqara to Firmware.

Frequently asked questions

It connects Aqara to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Scenes, Automations, Firmware, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Aqara directly.