Simple-Memory-Extension-MCP-Server
Verified Safeby gmacev
Overview
A persistent key-value memory store for AI agents, designed to extend context windows and enable semantic search over stored memories.
Installation
npm startEnvironment Variables
- DB_PATH
- PORT
- USE_HTTP_SSE
- LOG_LEVEL
Security Notes
The server's HTTP endpoint explicitly sets 'Access-Control-Allow-Origin: *', making it accessible from any origin. While common for local development tools as intended here, this configuration poses a significant security risk if the server is exposed publicly without additional network layers or authentication. The system relies on `JSON.parse` for agent-provided values, which could be a vector for memory exhaustion attacks if the agent's output is not properly constrained and large/complex JSON is provided. SQL queries are parameterized, mitigating SQL injection risks. The Python embedding service is spawned as a child process, communicating via stdin/stdout with JSON, which is a generally secure pattern as long as the data passed through it is controlled and validated by the Node.js application. The embedding process itself truncates inputs to 512 tokens, which helps prevent memory exhaustion from excessively large text inputs.
Similar Servers
context-sync
Providing persistent memory and context synchronization for AI development across various tools and projects.
memory-mcp
This MCP server provides memory storage and intelligent context window caching capabilities for Large Language Model (LLM) conversations, including archiving, retrieval, and summarization.
cortexgraph
CortexGraph is an MCP server that provides short-term memory for AI assistants, featuring temporal decay, reinforcement, and automatic promotion to long-term storage.
post-cortex
Post-Cortex transforms ephemeral AI conversations into persistent, searchable knowledge, enabling AI assistants to maintain memory across sessions with semantic search and automatic knowledge graph construction.