Back to Home
Calvin-Francis icon

memory-mcp

Verified Safe

by Calvin-Francis

Overview

Provides AI assistants with persistent semantic memory and knowledge graph capabilities, enabling cross-session memory, semantic retrieval, and complex reasoning.

Installation

Run Command
npm start

Environment Variables

  • DATABASE_URL
  • DASHSCOPE_API_KEY

Security Notes

The server uses parameterized SQL queries throughout `memory.js` and `graph.js` to prevent SQL injection. Configuration, including API keys and database connection strings, is loaded from environment variables, avoiding hardcoded secrets. Communication occurs over standard I/O (stdio) via JSON-RPC 2.0, which significantly limits external network attack surface. An LRU cache is implemented for embedding generation, reducing frequent calls to external APIs. While the server directly parses arbitrary JSON from stdin, there is no explicit input schema validation before arguments are passed to service functions. PostgreSQL's strong typing does offer a layer of protection against unexpected data types being directly inserted. There is a theoretical potential for denial-of-service (DoS) if excessively large or deeply nested JSON inputs are provided via stdin, though this is less critical for a local stdio connection.

Similar Servers

Stats

Interest Score55
Security Score8
Cost ClassLow
Avg Tokens20
Stars1
Forks0
Last Update2025-12-01

Tags

semantic memoryknowledge graphAI assistantsvector databasePostgreSQL