IoTとメモリ管理のためのMCPサーバー
このリポジトリには、2 つのモデル コンテキスト プロトコル (MCP) サーバーが含まれています。
IoTデバイス制御MCPサーバー
メモリ管理MCPサーバー
IoTデバイス制御MCPサーバー
スマート ライト、センサー、その他の接続デバイスなどの IoT デバイスを制御および監視するためのモデル コンテキスト プロトコル (MCP) サーバー。
目的
このサーバーは、モデル コンテキスト プロトコルを通じて IoT デバイスの制御、監視、および状態管理のための標準化されたインターフェースを提供します。
ユースケース
ホームオートメーション
産業用IoT監視
リモートデバイス管理
スマートビル制御システム
特徴
IoTデバイスにコマンドを送信する
デバイスの状態とステータスを照会する
リアルタイムデバイスアップデートを購読する
MQTTプロトコルのサポート
APIツール
send_command
: IoTデバイスにコマンドを送信するget_device_state
: IoTデバイスの現在の状態を取得するsubscribe_to_updates
: デバイスからのリアルタイム更新を購読する
メモリ管理MCPサーバー
Mem0 フレームワークを使用して永続メモリを保存および取得するためのモデル コンテキスト プロトコル (MCP) サーバー。
目的
このサーバーは、モデル コンテキスト プロトコルを通じて長期メモリ ストレージとセマンティック検索機能を実現します。
ユースケース
会話履歴の保存
ナレッジマネジメント
AIアプリケーションにおけるコンテキスト認識
永続的な情報ストレージ
特徴
情報を長期記憶に保存する
保存されたすべての記憶を取得する
セマンティック検索で記憶を検索する
APIツール
save_memory
: 情報を長期記憶に保存するget_all_memories
: ユーザーの保存されているすべてのメモリを取得します。search_memories
: セマンティック検索を使用して記憶を検索する
はじめる
このリポジトリをクローンする
依存関係をインストールします:
pip install -r requirements.txt
.env.example
テンプレートに基づいて.env
ファイルを作成するIoTサーバーを実行します:
python iot_mcp_server.py
メモリサーバーを実行します:
python memory_mcp_server.py
環境変数
IoT 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
- IoTデバイス制御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.
IoT デバイスを制御し、セマンティック検索機能を使用して永続メモリ ストレージを管理できるようにする 2 つのモデル コンテキスト プロトコル サーバーを提供します。
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