用于物联网和内存管理的 MCP 服务器
该存储库包含两个模型上下文协议(MCP)服务器:
IoT 设备控制 MCP 服务器
内存管理 MCP 服务器
IoT 设备控制 MCP 服务器
用于控制和监控物联网设备(如智能灯、传感器和其他连接设备)的模型上下文协议 (MCP) 服务器。
目的
该服务器通过模型上下文协议为物联网设备控制、监控和状态管理提供标准化接口。
用例
家庭自动化
工业物联网监控
远程设备管理
智能建筑控制系统
特征
向物联网设备发送命令
查询设备状态和状况
订阅实时设备更新
支持MQTT协议
API 工具
send_command
:向 IoT 设备发送命令get_device_state
:获取物联网设备的当前状态subscribe_to_updates
:订阅设备的实时更新
内存管理 MCP 服务器
使用 Mem0 框架进行持久内存存储和检索的模型上下文协议 (MCP) 服务器。
目的
该服务器通过模型上下文协议实现长期记忆存储和语义搜索功能。
用例
对话历史记录存储
知识管理
人工智能应用中的情境感知
持久信息存储
特征
将信息保存到长期记忆中
检索所有存储的记忆
使用语义搜索来搜索记忆
API 工具
save_memory
:将信息保存到长期记忆中get_all_memories
:获取用户存储的所有记忆search_memories
:使用语义搜索来搜索记忆
入门
克隆此存储库
安装依赖项:
pip install -r requirements.txt
根据
.env.example
模板创建.env
文件运行物联网服务器:
python iot_mcp_server.py
运行内存服务器:
python memory_mcp_server.py
环境变量
物联网 MCP 服务器
MQTT_BROKER
:MQTT 代理地址(默认值:“localhost”)MQTT_PORT
:MQTT 代理端口(默认值:1883)HOST
:服务器主机地址(默认值:“0.0.0.0”)PORT
:服务器端口(默认值:“8090”)TRANSPORT
:传输类型,“sse”或“stdio”(默认值:“sse”)
内存 MCP 服务器
MEM0_API_KEY
:Mem0 服务的 API 密钥(可选)MEM0_ENDPOINT
:Mem0 服务的端点 URL(默认值:“ https://api.mem0.ai ”)HOST
:服务器主机地址(默认值:“0.0.0.0”)PORT
:服务器端口(默认值:“8050”)TRANSPORT
:传输类型,“sse”或“stdio”(默认值:“sse”)
存储库结构
iot_mcp_server.py
- 物联网设备控制 MCP 服务器实现memory_mcp_server.py
- 内存管理 MCP 服务器实现utils.py
- 服务器使用的实用函数requirements.txt
- 包依赖项.env.example
- 环境变量配置模板README.md
- 文档
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
提供两个模型上下文协议服务器,支持控制物联网设备并管理具有语义搜索功能的持久性内存存储。
Related MCP Servers
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -331
- -securityAlicense-qualityA Model Context Protocol server that integrates AI assistants with Mem0.ai's persistent memory system, allowing models to store, retrieve, search, and manage different types of memories.Last updated -12MIT License
- -securityAlicense-qualityA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.Last updated -09MIT License
- AsecurityFlicenseAqualityA collection of Model Context Protocol servers providing advanced capabilities for AI assistants including professional accuracy enforcement, tool safety protocols, user preference management, and intelligent context monitoring.Last updated -5