{
  "markdown": "# SmartRent MCP\n\n<!-- mcp-name: io.github.Evin009/smartrent-mcp -->\n\n[![PyPI version](https://img.shields.io/pypi/v/smartrent-mcp.svg)](https://pypi.org/project/smartrent-mcp/)\n[![Python versions](https://img.shields.io/pypi/pyversions/smartrent-mcp.svg)](https://pypi.org/project/smartrent-mcp/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nAn [MCP](https://modelcontextprotocol.io) (Model Context Protocol) server that lets Claude control your [SmartRent](https://smartrent.com) smart home devices — locks, thermostat, light switches, and sensors — through natural conversation.\n\n```\nYou: \"Turn off the kitchen lights and lock the front door\"\nClaude: \"Kitchen turned off. Front Door - Lock is now locked.\"\n```\n\n---\n\n## Table of Contents\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Setup — Claude Desktop](#setup--claude-desktop)\n- [Setup — Claude Web](#setup--claude-web)\n- [Available Tools](#available-tools)\n- [Self-Hosting (Remote / SSE mode)](#self-hosting-remote--sse-mode)\n- [Troubleshooting](#troubleshooting)\n- [Security](#security)\n- [Built With](#built-with)\n- [License](#license)\n\n---\n\n## Requirements\n\n- A SmartRent account with devices already set up in the SmartRent app (this only works if your building/home uses SmartRent hardware — front door locks, thermostats, switches, or sensors)\n- Python 3.10+\n- Either [`uv`](https://docs.astral.sh/uv/) **or** `pip` — you likely already have one of these\n\n---\n\n## Installation\n\n**Option A — using `uv` (recommended, no separate install step)**\n\nIf you don't have `uv` yet, install it once:\n\n```bash\n# Mac/Linux\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n\n# Windows (PowerShell)\npowershell -ExecutionPolicy ByPass -c \"irm https://astral.sh/uv/install.ps1 | iex\"\n```\n\nThat's it — `uvx` will download and run the package automatically the first time Claude needs it. No manual `install` command required.\n\n**Option B — using plain `pip`**\n\n```bash\npip install smartrent-mcp\n```\n\n---\n\n## Setup — Claude Desktop\n\n### 1. Open your Claude Desktop config file\n\n- **Mac:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\n### 2. Add the server entry\n\n**If you installed via `uv` (Option A):**\n\n```json\n{\n  \"mcpServers\": {\n    \"smartrent-mcp\": {\n      \"command\": \"uvx\",\n      \"args\": [\"smartrent-mcp\"],\n      \"env\": {\n        \"SMARTRENT_EMAIL\": \"your_smartrent_email\",\n        \"SMARTRENT_PASSWORD\": \"your_smartrent_password\"\n      }\n    }\n  }\n}\n```\n\n**If you installed via `pip` (Option B):**\n\n```json\n{\n  \"mcpServers\": {\n    \"smartrent-mcp\": {\n      \"command\": \"smartrent-mcp\",\n      \"env\": {\n        \"SMARTRENT_EMAIL\": \"your_smartrent_email\",\n        \"SMARTRENT_PASSWORD\": \"your_smartrent_password\"\n      }\n    }\n  }\n}\n```\n\nIf you already have other servers under `\"mcpServers\"`, just add `\"smartrent-mcp\"` as another entry — don't replace the existing ones.\n\n### 3. Restart Claude Desktop\n\nFully quit the app (Cmd+Q on Mac, or right-click the tray icon and Quit on Windows) and reopen it. Closing the window alone is not enough.\n\n### 4. Try it\n\nAsk Claude:\n\n- *\"What's the status of my home?\"*\n- *\"Turn on the kitchen lights\"*\n- *\"Lock the front door\"*\n- *\"Set temperature to 72 cool mode\"*\n\n---\n\n## Setup — Claude Web\n\nClaude Web only connects to **remote** MCP servers over a URL — it cannot run local commands like `uvx`. To use this server with Claude Web, you need to self-host a remote instance. See [Self-Hosting](#self-hosting-remote--sse-mode) below, then add your deployed URL in Claude Web → Settings → MCP Servers.\n\n---\n\n## Available Tools\n\n| Tool | Description | Parameters |\n|---|---|---|\n| `ping` | Test that the server is alive | none |\n| `get_device_status` | Read the status of all devices — locks, thermostat, switches, sensors | none |\n| `switch_control` | Turn a light switch on or off | `name` (e.g. `\"kitchen\"`), `action` (`\"on\"` / `\"off\"`) |\n| `lock_door` | Lock or unlock the front door | `action` (`\"lock\"` / `\"unlock\"`) |\n| `set_temperature` | Set thermostat temperature, mode, and unit | `temperature` (int), `mode` (`\"cool\"` / `\"heat\"` / `\"auto\"` / `\"off\"`, default `\"cool\"`), `unit` (`\"F\"` / `\"C\"`, default `\"F\"`) |\n\nDevice matching is partial and case-insensitive — `\"dining\"` will match a switch named `\"Dining Room\"`.\n\n---\n\n## Self-Hosting (Remote / SSE mode)\n\nBy default this package runs in **stdio mode** for local use with Claude Desktop. To run it as a remote, always-on server (for Claude Web or shared use), set the `TRANSPORT` environment variable:\n\n```bash\nTRANSPORT=sse SMARTRENT_EMAIL=you@example.com SMARTRENT_PASSWORD=yourpassword smartrent-mcp\n```\n\nThis starts an HTTP/SSE server (default port `8000`, override with `PORT`). Deploy it anywhere that runs Python — Railway, Render, Fly.io, etc. — with these environment variables set:\n\n| Variable | Required | Description |\n|---|---|---|\n| `SMARTRENT_EMAIL` | Yes | Your SmartRent account email |\n| `SMARTRENT_PASSWORD` | Yes | Your SmartRent account password |\n| `TRANSPORT` | No | `stdio` (default) or `sse` |\n| `PORT` | No | Port to listen on in `sse` mode (default `8000`) |\n\nOnce deployed, connect to it at `https://your-deployment-url/sse`.\n\n---\n\n## Troubleshooting\n\n**\"Invalid Host header\" or connection refused on a remote deployment**\nThe server disables DNS rebinding protection by default to support remote access. If you've changed this, make sure `TransportSecuritySettings(enable_dns_rebinding_protection=False)` is set in `server.py`.\n\n**Claude Desktop doesn't show any tools**\nMake sure you fully quit and restarted the app (not just closed the window). Check the MCP logs:\n- Mac: `~/Library/Logs/Claude/mcp-server-smartrent-mcp.log`\n- Windows: `%APPDATA%\\Claude\\logs\\mcp-server-smartrent-mcp.log`\n\n**\"Username or password was wrong\"**\nVerify your SmartRent credentials work by logging into the SmartRent mobile app with the same email/password.\n\n**\"No switch/lock/thermostat found on this account\"**\nYour SmartRent account needs the corresponding device type already set up in the SmartRent app.\n\n---\n\n## Security\n\nYour SmartRent credentials are passed as environment variables directly to the server process and are never sent anywhere except SmartRent's own login API. They are not logged or stored by this package.\n\nIf you're self-hosting in `sse` mode, anyone with your server's URL can control your home — there is currently no authentication layer on remote mode. Keep your deployment URL private, or restrict network access to it.\n\n---\n\n## Built With\n\n- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)\n- [smartrent-py](https://github.com/ZacheryThomas/smartrent-py)\n- [uv](https://docs.astral.sh/uv/)\n\n## License\n\nMIT\n",
  "bytes": 6756,
  "sha": "4debc8e1d4ca9332228b7549292cd1a549837a0735e06724d5920a9e0a7e469b",
  "repo_slug": "evin009/smartrent-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_evin009_smartrent_mcp_63bd8a25/readme"
}