memo-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memo-mcpremember that I prefer morning meetings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceBridges MCP to a self-hosted Mem0 OSS server, enabling memory management operations like adding, searching, updating, and deleting memories.MIT
- AlicenseNot gradedqualityDmaintenanceSelf-hosted service providing unified memory search and write operations across file-based memory, vector embeddings, and the Graphiti temporal knowledge graph, accessible via HTTP API or MCP stdio transport.3MIT
Related MCP Connectors
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yevhenbatt/memo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server