Memory Server Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Memory Server Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A TypeScript-based Model Context Protocol (MCP) server that provides persistent memory management using SQLite database. This server exposes both MCP tools and RESTful API endpoints for storing and retrieving conversational context with metadata.
The server automatically creates a SQLite database with the following schema:
CREATE TABLE memory (
id INTEGER PRIMARY KEY AUTOINCREMENT,
content TEXT NOT NULL,
timestamp TEXT NOT NULL,
session_id TEXT NOT NULL,
content_hash TEXT NOT NULL UNIQUE,
metadata TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
-- Indexes for performance optimization
CREATE INDEX idx_session_id ON memory(session_id);
CREATE INDEX idx_timestamp ON memory(timestamp);
CREATE INDEX idx_content_hash ON memory(content_hash);
CREATE INDEX idx_created_at ON memory(created_at);npm installnpm run buildTo run as an MCP server using stdio transport:
npm start -- --mcp
# or
MCP_MODE=true npm startTo run as a standalone HTTP server:
npm startThe server will start on http://localhost:3000 by default.
PORT: HTTP server port (default: 3000)HOST: HTTP server host (default: localhost)DB_PATH: SQLite database file path (default: ./data/memory.db)DB_MAX_CONNECTIONS: Maximum database connections (default: 10)LOG_LEVEL: Logging level (debug, info, warn, error) (default: info)CORS_ORIGIN: Comma-separated list of allowed CORS originsMCP_MODE: Set to 'true' to run in MCP modeNODE_ENV: Environment (development, production)The server provides the following MCP tools:
Saves content to memory with metadata.
Parameters:
content (string, required): The content to savesession_id (string, required): Session identifier for groupingmetadata (object, optional): Additional metadataExample:
{
"content": "User prefers dark mode and uses TypeScript",
"session_id": "user-123-session-1",
"metadata": {
"category": "preferences",
"importance": "high"
}
}Retrieves stored memories with optional filtering.
Parameters:
session_id (string, optional): Filter by session IDstart_date (string, optional): Filter from date (ISO format)end_date (string, optional): Filter until date (ISO format)limit (number, optional): Maximum records to return (1-1000)offset (number, optional): Records to skip for paginationGets the total count of memory records.
Parameters:
session_id (string, optional): Count for specific sessionDeletes a specific memory record.
Parameters:
id (number, required): ID of the memory record to deleteSave a new memory record.
Request Body:
{
"content": "Content to save",
"session_id": "session-identifier",
"metadata": {
"key": "value"
}
}Read memory records with optional query parameters:
session_id: Filter by sessionstart_date: Filter from dateend_date: Filter until datelimit: Maximum recordsoffset: Pagination offsetGet memory count with optional session_id query parameter.
Delete a specific memory record by ID.
Health check endpoint.
To use this server with an MCP client, add it to your MCP settings:
{
"mcpServers": {
"memory-server": {
"command": "node",
"args": ["path/to/memory-server/build/index.js", "--mcp"],
"env": {
"DB_PATH": "path/to/memory.db",
"LOG_LEVEL": "info"
}
}
}
}npm run build: Compile TypeScript to JavaScriptnpm run dev: Watch mode for developmentnpm start: Start the servermemory-server/
├── src/
│ ├── index.ts # Main server entry point
│ ├── database.ts # SQLite database operations
│ ├── api.ts # REST API routes
│ ├── mcp-tools.ts # MCP tool handlers
│ ├── logger.ts # Logging utility
│ └── types.ts # TypeScript interfaces
├── build/ # Compiled JavaScript (generated)
├── data/ # Database files (generated)
├── package.json
├── tsconfig.json
└── README.mdThe server includes comprehensive error handling:
MIT License
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.