MCP Vector Memory
Integrates with OpenAI's embedding models to generate high-quality semantic vector representations for stored decisions and learnings.
Supports PostgreSQL with the pgvector extension as a scalable backend for storing and performing similarity searches on agent memories and project context.
Provides a local SQLite-based storage system for persistent vector memory, allowing AI agents to save and retrieve semantic context across sessions without external dependencies.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Vector Memory
Persistent vector memory for AI coding agents. Give your AI agents long-term memory that survives across conversations.
Works with Antigravity · VS Code / Copilot · Claude Code · Codex
The Problem
AI coding agents forget everything between conversations. Every new session starts from zero — they repeat questions, lose architectural decisions, and forget how your project is set up.
The Solution
MCP Vector Memory gives your agents persistent, semantic memory. Agents can save and search memories using natural language. Memories are stored locally in SQLite with vector similarity search — no API keys, no cloud, no cost.
Agent: "I need to set up the database"
→ search_memory("database setup")
→ Returns: "PostgreSQL 18 with pgvector, HNSW index, user=app_user..."
→ Agent works WITH full context from past sessionsQuick Start
1. Install
pip install mcp-vector-memory2. Configure Your IDE
Add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"memory": {
"command": "mcp-vector-memory",
"args": [],
"env": {}
}
}
}Create .vscode/mcp.json in your workspace:
{
"mcp": {
"servers": {
"memory": {
"command": "mcp-vector-memory",
"args": [],
"env": {}
}
}
}
}Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"memory": {
"command": "mcp-vector-memory",
"args": [],
"env": {}
}
}
}Add to your Codex MCP configuration:
{
"mcpServers": {
"memory": {
"command": "mcp-vector-memory",
"args": [],
"env": {}
}
}
}3. Restart your IDE
That's it. Your agents now have persistent memory.
Tools Available
Tool | Description |
| Semantic search over past memories |
| Save a decision, context, or learning |
| List all projects with memory counts |
| Memory system statistics |
How It Works
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────┐
│ AI Agent │────▶│ MCP Vector Memory │────▶│ SQLite │
│ (any IDE) │◀────│ (local process) │◀────│ + vectors │
└─────────────────┘ └──────────────────────┘ └─────────────┘
│
Embeddings
(all-MiniLM-L6-v2)
runs locallyAgent calls
save_memory→ text is embedded locally → stored in SQLite with vector indexAgent calls
search_memory→ query is embedded → SQLite finds most similar memoriesEverything runs locally. No API calls, no cloud, no cost.
Configuration
All configuration is via environment variables:
Variable | Default | Description |
|
| Database backend ( |
|
| SQLite data directory |
|
| Embedding provider ( |
|
| Embedding model name |
PostgreSQL Backend (Optional)
For production deployments with PostgreSQL + pgvector:
pip install mcp-vector-memory[postgres]MCP_MEMORY_BACKEND=postgres
PGHOST=localhost
PGPORT=5432
PGUSER=mcp_memory
PGPASSWORD=your_password
PGDATABASE=mcp_memoryDocker (PostgreSQL)
docker compose up -dSee docker-compose.yml for the full setup.
OpenAI Embeddings (Optional)
For higher quality embeddings via OpenAI API:
pip install mcp-vector-memory[openai]
export OPENAI_API_KEY=sk-...
export MCP_MEMORY_EMBEDDING_PROVIDER=openaiContributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
MIT — see LICENSE
This server cannot be deployed
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.