memo-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
memo-mcp
memo-mcp is a guarded Streamable HTTP MCP gateway for a private, self-hosted
Mem0 REST API. It exposes a small, non-destructive memory-tool surface while
keeping Mem0, PostgreSQL and internal API credentials off the public network.
It is designed as a reference implementation for one trusted memory scope.
Before allowing multiple people to use it, integrate a server-side policy
adapter that derives the memory scope from authenticated membership. Never let
a browser or MCP client choose MEMORY_SCOPE.
Security model
Mem0 remains private; expose only this gateway through a reverse proxy.
Non-browser clients use a distinct, revocable bearer token.
Browser clients can use OAuth/OIDC token introspection with exact issuer, audience, immutable subject and scope checks.
memo_remember_factrequiresmem0.writefor OAuth clients.The gateway deliberately provides no memory-deletion tool. Perform deletion through a separate, private administrative workflow with explicit approval.
The gateway rejects common credential and private-key formats before they can be written to memory. This is a safety net, not a replacement for operator policy.
A caller must never select its own memory scope. In multi-user deployments, a trusted application must derive that scope from server-side membership.
Related MCP server: memex
Quick start
Copy
.env.exampleto.envand replace every placeholder with your own private values. Do not commit.env.Create a private Docker network and start the service with
docker compose -f compose.example.yml up -d --build.Route only the gateway through HTTPS. Do not publish Mem0, PostgreSQL or any populated environment file.
Verify that the protected-resource metadata returns
200when OAuth is enabled and that an anonymous/mcprequest returns401.
Tools
memo_search_memorymemo_remember_fact
Configuration
See .env.example. PUBLIC_MCP_URL, MCP_ALLOWED_HOSTS, and
MCP_ALLOWED_ORIGINS must describe your own HTTPS endpoint. The gateway calls
the underlying Mem0 API using X-API-Key.
MCP_ALLOWED_HOSTS is mandatory. The container build context excludes .env,
Git metadata, and local Python artifacts so they cannot be copied to an image
by accident.
Development
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python -m unittest discover -s tests -vThis project uses the official Python MCP SDK.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
MCP gateway and cloud hosting for MCP servers, agents and apps like RAG, managed from your agent.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn HTTP MCP gateway that wraps the mempalace Python CLI, enabling per-user memory palaces for storing and retrieving personal data.MIT
- AlicenseNot gradedqualityCmaintenanceCentralized agentic memory and MCP gateway for LLMs, enabling persistent memory recall, validation, and integration with upstream MCP servers.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceBridges MCP to a self-hosted Mem0 OSS server, enabling memory management operations like adding, searching, updating, and deleting memories.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server wrapping a self-hosted mem0 REST API, enabling memory management with deduplication and mention-aware reranked search.MIT