MCP.so
Sign In
Servers

MCP Servers for IoT and Memory Management

@jordy33

IoT Model Context Protocol Server Repository

Overview

What is MCP Servers for IoT and Memory Management?

This repository provides two Model Context Protocol (MCP) servers: one for controlling and monitoring IoT devices (smart lights, sensors, etc.) and another for persistent memory storage and retrieval using the Mem0 framework.

How to use MCP Servers for IoT and Memory Management?

Clone the repository, install dependencies with pip install -r requirements.txt, create a .env file from the .env.example template, then run the IoT server with python iot_mcp_server.py and the memory server with python memory_mcp_server.py. Configure environment variables for MQTT broker, ports, and Mem0 API key as needed.

Key features of MCP Servers for IoT and Memory Management

  • Send commands to IoT devices and query their state
  • Subscribe to real-time device updates via MQTT
  • Save and retrieve long-term memory items
  • Search memories using semantic search
  • Support for SSE or stdio transport protocols

Use cases of MCP Servers for IoT and Memory Management

  • Home automation: control lights, sensors, and smart devices
  • Industrial IoT monitoring and remote device management
  • Smart building control systems
  • Conversation history storage and knowledge management
  • Persistent information storage for AI applications with contextual awareness

FAQ from MCP Servers for IoT and Memory Management

What transport types are supported?

Both servers support "sse" (Server-Sent Events) and "stdio" as transport types, configured via the TRANSPORT environment variable (default is "sse").

What MQTT configuration is needed for the IoT server?

The IoT server requires an MQTT broker. Set MQTT_BROKER (default "localhost") and MQTT_PORT (default 1883) in the .env file.

Do I need an API key for the memory server?

The MEM0_API_KEY is optional. If not provided, the server will use the default Mem0 endpoint (https://api.mem0.ai).

How do I run each server individually?

Run python iot_mcp_server.py for the IoT server and python memory_mcp_server.py for the memory server. A .env file must be present in the repository root.

What are the default ports?

The IoT server defaults to port 8090; the memory server defaults to port 8050. Both can be overridden with PORT in the .env file.

More from Memory & Knowledge