Openmemory Fastmcp
FastMCP-based OpenMemory server with Tailscale integration - replaces SSE with HTTP streaming transport
Ask AI about Openmemory Fastmcp
Powered by Claude Β· Grounded in docs
I know everything about Openmemory Fastmcp. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
OpenMemory FastMCP Server with Tailscale Integration
A FastMCP-based implementation of the OpenMemory server that replaces SSE (Server-Sent Events) with HTTP streaming transport, deployed as a Docker container with Tailscale network integration.
Overview
This project reimplements the mem0 OpenMemory MCP server using FastMCP's HTTP streaming transport, providing:
- HTTP Streaming: More reliable than SSE with better browser and proxy support
- Tailscale Integration: Secure remote access without port forwarding
- Docker Deployment: Easy containerized deployment with all dependencies
- Full mem0 Compatibility: All memory management features preserved
Features
- β Add memories with automatic categorization
- β Search memories using vector similarity
- β List all user memories with permission filtering
- β Delete memories with audit logging
- β Multi-tenancy support (users and apps)
- β Qdrant vector database integration
- β Support for OpenAI, Anthropic, and Ollama models
Architecture
βββββββββββββββββββ ββββββββββββββββββββ
β MCP Client ββββββΆβ Tailscale Net β
βββββββββββββββββββ ββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β OpenMemory Server β
β (FastMCP HTTP) β
βββββββββββββββββββββββ
β
ββββββββββββ΄βββββββββββ
βΌ βΌ
ββββββββββββββββ ββββββββββββββββ
β Qdrant β β SQLite β
β Vector Store β β Database β
ββββββββββββββββ ββββββββββββββββ
Quick Start
Prerequisites
- Docker and Docker Compose
- Python 3.11+
- Tailscale account (for remote access)
- OpenAI API key (or Anthropic API key)
Installation
- Clone the repository:
git clone https://github.com/artur-nohup/openmemory-fastmcp.git
cd openmemory-fastmcp
- Create environment file:
cp .env.example .env
# Edit .env with your API keys and Tailscale auth key
- Deploy the server:
./scripts/deploy.sh
Connection Methods
Local Access
from fastmcp import Client
async with Client("http://localhost:8765/mcp") as client:
await client.call_tool("add_memories", {
"text": "I prefer dark mode",
"user_id": "john_doe",
"client_name": "my_app"
})
Tailscale Access
# From anywhere in your Tailscale network
async with Client("http://openmemory-server:8765/mcp") as client:
# Same API as local access
...
MCP Tools
add_memories
Add new memories to the system.
Arguments:
text(str): The text to rememberuser_id(str, optional): User identifierclient_name(str, optional): Application identifier
search_memory
Search through stored memories using semantic similarity.
list_memories
List all memories for a user.
delete_all_memories
Delete all accessible memories for a user.
Testing
Run the test suite:
python testing/test_comprehensive.py
Monitoring
# View all services
docker-compose ps
# View logs
docker logs openmemory-fastmcp
License
This project is based on the mem0 OpenMemory implementation.
Acknowledgments
- mem0ai for the original OpenMemory implementation
- FastMCP for the improved MCP framework
- Tailscale for secure networking
π€ Generated with Claude Code
