Back to Home
gmacev icon

Simple-Memory-Extension-MCP-Server

Verified Safe

by gmacev

Overview

A persistent key-value memory store for AI agents, designed to extend context windows and enable semantic search over stored memories.

Installation

Run Command
npm start

Environment 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

Stats

Interest Score37
Security Score7
Cost ClassMedium
Avg Tokens400
Stars9
Forks3
Last Update2025-11-27

Tags

mcpkey-value-storesemantic-searchai-memorysqlite