st-mcpserver
Provides tools for interacting with SmartThings, including retrieving rooms and devices, fetching device status and history, getting hub time, and concurrently executing commands on multiple devices.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
st-mcpserver
This project provides a small Model Context Protocol server exposing a few SmartThings helper tools.
"mcpServers": {
"SmartThings": {
"type": "sse",
"command": "uv",
"args": [
"run",
"src/server.py"
],
"env": {
"TOKEN": "Your Token"
}
}
}
docker启动
{
"mcpServers": {
"smartthings": {
"disabled": false,
"timeout": 60,
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TOKEN=Your token",
"smartthings-mcp"
]
}
}
}
uv启动
{
"mcpServers": {
"smartthings": {
"command": "/Users/wanghao/.pyenv/shims/uv",
"args": [
"run",
"--python", "3.12.11",
"--index-url", "https://test.pypi.org/simple/",
"--extra-index-url", "https://pypi.org/simple/",
"--with", "st-mcpserver",
"smartthings-mcp-server"
],
"env": {
"TOKEN": "56485136-4bdc-44dc-90c6-31e5e565f37f"
}
}
}
}Docker
A Dockerfile is included for convenience. Build and run the image with:
docker build -t st-mcpserver .
docker run -e TOKEN=bea73953-3d65-4b2b-8147-997d3ea80e29 st-mcpserverThe container installs the production dependencies using uv and launches the server with uv run src/server.py.
Related MCP server: SmartThings MCP Server
Available tools
The server exposes the following MCP tools:
get_rooms– return a mapping of room UUIDs to names.get_devices– list devices with optional filtering.get_device_status– fetch status for a device by UUID.execute_commands– 并发执行多个设备命令 (异步, 5-10x 性能提升)get_device_history– query historical data with time aggregation.get_hub_time– get current hub time.
并发执行命令
使用 httpx + asyncio 异步并发执行,10 设备从 3 秒降至 300ms。
请求格式
{
"token": "your-token",
"device_commands": [
{
"device_id": "device-uuid",
"commands": [{"component": "main", "capability": "switch", "command": "on"}]
}
]
}返回格式
[
{"device_id": "device-uuid", "result": {...}},
{"device_id": "device-uuid", "error": "..."}
]Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control and query Heiman smart home devices: lights, AC, curtains, climate, logs and scenes.
Query and update your synced HomeHero home inventory, locations, and upkeep tasks. Requires Sync.
Read RemoteLock devices and guests; manage door access and physically lock or unlock doors.
Read Status.io components, incidents, maintenance; post incidents, schedule maintenance, set status.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA lightweight server for Samsung SmartThings, offering tools to manage devices and rooms. Features include room mapping, device listing, status checks, and command execution. #IoT, #Python, #HomeAutomation #Smartthings5MIT
- FlicenseNot gradedqualityDmaintenanceEnables control and monitoring of SmartThings smart home devices through natural language, supporting switches, sensors, refrigerators, and other IoT devices with real-time status queries and command execution.-
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive interaction with SmartThings devices, locations, scenes, and automation rules through the SmartThings API. It features intelligent two-level caching and supports multiple transport options including HTTP, SSE, and STDIO.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying and managing SmartThings locations, devices, and rules through MCP tools, with security and confirmation safeguards.MIT