
firstbatchxyz/mem-agent-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MEM-агент MCP сервер
Обзор
Это MCP-сервер для нашей модели driaforall/mem-agent, который можно подключить к приложениям вроде Claude Desktop или Lm Studio для взаимодействия с системой памяти, похожей на обсидиан. - macOS (Metal backend) — Linux (с GPU, vLLM-бэкендом) - На ARM64 Linux vLLM по умолчанию не устанавливается, чтобы избежать сбоев сборки (стабильные колеса и сборки исходного кода не могут выйти). - Установка будет успешной без vLLM; вы можете: - Использовать путь по умолчанию OpenRouter/OpenAI (без необходимости локального vLLM), или - Запустить vLLM на совместимом x86_64 хосте и направить клиента на него (см. agent/model.py create_vllm_client). - Если у вас локально работает прокси LiteLLM (например, на порте 4000), настройте клиент через .env: - Затем используйте один из этих вариантов: - CLI: make chat-cli - MCP over STDIO: make serve-mcp - MCP over HTTP: make serve-mcp-http Примечание: на ARM64 Linux рекомендуется использовать такую конфигурацию вместо vLLM. 1. Сделайте check-uv (если у вас установлен UV, пропустите этот шаг). 2. Make install: Устанавливает LmStudio на MacOS. 3.
Обзор (машинный перевод)
Это MCP-сервер для нашей модели driaforall/mem-agent, который можно подключить к приложениям вроде Claude Desktop или Lm Studio для взаимодействия с системой памяти, похожей на обсидиан.
Поддерживаемые платформы
- macOS (металлический бэкенд)
- Linux (с GPU, vLLM-бэкендом)
Примечание по платформе: aarch64 (ARM64) Linux
- На ARM64 Linux vLLM по умолчанию не устанавливается, чтобы избежать сбоев сборки (стабильные колёса и исходные сборки не могут отказаться).
- Установка будет успешной без vLLM; вы можете:
- Использовать стандартный путь OpenRouter/OpenAI (не требуется локальный vLLM), или
- Запустить vLLM на совместимом x86_64-хосте и направить клиента на него (см. agent/model.py create_vllm_client).
Инструкции по запуску
Использование прокси LiteLLM (совместимого с OpenAI)
-
Если у вас локально работает прокси LiteLLM (например, на порте 4000), настройте клиент через .env:
-
Проверка связи:
-
Затем используйте один из этих вариантов:
-
CLI:
make chat-cli -
MCP по STDIO:
make serve-mcp -
MCP по HTTP:
make serve-mcp-http
Примечание: на ARM64 Linux рекомендуется использовать такую конфигурацию вместо vLLM.
make check-uv(если у вас установлен UV, пропустите этот шаг).make install: устанавливает LmStudio на MacOS.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
mem-agent-mcp
This is an MCP server for our model driaforall/mem-agent, which can be connected to apps like Claude Desktop or Lm Studio to interact with an obsidian-like memory system.
Supported Platforms
- macOS (Metal backend)
- Linux (with GPU, vLLM backend)
Platform note: aarch64 (ARM64) Linux
- On ARM64 Linux, vLLM is not installed by default to avoid build failures (no stable wheels and source builds can fail).
- Installation will succeed without vLLM; you can:
- Use the default OpenRouter/OpenAI path (no local vLLM needed), or
- Run vLLM on a compatible x86_64 host and point the client at it (see agent/model.py create_vllm_client).
Running Instructions
Using a LiteLLM proxy (OpenAI-compatible)
- If you have a LiteLLM proxy running locally (e.g., on port 4000), configure the client via .env:
VLLM_HOST=localhost
VLLM_PORT=4000
- Verify connectivity:
curl http://localhost:4000/v1/models
- Then use either of these:
- CLI:
make chat-cli - MCP over STDIO:
make serve-mcp - MCP over HTTP:
make serve-mcp-http
- CLI:
Note: On ARM64 Linux, this is the recommended setup instead of vLLM.
make check-uv(if you have uv installed, skip this step).make install: Installs LmStudio on MacOS.make setup: This will open a file selector and ask you to select the directory where you want to store the memory.make run-agent: If you’re on macOS, this will prompt you to select the precision of the model you want to use. 4-bit is very usable as tested, and higher precision models are more reliable but slower.make generate-mcp-json: Generates themcp.jsonfile. That will be used in the next step.- Instructions per app/provider:
- Claude Desktop:
- Copy the generated
mcp.jsonto the where yourclaude_desktop.jsonis located, then, quit and restart Claude Desktop. Check this guide for detailed instructions.
- Copy the generated
- Lm Studio:
- Copy the generated
mcp.jsonto themcp.jsonof Lm Studio. Check this guide for detailed instructions. If there are problems, change the name of the model in .mlx_model_name (found in the root of this repo) frommem-agent-mlx-4bitormem-agent-mlx-8bittomem-agent-mlx@4bitormem-agent-mlx@8bitrespectively.
- Copy the generated
- Claude Desktop:
Memory Instructions
- Each memory directory should follow the structure below:
memory/
├── user.md
└── entities/
└── [entity_name_1].md
└── [entity_name_2].md
└── ...
user.mdis the main file that contains information about the user and their relationships, accompanied by links to the enity file in the format of[[entities/[entity_name].md]]per relationship. The link format should be followed strictly.entities/is the directory that contains the entity files.- Each entity file follows the same structure as
user.md.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →