memo-mcp
memo-mcp
memo-mcp は、プライベートなセルフホスト型 Mem0 REST API のための、保護された Streamable HTTP MCP ゲートウェイです。Mem0、PostgreSQL、内部 API 認証情報を公開ネットワークに漏らすことなく、小規模で非破壊的なメモリツールのサーフェスを提供します。
これは 1つの信頼されたメモリスコープ のための参照実装です。複数人に使用させる前に、認証済みメンバーシップからメモリスコープを導出するサーバーサイドのポリシーアダプターを統合してください。ブラウザまたは MCP クライアントに MEMORY_SCOPE を選択させてはなりません。
セキュリティモデル
Mem0 はプライベートに保ち、リバースプロキシ経由でこのゲートウェイのみを公開します。
ブラウザ以外のクライアントは、専用の取り消し可能なベアラートークンを使用します。
ブラウザクライアントは、発行者、オーディエンス、不変なサブジェクト、スコープを厳密に検証する OAuth/OIDC トークンイントロスペクションを使用できます。
memo_remember_factには、OAuth クライアントでmem0.writeが必要です。ゲートウェイは意図的にメモリ削除ツールを提供しません。削除は、明示的な承認を伴う別のプライベート管理ワークフローで行ってください。
ゲートウェイは、一般的な認証情報や秘密鍵の形式を、メモリに書き込まれる前に拒否します。これはセーフティネットであり、運用者のポリシーを置き換えるものではありません。
呼び出し元が自分のメモリスコープを選択することは決してできません。マルチユーザー環境では、信頼できるアプリケーションがサーバーサイドのメンバーシップからそのスコープを導出しなければなりません。
Related MCP server: memex
クイックスタート
.env.exampleを.envにコピーし、すべてのプレースホルダーを自分のプライベートな値に置き換えてください。.envをコミットしないでください。プライベートな Docker ネットワークを作成し、
docker compose -f compose.example.yml up -d --buildでサービスを起動してください。HTTPS で公開するのはこのゲートウェイだけにしてください。Mem0、PostgreSQL、設定済みの環境ファイルは公開しないでください。
OAuth が有効な場合、保護リソースのメタデータが
200を返し、匿名の/mcpリクエストが401を返すことを確認してください。
ツール
memo_search_memorymemo_remember_fact
設定
.env.example を参照してください。PUBLIC_MCP_URL、MCP_ALLOWED_HOSTS、MCP_ALLOWED_ORIGINS はそれぞれ、あなた自身の HTTPS エンドポイントを表すように設定してください。ゲートウェイは基盤の Mem0 API を X-API-Key で呼び出します。
MCP_ALLOWED_HOSTS は必須です。コンテナのビルドコンテキストでは、.env、Git メタデータ、ローカル Python 成果物が除外されるため、それらがイメージに誤ってコピーされることはありません。
開発
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python -m unittest discover -s tests -vこのプロジェクトは、ラージな 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