A Home Assistant add-on that provides an AI memory service using the Model Context Protocol (MCP). This allows AI agents to store and retrieve persistent memories through a simple HTTP API.
The MCP Memory Service enables AI agents to maintain context and memory across conversations and sessions. It's perfect for:
- ๐ค AI Assistants - Remember user preferences and past interactions
- ๐ฌ Chatbots - Maintain conversation context over time
- ๐ Automation - Store and recall state information
- ๐ Knowledge Base - Build a searchable memory database
- โ RESTful HTTP API for easy integration
- ๐ Optional API key authentication
- ๐ CORS support for web applications
- ๐พ Persistent storage in Home Assistant
- ๐๏ธ Multi-architecture support (ARM, x64, etc.)
- ๐ Health monitoring and logging
- ๐ Search and filtering capabilities
-
Add this repository to Home Assistant:
- Supervisor โ Add-on Store โ โฎ โ Repositories
- Add:
https://github.com/swingerman/ha-mcp-memory-addon
-
Install the MCP Memory Service add-on
-
Configure and start the add-on
See Installation Guide for detailed instructions.
- Install and start the add-on
- Test the service:
curl http://homeassistant:8080/health
- Store a memory:
curl -X POST http://homeassistant:8080/memory/store \ -H "Content-Type: application/json" \ -d '{"content": "User prefers morning meetings"}'
- Search memories:
curl "http://homeassistant:8080/memory/search?query=meeting"
log_level: info
storage_path: "/data"
cors_enabled: true
api_key: "" # Optional authenticationSee API Documentation for complete endpoint reference.
Access your memory service from anywhere:
- Port Forwarding: Forward port 8080 to your HA instance
- Reverse Proxy: Use Nginx Proxy Manager (recommended)
- VPN: Access through your Home Assistant VPN
-
Clone the repository:
git clone https://github.com/swingerman/ha-mcp-memory-addon.git cd ha-mcp-memory-addon -
Build and test locally (requires Home Assistant build environment):
# Note: This requires the Home Assistant add-on build system # For local testing, install the add-on in Home Assistant
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
- ๐ Documentation: Installation | API Reference
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
MIT License - see the LICENSE file for details.
- Based on the MCP Memory Service
- Built for the Model Context Protocol
- Home Assistant add-on framework
Home Assistant add-on for hosting MCP Memory Service with HTTP API