smarthome-port MCP Server
Home Assistant control: entity states, services, history, config, templates, and events.
smarthome-port scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 63 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cloudcorprecords-smarthome-port": { "command": "npx", "args": [ "-y", "@reneturcios/smarthome-port@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
smarthome-port
smarthome-port talks to a Home Assistant instance through its
REST API. Everything in Home Assistant is an entity —
light.kitchen, sensor.temp, switch.porch — and the API
reflects that shape: you read entity states, call services on a
domain (light.turn_on, switch.toggle), look back at recent
history, read the core configuration, render Jinja templates on
the server, and fire events onto the event bus. smarthome-port
exposes those six operations, plus listings of entities and
services, through one binary that serves a command-line interface
and a stdio MCP server.
Two settings are required, and there is no built-in default for either:
HOME_ASSISTANT_URL— the base URL of the instance, for examplehttp://homeassistant.local:8123. A trailing slash is stripped.HOME_ASSISTANT_TOKEN— a long-lived access token (create one in Home Assistant under your profile). It is sent as anAuthorization: Bearerheader and never appears in output.
When either variable is missing, every call fails with an error that names the missing variable, before any request is made.
Only the REST API is covered. The websocket API is not implemented.
Install
npx @reneturcios/smarthome-port entities
Or run the container image:
docker run -i -e HOME_ASSISTANT_URL -e HOME_ASSISTANT_TOKEN ghcr.io/cloudcorprecords/smarthome-port
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
CLI
export HOME_ASSISTANT_URL=http://homeassistant.local:8123
export HOME_ASSISTANT_TOKEN=<your long-lived access token>
smarthome-port entities
smarthome-port entities --domain light
smarthome-port state sensor.temp
smarthome-port call light turn_on --entity light.kitchen --data '{"brightness_pct":50}'
smarthome-port services
smarthome-port services --domain light
smarthome-port history sensor.temp --hours 6
smarthome-port config
smarthome-port render "{{ states('sensor.temp') }}"
smarthome-port fire my_event --data '{"device":"kitchen"}'
smarthome-port --version
Each command prints the upstream JSON payload (template rendering
prints {"rendered": "..."}). Exit codes: 0 on success, 1
when a call fails (including missing configuration or an API
error), 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/smarthome-port mcp
MCP client configuration:
{
"mcpServers": {
"smarthome-port": {
"command": "npx",
"args": ["-y", "@reneturcios/smarthome-port", "mcp"],
"env": {
"HOME_ASSISTANT_URL": "http://homeassistant.local:8123",
"HOME_ASSISTANT_TOKEN": "..."
}
}
}
}
Tools
| Tool | Input | What it returns |
|---|---|---|
list_entities | domain (optional) | Entity states, filtered client-side to one domain when given. |
get_entity_state | entity_id (required) | The full state of one entity. |
call_service | domain, service (required), entity_id, service_data (optional) | The service call result; service_data is merged with entity_id. |
list_services | domain (optional) | Services by domain, or only one domain's entry when given. |
get_history | entity_id (required), hours (optional, default 24) | Recent history for the entity over the window ending now. |
get_config | (none) | The core configuration. |
render_template | template (required) | {"rendered": "..."} — the upstream reply is plain text. |
fire_event | event_type (required), event_data (optional) | The upstream reply; event_data defaults to {}. |
All calls go to {HOME_ASSISTANT_URL}/api. An entity_id must
contain a dot (domain.object_id), and domain, service, and
event_type must be non-empty — both are checked before any
request. History timestamps are computed client-side from the
current time. HTTP failures surface the status plus the upstream
message when Home Assistant provides one.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsx
License
MIT — see LICENSE.
Frequently asked questions
What is smarthome-port MCP Server?
Home Assistant control: entity states, services, history, config, templates, and events.
How do I install smarthome-port MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. smarthome-port MCP Server runs locally from the npm package @reneturcios/smarthome-port with the command npx -y @reneturcios/smarthome-port@0.1.0.
Is smarthome-port MCP Server free and open source?
Yes. smarthome-port MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does smarthome-port MCP Server support remote (HTTP) connections?
No remote endpoint is listed for smarthome-port MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is smarthome-port MCP Server's trust score calculated?
smarthome-port MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.