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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arcaelas/rag

v1.2.0

Published

MCP server with Ollama + Vectra for semantic memory and RAG operations

Readme

@arcaelas/rag

npm version License: MIT Node.js >= 18

MCP server with Ollama + Vectra for semantic memory and RAG operations.

Build intelligent AI agents with persistent semantic memory - Store, search, and retrieve knowledge using vector embeddings, powered by local Ollama models and Vectra vector database.

Features

  • 🧠 Semantic memory with vector embeddings
  • 🔍 Semantic search using similarity
  • 📦 Bulk import/export via JSONL
  • 🚀 Local-first with Ollama and Vectra
  • 🔧 Zero configuration with sensible defaults

Prerequisites

  • Node.js >= 18
  • Ollama running locally
  • An embedding model installed (e.g., ollama pull nomic-embed-text)

Installation

Using npx (recommended)

Add to your ~/.claude.json:

{
  "mcpServers": {
    "rag": {
      "command": "npx",
      "args": ["-y", "@arcaelas/rag"],
      "env": {
        "OLLAMA_HOSTNAME": "http://localhost:11434",
        "OLLAMA_MODEL_NAME": "nomic-embed-text"
      }
    }
  }
}

Global installation

npm install -g @arcaelas/rag

# Or with yarn
yarn global add @arcaelas/rag

Then in ~/.claude.json:

{
  "mcpServers": {
    "rag": {
      "command": "rag",
      "args": [],
      "env": {
        "OLLAMA_HOSTNAME": "http://localhost:11434",
        "OLLAMA_MODEL_NAME": "nomic-embed-text"
      }
    }
  }
}

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | OLLAMA_HOSTNAME | http://localhost:11434 | Ollama server URL | | OLLAMA_MODEL_NAME | nomic-embed-text | Embedding model name |

Available Tools

save(content, metadata?)

Save knowledge to semantic memory database.

await save("TypeScript is a typed superset of JavaScript", {
  category: "programming",
  importance: "high"
})

search(query, limit?)

Search knowledge base using semantic similarity.

await search("typed javascript", 5)

list(offset?, limit?)

List stored memories with pagination.

await list(0, 10)

get(id)

Retrieve specific memory by ID.

await get("uuid-here")

tag(id, tag)

Add tag to a memory.

await tag("uuid-here", "important")

destroy(id)

Permanently delete a memory.

await destroy("uuid-here")

upload(filename)

Bulk import memories from JSONL file.

await upload("/path/to/memories.jsonl")
// Returns: { filename, done: 299, error: [{ line: 297, error: "..." }] }

download(offset?, limit?, filename?)

Export memories to JSONL file.

await download(0, 100, "/path/to/export.jsonl")
// Returns: { filename, offset, limit, count: 303 }

JSONL Format

Each line in the JSONL file should be:

{"context": "Your knowledge content here"}

Optional fields:

{
  "context": "Content here",
  "metadata": {
    "category": "programming",
    "importance": "high",
    "project": "my-project"
  },
  "tags": "tag1,tag2,tag3"
}

Data Storage

Vector database is stored in:

  • npx/global install: ~/.cache/@arcaelas/rag/data/
  • Local install: <project-root>/data/

Collection name: arcaelas_mcp_rag_collection

Development

# Clone repository
git clone https://github.com/arcaelas/rag.git
cd rag

# Install dependencies
yarn install

# Build
yarn build

# Run locally
yarn start

# Watch mode
yarn dev

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Security

See SECURITY.md for security policies and reporting vulnerabilities.

Changelog

See CHANGELOG.md for release history.

License

MIT © Miguel Guevara (Arcaela)

Links

Support