npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

vec-memory-mcp

v1.1.0

Published

MCP server with SQLite vec0 and Ollama embeddings for graph-based semantic memory

Readme

Vec Memory MCP Server

An MCP (Model Context Protocol) server that provides graph-based semantic memory using SQLite vec0 and Ollama embeddings.

Features

  • Semantic Search: Vector-based similarity search using embeddings
  • Graph Relationships: Create and traverse relationships between memories
  • Flexible Transport: Support for both stdio and SSE (HTTP) transports
  • Flexible Storage: SQLite with vec0 extension for efficient vector operations
  • MCP Integration: Standard MCP server for easy integration

Prerequisites

  • Node.js 18+
  • Ollama: Install from ollama.ai or:
    • macOS: brew install ollama
    • Linux: curl -fsSL https://ollama.ai/install.sh | sh
    • Windows: Download from ollama.ai/download

Installation

From npm (recommended)

Add to your MCP client configuration:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["vec-memory-mcp"]
    }
  }
}

The server will be automatically downloaded and started when needed.

Note: The server will automatically start Ollama if it's not already running and download the required embedding model if needed.

From source

npm install
npm run build

Usage

Start the MCP server with stdio transport (default):

npm start
# or
npm run dev

Start with SSE transport for HTTP clients:

npm run build && node dist/index.js --sse
# or custom port
npm run build && node dist/index.js --sse --port 8080

Run npm run build && node dist/index.js --help for all options.

Environment Variables

  • MEMORY_DB_PATH: Path to SQLite database (default: ./memory.db)
  • OLLAMA_BASE_URL: Ollama API URL (default: http://localhost:11434)
  • OLLAMA_MODEL: Embedding model to use (default: nomic-embed-text)

MCP Tools

Memory Operations

  • add_memory: Store content with semantic embedding
  • get_memory: Retrieve memory by ID
  • update_memory: Update memory content or metadata
  • delete_memory: Remove a memory
  • search_memories: Semantic search across memories

Relationship Operations

  • add_relationship: Create relationships between memories
  • get_relationships: Query relationships with filtering
  • update_relationship: Modify relationship strength or metadata
  • delete_relationship: Remove a relationship
  • get_connected_memories: Find memories connected through relationships

Architecture

  • src/ollama.ts: Ollama management and embedding generation
  • src/database.ts: SQLite database schema and vec0 integration
  • src/memory.ts: Core memory operations and graph traversal
  • src/server.ts: MCP server implementation
  • src/index.ts: Entry point and configuration

Requirements

  • Node.js 18+
  • SQLite with vec0 extension (automatically checked)
  • Ollama (must be installed separately)