Skip to main content
Glama

Simple RAG MCP

Memória persistente para chat: salva conversas e busca as mais relevantes por similaridade (SQLite + FAISS).

Como funciona

  • memory_store.py — salva cada turno em SQLite e indexa embeddings no FAISS (embeddings vêm de um servidor llama.cpp).

  • server_mcp.py — servidor MCP que expõe as ferramentas:

    • store_memory — salva um turno (input do usuário + output do assistente)

    • remember_memory — busca memórias semanticamente parecidas com o contexto

    • remember_memory_date — busca todas as memórias de um dia (YYYY-MM-DD)

Related MCP server: MCPMem

Requisitos

  • Python 3

  • Um servidor llama.cpp rodando com endpoint de embeddings (padrão: http://127.0.0.1:8001)

pip install -r requirements.txt

Uso

python server_mcp.py

Variáveis de ambiente opcionais:

Variável

Padrão

LLAMA_SERVER_URL

http://127.0.0.1:8001

EMBED_DIM

1024

Os dados ficam salvos em ./.llama_memhistory/ (banco SQLite + índice FAISS).

Licença

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to store and retrieve long-term memories using PostgreSQL with vector similarity search. Supports semantic memory operations, tagging, and real-time updates for persistent learning across conversations.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to store and retrieve memories with semantic search capabilities using vector embeddings. Provides persistent memory storage with SQLite backend for context retention across conversations.
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides persistent memory capabilities for AI assistants, enabling storage, recall, and analysis of information across conversations with intelligent memory management.
      25
      10 npm
      MIT