MCP Catalogs
Homemcp-memory-service screenshot

mcp-memory-service

by doobidoo·1,848·Score 56

Persistent memory service for AI agents with REST API, MCP, OAuth, and knowledge graph functionality.

ai-llmknowledge-graphdeveloper-tools
281
Forks
14
Open issues
this month
Last commit
2d ago
Indexed

Overview

mcp-memory-service is an open-source memory backend that provides persistent storage for AI agent pipelines like LangGraph, CrewAI, and AutoGen. It offers both REST API and MCP protocol access, with support for Remote MCP integration with claude.ai in browsers. The service features knowledge graphs with typed edges, autonomous memory consolidation, and local embeddings via ONNX. It can be self-hosted with OAuth 2.0 authentication and supports multi-agent scenarios with memory sharing and inter-agent messaging through tagging.

Try asking AI

After installing, here are 4 things you can ask your AI assistant:

you:Persistent memory for AI agents across conversation sessions
you:Multi-agent systems with shared knowledge and inter-agent messaging
you:Self-hosted alternative to commercial memory APIs with privacy control
you:Remote memory service for claude.ai browser integration

When to choose this

Choose this when you need a self-hosted memory solution for multiple AI agents with shared knowledge graphs and browser-based Claude AI support.

When NOT to choose this

Not ideal if you need a simple, lightweight solution or if you prefer cloud-hosted services over self-hosted infrastructure.

Tools this server exposes

6 tools extracted from the README
  • store_memorymemory_store(content: string, tags: string[], conversation_id: string = null, agent_id: string = null)

    Store a memory entry with content and tags for later retrieval

  • search_memoriesmemory_search(query: string, tags: string[], agent_id: string = null, limit: int = 10)

    Search stored memories using semantic search and filtering

  • delete_memorymemory_delete(memory_id: string)

    Delete a specific memory entry by ID

  • get_memory_graphmemory_graph_get(agent_id: string = null)

    Retrieve the knowledge graph of memories with relationships

  • add_memory_edgememory_graph_add_edge(source_id: string, target_id: string, relation: string)

    Add a relationship between two memory entries

  • consolidate_memoriesmemory_consolidate(days_old: int = 30, compression: float = 0.5)

    Automatically consolidate old memories into compressed summaries

Comparable tools

mempalacezepmem0

Installation

# Basic installation
pip install mcp-memory-service

# Start the server
MCP_ALLOW_ANONYMOUS_ACCESS=true memory server --http

For Claude Desktop integration, add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-memory": {
      "command": "python",
      "args": ["-m", "mcp_memory_service.server"],
      "env": {
        "MCP_ALLOW_ANONYMOUS_ACCESS": "true",
        "MCP_STREAMABLE_HTTP_MODE": "1"
      }
    }
  }
}

For remote MCP with claude.ai browser:

MCP_STREAMABLE_HTTP_MODE=1 MCP_SSE_HOST=0.0.0.0 MCP_SSE_PORT=8765 python -m mcp_memory_service.server

Compare mcp-memory-service with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.