Skip to main content
Glama
aeriondyseti

Vector Memory MCP Server

by aeriondyseti

Vector Memory MCP Server

Semantic memory storage for AI assistants. Store decisions, patterns, and context that persists across sessions.

A local-first MCP server that provides vector-based memory storage. Uses local embeddings and SQLite with sqlite-vec for fast, private semantic search — all in a single file.

License: MIT npm version


Features

  • Local & Private - All embeddings generated locally (all-MiniLM-L6-v2, 384-dim), data stored in a single SQLite file

  • Semantic Search - Hybrid vector + full-text search with intent-based ranking

  • Batch Operations - Store, update, delete, and retrieve multiple memories at once

  • Session Waypoints - Save and restore project context between sessions

  • Conversation History - Index and search Claude Code session transcripts

  • MCP Native - Standard protocol, works with any MCP-compatible client


Related MCP server: Memorious MCP

Installation

There are two ways to install Vector Memory, depending on how much integration you want.

Install as a plugin to get the full experience: MCP server, session lifecycle hooks, waypoint skills, and context monitoring — all managed automatically.

# Add the marketplace
claude plugin marketplace add AerionDyseti/vector-memory-mcp

# Install the plugin
claude plugin install vector-memory@vector-memory-mcp

This clones the repo and runs the MCP server directly from source. Hooks handle session start/clear/compact events, and skills provide /waypoint:set, /waypoint:get, and memory usage guidance.

Option B: MCP Server Only

Install just the MCP server via npm if you want memory storage without hooks or skills, or if you're using a non-Claude Code MCP client.

bun install -g @aeriondyseti/vector-memory-mcp

First install downloads ML models (~90MB). This may take a minute.

Then add to your MCP client config (e.g., ~/.claude/settings.json):

{
  "mcpServers": {
    "vector-memory": {
      "type": "stdio",
      "command": "bunx",
      "args": ["--bun", "@aeriondyseti/vector-memory-mcp"]
    }
  }
}

Prerequisites

  • Bun 1.0+

  • An MCP-compatible client (Claude Code, Claude Desktop, etc.)


Tools

Restart your MCP client after installation. You now have access to:

Tool

Description

store_memories

Save memories (accepts array)

search_memories

Find relevant memories semantically

get_memories

Retrieve memories by ID (accepts array)

update_memories

Update existing memories

delete_memories

Remove memories (accepts array)

report_memory_usefulness

Vote on whether a memory was useful

set_waypoint

Save session context for later

get_waypoint

Restore session context

index_conversations

Index Claude Code session logs as searchable history

list_indexed_sessions

Browse indexed conversation sessions

reindex_session

Force reindex of a specific session


Usage

Store a memory:

You: "Remember that we use Drizzle ORM for database access"
Assistant: [calls store_memories]

Search memories:

You: "What did we decide about the database?"
Assistant: [calls search_memories with relevant query]

Session waypoints:

You: "Save context for next session"
Assistant: [calls set_waypoint with summary, completed items, next steps]

Conversation history (requires --enable-history):

You: "What did we discuss about the API design last week?"
Assistant: [calls search_memories with history_only: true, history_before/after filters]

Storage Model

All memories live in a single global database (~/.vector-memory/memories.db) shared by every project. Each memory is tagged with the project (working directory) it was stored from:

  • Searches default to all projects — results carry their project path, and hits from the current project rank slightly higher. Use scope: "project" to restrict a search to the current repo.

  • Waypoints are per-project and resolved automatically from the working directory.

  • A repo-local database is still available via --db-file or VECTOR_MEMORY_DB_PATH (note: keep the db on local disk — WAL mode misbehaves on network filesystems like NFS home directories).

Migrating repo-local databases

Projects that used the old per-repo .vector-memory/ layout can be imported into the global store:

# Import the current repo's .vector-memory/memories.db
bunx @aeriondyseti/vector-memory-mcp consolidate

# Scan a whole directory tree and import every repo-local db found
bunx @aeriondyseti/vector-memory-mcp consolidate ~/Development --recursive

# Preview without writing (prints planned imports and ID re-keys)
bunx @aeriondyseti/vector-memory-mcp consolidate --dry-run

Consolidation tags every imported memory with its repo's path, preserves embeddings and usefulness stats, deduplicates by ID, re-keys waypoints to their per-project IDs (remapping references), and backs up the global db first. --archive renames the source .vector-memory/ to .vector-memory.migrated/ after a successful import; --force skips the live-server check.


Configuration

CLI flags:

Flag

Alias

Default

Description

--db-file <path>

-d

~/.vector-memory/memories.db

Database location (global store)

--project <path>

(cwd)

Project identity used to tag memories

--port <number>

-p

3271

HTTP server port

--no-http

(HTTP enabled)

Disable HTTP/SSE transport

--enable-history

(disabled)

Enable conversation history indexing

--history-path

(auto-detect)

Path to session log directory

--history-weight

0.75

Weight for history results in unified search


Release Channels

Plugin users: The plugin runs the @latest npm release.

npm users: The stable release is what you get by default:

bun install -g @aeriondyseti/vector-memory-mcp

Pre-releases are published to @next for testing upcoming changes. They are unstable and may break without notice — use at your own risk.

Channel

npm

Description

@latest

(default)

Stable releases

@next

@aeriondyseti/vector-memory-mcp@next

Pre-releases (e.g. 3.0.0-beta.1)

# Install the pre-release channel
bun install -g @aeriondyseti/vector-memory-mcp@next

# Go back to stable
bun install -g @aeriondyseti/vector-memory-mcp@latest

Warning: Pre-release versions may include breaking changes, incomplete features, or data migration requirements that haven't been finalized. Do not use them in production workflows you depend on.


Migrating from 1.x (LanceDB)

Version 2.0 replaced LanceDB with SQLite (sqlite-vec) for storage. If you have existing data from 1.x, the server will detect it automatically and prompt you to migrate:

vector-memory-mcp migrate

This reads your LanceDB directory, writes a new SQLite file, and prints instructions to swap them. Your original data is preserved until you manually remove it.

What changed:

  • Storage: LanceDB directory (~845 files) → single .db file

  • Dependencies: 223MB (@lancedb/lancedb + apache-arrow) → 24KB (sqlite-vec)

  • Runtime: Node.js support dropped, Bun required (for bun:sqlite)


Development

git clone https://github.com/AerionDyseti/vector-memory-mcp.git
cd vector-memory-mcp
bun install

bun run test      # Run all tests
bun run dev       # Watch mode
bun run typecheck # Type checking

See CHANGELOG.md for release history and ROADMAP.md for planned features.


Contributing

Contributions welcome! See issues for areas we'd love help with.

License

MIT - see LICENSE


Built with MCP SDK, sqlite-vec, and Transformers.js

Maintenance

ActivityMaintained
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.
    3
    -
  • A
    license
    A
    quality
    D
    maintenance
    Provides AI assistants with long-term semantic memory capabilities through local vector-based storage. Enables storing, recalling, and managing information across sessions with complete privacy using ChromaDB, with no data ever leaving your machine.
    3
    9
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides AI coding agents with persistent, long-term memory through local semantic search and SQLite storage. It enables agents to save and retrieve architectural decisions or project context across different conversation sessions without requiring cloud services.
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
    -