Skip to main content
Glama

Mem0 MCP Server

Official
by mem0ai

コーディング設定を管理するためのMem0を備えたMCPサーバー

これは、 mem0を備えたMCPサーバーを使用してコーディング設定を効率的に管理するための構造化されたアプローチを示しています。このサーバーは Cursor と組み合わせて使用でき、コーディング設定の保存、取得、検索に不可欠なツールを提供します。

インストール

  1. このリポジトリをクローンする
  2. uv環境を初期化します。
uv venv
  1. 仮想環境をアクティブ化します。
source .venv/bin/activate
  1. uvを使用して依存関係をインストールします。
# Install in editable mode from pyproject.toml uv pip install -e .
  1. ルート ディレクトリの.envファイルを mem0 API キーで更新します。
MEM0_API_KEY=your_api_key_here

使用法

  1. MCP サーバーを起動します。
uv run main.py
  1. カーソルで SSE エンドポイントに接続し、次のドキュメントを参照してください。
http://0.0.0.0:8080/sse
  1. カーソルで Composer を開き、 Agentモードに切り替えます。

カーソル付きデモ

https://github.com/user-attachments/assets/56670550-fb11-4850-9905-692d3496231c

特徴

サーバーは、コード設定を管理するための 3 つの主なツールを提供します。

  1. add_coding_preference : コード スニペット、実装の詳細、コーディング パターンを、次のような包括的なコンテキストとともに保存します。
    • 依存関係のある完全なコード
    • 言語/フレームワークのバージョン
    • セットアップ手順
    • ドキュメントとコメント
    • 使用例
    • ベストプラクティス
  2. get_all_coding_preferences : 保存されているすべてのコーディング設定を取得して、パターンを分析し、実装を確認し、関連情報が見落とされていないことを確認します。
  3. search_coding_preferences : 保存されたコーディング設定を意味的に検索して、関連するものを検索します。
    • コード実装
    • プログラミングソリューション
    • ベストプラクティス
    • セットアップガイド
    • 技術文書

なぜ?

この実装により、MCP経由でアクセスできる永続的なコーディング設定システムが可能になります。SSEベースのサーバーはプロセスとして実行され、エージェントは必要に応じて接続、使用、切断できます。このパターンは、サーバーとクライアントを異なるノード上の分離プロセスとして扱える「クラウドネイティブ」なユースケースに適しています。

サーバ

デフォルトでは、サーバーは 0.0.0.0:8080 で実行されますが、次のようなコマンドライン引数で構成可能です。

uv run main.py --host <your host> --port <your port>

サーバーは、MCP クライアントがコーディング設定管理ツールにアクセスするために接続できる SSE エンドポイントを/sseで公開します。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

mem0.ai と統合された MCP サーバーは、ユーザーがコーディング設定を保存、取得、検索して、より一貫性のあるプログラミング プラクティスを実現できるようにします。

  1. インストール
    1. 使用法
      1. カーソル付きデモ
        1. 特徴
          1. なぜ?
            1. サーバ

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A MCP server for managing and storing code snippets in various programming languages, allowing users to create, list, and delete snippets via a standardized interface.
            Last updated -
            3
            4
            JavaScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
            Last updated -
            179
            Python
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
            Last updated -
            10
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            A MCP server that allows AI assistants to interact with the browser, including getting page content as markdown, modifying page styles, and searching browser history.
            Last updated -
            5
            TypeScript

          View all related MCP servers

          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/mem0ai/mem0-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server