Cover image
Try Now
2024-12-12

Espejo dehttps: //github.com/g0t4/mcp-server-memory-file

3 years

Works with Finder

0

Github Watches

1

Github Forks

1

Github Stars

mcp-server-memory

This is an MCP server to interact with a memory text file to help Claude with inter-chat context.

Each line is a memory.

These tools allow Claude (and other MCP clients) to manage memories mid-chat:

  • memory_add(memory: string) - append the memory
  • memory_search(query: string) - return matching memories (substring exact match) - later, might allow globs/regex
  • memory_delete(query: string) - delete matching memories (substring exact match)
  • memory_list() - return all memories
  • FYI memory_update == memory_delete + memory_add

For example,

  • I mention my name => "talking to Wes"
  • metion daughter's age => "Wes's daughter is 8"
  • say working on a typescript project => "working on typescript project"
  • AND, this is critical, can be based on things Claude (assistant/LLM) says or does...
    • Notably, tool use (i.e. run_command)... say there is a failure on a first attempt to use the tool (i.e. the python command isn't present) and then a subsequent tool use succeeds (i.e. using python3 instead of python) => Claude can record "use python3, python is not present"...
  • I ask Claude to get rid of memories about X => memory_delete(query: X)
  • I correct my name => memory_search("oldname") + memory_delete(each matching record, or a common subset query) + memory_add("newname")

Then, when a new chat begins, Claude will automatically get recent memories (a subset or all) OR can ask for memories (some/more/all). And then can use those to influence responses/tools/etc.

Design

A simple memory text file, why:

  • ChatGPT's memory works well and is essentially a text file
    • Maybe it's structured behind the scenes, however if you review your memory its presented as a text file.
  • My testing of a similar reminders feature for mcp-server-commands worked great (when Claude had them).
  • Unstructured text simplifies the tooling and parameters to basically managing a list of strings.

Cueing mechanism:

  • It's also important to have a cue for the model to know when to store memories. This is a bit more unclear how best to do this but..
  • Training: OpenAI acknowledges some training of models to know when to store memories. Just like models are trained for tool use.
  • Prompt: A system prompt component likely contains a reminder to trigger storing memories.
  • Tool alone: In my testing of Claude, with a tool spec alone, and even with hints/suggestions in tool responses, I couldn't get Claude to store memories. So this alone is not sufficient. Seems like Claude's training with tools is to only use them in pursuit of the prompt/request and thus why I believe adding a reminder/cue in a prompt component will work well.

TODOs/Ideas

I have no idea if these are worth the time, just listing ideas here for the future. Perhaps in part to stop myself from working on them :)

  • Recency factor: a way to rearrange memories based on recency?
    • Order then becomes relevant for ambiguous memory queries (i.e. work on typescript project and python project then I ask to start a new project, could suggest the most recently used one?)
  • Fade out old memories?

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

    Reviews

    5 (1)
    Avatar
    user_uyb923z9
    2025-04-15

    As a dedicated MCP user, I highly recommend the Claude AI Documentation Assistant by XPE-7. This tool has significantly streamlined my documentation process, offering clear, concise, and intelligent assistance with every query. It’s a game-changer for anyone looking to enhance their productivity and efficiency. You can check it out here: https://mcp.so/server/MCP-Server/XPE-7.