Back to MCP directory
publicPublicdnsLocal runtime

server_mcp_automacao_residencial

一个专注于研究MCP服务器的家庭自动化项目,支持通过终端控制灯光、温度、门锁及查看状态。

article

README

🚀 家庭自动化MCP服务器

本项目聚焦于MCP服务器的研究,借助终端命令达成家庭设备的自动化控制,如灯光开关、温度调节、门锁控制等,为家庭生活带来便捷与智能体验。

🚀 快速开始

本项目可通过终端命令实现家庭设备的自动化控制。

✨ 主要特性

  • 多样化控制:通过终端命令,可实现开/关灯、调整温度、锁门/开锁以及查看整体状态等功能。

📚 详细文档

项目结构

mcp_server/
├── server.py              # 主服务器文件
├── processor/
│   ├── __init__.py        # 使包可导入的初始化文件
│   ├── commands.py        # 命令处理模块
│   ├── actions/
│   │   ├── __init__.py
│   │   ├── lights.py      # 灯光控制命令
│   │   ├── door.py        # 门锁控制命令
│   │   └── temperature.py # 温度调整命令
├── client.py              # 测试用客户端
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client