MCP ServerSTDIOOfficialv1.4.18

YourMemory MCP Server

Store and retrieve persistent memories for AI agents with time-based decay and recall strengthening. Ideal for developers building stateful AI systems that need long-term context retention.

io.github.sachitrafa/yourmemory

Hosted URL

Local install

Transport

STDIO

Auth

No auth required

What the YourMemory MCP server does

How models use it and what it is built for.

Store and retrieve persistent memories for AI agents with time-based decay and recall strengthening. Ideal for developers building stateful AI systems that need long-term context retention.

Connect to YourMemory

Local install — runs as a subprocess.

uvx yourmemory==1.4.18

Environment variables

Configuration this server reads at startup.

  • PYTHONIOENCODING

    Set to utf-8 to ensure correct text encoding on all platforms.

Resources

Where to find authoritative docs and source for YourMemory.

Example prompts for YourMemory

Paste any of these into Agent Studio after connecting YourMemory.

  • Store a memory about the user's preferred coding language and retrieval frequency
  • Retrieve all memories created in the last 7 days and show decay scores
  • Strengthen a memory by recalling it and check how recall affects its persistence
  • Explain how memory decay works and what factors influence retention over time

YourMemory MCP server — FAQ

Common questions about connecting and running YourMemory.

  • What is memory decay and how does it work in this server?

    Memories automatically decay in strength over time unless recalled. When you retrieve a memory, its strength increases, making it persist longer. This mimics human memory behavior where frequently accessed information stays fresher.

  • How do I install and run the yourmemory MCP server?

    Install via `uvx yourmemory@1.4.18`. The server uses stdio transport. Ensure PYTHONIOENCODING is set to utf-8 for correct text encoding across all platforms.

  • Can I use this for multi-turn conversations with persistent context?

    Yes. The server stores memories that persist across sessions, allowing AI agents to maintain context and learn from past interactions. Recall strengthens memories, making important context more durable.

  • What encoding does this server support?

    The server supports UTF-8 encoding. Set the PYTHONIOENCODING environment variable to utf-8 to ensure correct text handling on all platforms, especially Windows.

  • How is this different from simple key-value storage?

    Unlike static storage, yourmemory implements time-based decay and recall-based strengthening. Memories naturally fade unless actively used, creating a more realistic and efficient memory model for long-running agents.

Skip the local setup — run MCP in your browser

MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 60+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.

Open Agent Studio

Related servers

More on MCP Playground