Skip to main content
Glama

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

クイックスタート

  1. .env.example.env にコピーし、すべてのプレースホルダーを自分のプライベートな値に置き換えてください。.env をコミットしないでください。

  2. プライベートな Docker ネットワークを作成し、docker compose -f compose.example.yml up -d --build でサービスを起動してください。

  3. HTTPS で公開するのはこのゲートウェイだけにしてください。Mem0、PostgreSQL、設定済みの環境ファイルは公開しないでください。

  4. OAuth が有効な場合、保護リソースのメタデータが 200 を返し、匿名の /mcp リクエストが 401 を返すことを確認してください。

ツール

  • memo_search_memory

  • memo_remember_fact

設定

.env.example を参照してください。PUBLIC_MCP_URLMCP_ALLOWED_HOSTSMCP_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 を使用しています。

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Centralized agentic memory and MCP gateway for LLMs, enabling persistent memory recall, validation, and integration with upstream MCP servers.
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Bridges MCP to a self-hosted Mem0 OSS server, enabling memory management operations like adding, searching, updating, and deleting memories.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Self-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.
    3
    MIT

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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