MCPSERV.CLUB
MCP-Mirror

Google Home MCP Server

MCP Server

Control Google Home smart plugs via Smart Home API

Stale(50)
0stars
0views
Updated Jan 14, 2025

About

An MCP server that discovers, queries, and controls Google Home smart plugs using OAuth2 authentication with the Smart Home API.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Google Home MCP Server Overview

The Google Home MCP Server bridges the gap between AI assistants and physical Google Home smart plugs by exposing a set of well‑defined tools that mirror the Smart Home API’s capabilities. It solves the common developer pain point of having to write custom OAuth flows, device discovery logic, and state management for each new smart plug integration. Instead of building these pieces from scratch, developers can deploy this server and let Claude (or any MCP‑compatible assistant) call high‑level actions such as list_smart_plugs or control_smart_plug. This eliminates boilerplate code, guarantees consistent error handling, and provides a single source of truth for device states across all AI conversations.

At its core, the server implements the three mandatory intents of Google’s Smart Home ecosystem: SYNC, QUERY, and EXECUTE. When a user links their Google account, the SYNC intent reports every plug discovered in the project and its supported capabilities (on/off, online status). Subsequent QUERY intents return real‑time state information, while EXECUTE intents perform the actual on/off command. By wrapping these intents in MCP tools, developers can expose them to AI assistants without worrying about the underlying HTTP handling or OAuth token refresh logic. The server’s automatic device state refresh keeps the assistant’s knowledge up to date, ensuring that commands are always executed against the current reality of the plug.

Key features include:

  • Device discovery and state reporting: List all plugs, including name, ID, power state, and connectivity status.
  • Command execution: Toggle a plug on or off with a single tool call, receiving confirmation of success and the updated state.
  • Real‑time querying: Retrieve the exact status of a specific plug on demand.
  • Robust error handling: Clear, structured errors such as or help assistants surface meaningful messages to users.
  • Secure integration: OAuth 2.0 flows, HTTPS enforcement, and input sanitization protect both the server and the user’s devices.

Real‑world scenarios benefit from this server include home automation scripts where an assistant can say, “Turn off the living room lamp,” and the MCP server translates that into a Google Home API call, returning confirmation. It also supports monitoring use cases: an assistant can periodically query plug states and trigger alerts if a device remains powered on during off‑hours. For developers, the server can be deployed behind an existing backend or as a lightweight microservice, making it easy to integrate into CI/CD pipelines or serverless environments. By providing a standardized MCP interface, the Google Home MCP Server enables rapid prototyping and reliable production deployments of smart plug control within AI‑powered applications.