@13w/local-rag
MCP ServerFreeDistributed semantic memory + code RAG as an MCP plugin for Claude Code agents
Capabilities9 decomposed
distributed semantic memory with vector persistence
Medium confidenceImplements a distributed semantic memory layer using Qdrant vector database as the backend storage, enabling Claude Code agents to persist and retrieve embeddings across sessions. The system stores embeddings generated from code snippets, documentation, and conversation context in a vector index, allowing agents to maintain long-term semantic understanding without re-embedding identical content. Uses MCP protocol to expose memory operations as standardized tools that Claude can invoke during code generation and reasoning tasks.
Bridges Claude Code agents with Qdrant via MCP protocol, enabling agents to treat distributed vector memory as a first-class tool rather than requiring custom API wrappers. Uses MCP's standardized tool schema to expose memory operations (store, retrieve, search) as native Claude capabilities.
Unlike generic RAG libraries that require custom integration code, local-rag exposes memory as MCP tools that Claude understands natively, eliminating integration boilerplate and enabling agents to autonomously decide when to use memory.
code-aware semantic search with ast-informed embeddings
Medium confidenceProvides semantic search over codebases by generating embeddings that incorporate code structure awareness, not just raw text similarity. The system can index code files, extract meaningful code units (functions, classes, modules), and generate embeddings that capture both semantic meaning and syntactic context. Search queries return ranked code snippets with relevance scores, enabling Claude agents to find relevant code patterns and implementations without keyword matching.
Integrates code structure awareness into embeddings by leveraging language-specific parsing (likely tree-sitter or similar), enabling semantic search that understands code intent rather than treating code as plain text. Exposes search as MCP tools that Claude can invoke during code generation.
Outperforms keyword-based code search (grep, ripgrep) by understanding semantic similarity, and requires less manual prompt engineering than generic RAG systems because it's specifically tuned for code semantics.
mcp-native tool exposure for claude code agents
Medium confidenceWraps all RAG and memory operations as MCP (Model Context Protocol) tools that Claude Code agents can invoke directly, using MCP's standardized tool schema and request/response format. The system registers tools for memory operations (store, retrieve, search, delete) and exposes them through the MCP server interface, allowing Claude to autonomously decide when to access memory without requiring custom prompt engineering or wrapper code.
Uses MCP protocol as the integration layer rather than custom REST APIs or SDK wrappers, enabling Claude to treat RAG operations as first-class tools with standardized schemas. Eliminates the need for custom prompt engineering to teach Claude about tool availability.
Cleaner than custom API wrappers because MCP provides standardized tool schemas that Claude understands natively, and more maintainable than prompt-based tool discovery because tool definitions are declarative and version-controlled.
ollama-integrated local embedding generation
Medium confidenceIntegrates with Ollama to generate embeddings locally without external API calls, using open-source embedding models (e.g., nomic-embed-text, all-minilm). The system can invoke Ollama's embedding endpoint to convert code snippets and search queries into vector representations, enabling fully local RAG pipelines without dependency on commercial embedding APIs. Supports fallback to external embedding APIs if Ollama is unavailable.
Provides local embedding generation as a first-class option in the RAG pipeline, with graceful fallback to external APIs. Uses Ollama's standardized embedding endpoint, enabling users to swap embedding models without code changes.
Enables fully local RAG without cloud dependencies, unlike systems that require API keys for embeddings. Trades embedding quality for privacy and cost savings, making it ideal for sensitive codebases.
multi-language codebase indexing and retrieval
Medium confidenceSupports indexing and semantic search across multiple programming languages (JavaScript, TypeScript, Python, Go, Rust, etc.) by using language-agnostic embedding generation and optional language-specific parsing for code structure awareness. The system can index mixed-language codebases, maintain separate vector indices per language if needed, and retrieve relevant code regardless of language boundaries. Enables cross-language code pattern discovery and reuse.
Handles multi-language codebases without requiring separate indexing pipelines per language, using language-agnostic embeddings while optionally leveraging language-specific parsing for enhanced structure awareness. Exposes unified search interface regardless of language composition.
More flexible than language-specific code search tools (which only work for one language) and simpler than building separate RAG pipelines per language. Enables cross-language pattern discovery that single-language systems cannot provide.
context-aware memory management with metadata filtering
Medium confidenceStores embeddings with rich metadata (file paths, function signatures, timestamps, code language, author, etc.) and enables filtering/retrieval based on metadata predicates, not just semantic similarity. The system can retrieve embeddings matching specific criteria (e.g., 'all Python functions modified in last week', 'all code in src/utils directory') and combine metadata filtering with semantic search for precise context retrieval. Metadata is stored alongside vectors in Qdrant using payload filtering.
Leverages Qdrant's payload filtering to enable metadata-aware retrieval, combining semantic search with structured filtering in a single query. Enables agents to respect code organization and ownership boundaries without separate filtering logic.
More powerful than pure semantic search because it can enforce organizational constraints (e.g., 'only search in my team's code'). More efficient than post-filtering results because metadata filtering happens at the database level.
session-scoped memory isolation for multi-agent scenarios
Medium confidenceProvides memory isolation mechanisms that allow different Claude Code agents or sessions to maintain separate memory spaces, preventing cross-contamination of context. The system can scope memory operations to specific sessions, users, or projects using namespace/partition strategies in Qdrant, enabling multiple agents to operate independently while sharing the same vector database infrastructure. Supports both isolated and shared memory modes depending on use case.
Implements session-scoped memory isolation using Qdrant's partitioning capabilities, enabling multiple agents to share infrastructure while maintaining independent memory spaces. Provides both isolated and shared memory modes for flexibility.
More efficient than running separate vector databases per agent because it shares infrastructure while maintaining isolation. More flexible than hard-coded isolation because it supports both isolated and shared memory patterns.
incremental codebase indexing with change detection
Medium confidenceSupports incremental indexing of codebase changes rather than full re-indexing, using file modification timestamps or git diff to detect changed files and update only affected embeddings. The system can track which files have been indexed, detect changes since last indexing, and update only the changed code units in the vector database. Enables efficient maintenance of large codebase indices without full re-embedding on every update.
Implements incremental indexing with change detection, avoiding expensive full re-indexing of large codebases. Uses file timestamps or git integration to identify changed files and updates only affected embeddings in Qdrant.
More efficient than full re-indexing for large codebases, enabling live code search indices. More reliable than polling-based approaches because it uses explicit change detection rather than periodic full scans.
hybrid search combining semantic and keyword matching
Medium confidenceSupports hybrid search that combines semantic vector similarity with keyword/BM25 matching, enabling retrieval that balances semantic understanding with exact term matching. The system can execute both semantic and keyword searches in parallel, rank results using combined scores, and return results that capture both semantic relevance and keyword precision. Useful for code search where exact function names or identifiers matter alongside semantic similarity.
Combines semantic vector search with keyword matching in a single retrieval pipeline, enabling code search that respects both semantic intent and exact identifiers. Uses score combination strategies to balance semantic and keyword relevance.
Better for code search than pure semantic search because code often requires exact identifier matching. Better than pure keyword search because it captures semantic intent that keyword matching misses.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with @13w/local-rag, ranked by overlap. Discovered automatically through the match graph.
opencode-mem
OpenCode plugin that gives coding agents persistent memory using local vector database
Memory Box MCP Server
Save, search, and format memories with semantic understanding. Enhance your memory management by leveraging advanced semantic search capabilities directly from Cline. Organize and retrieve your memories efficiently with structured formatting and detailed context.
claude-context
Code search MCP for Claude Code. Make entire codebase the context for any coding agent.
Loop GPT
Re-implementation of AutoGPT as a Python package
agents-towards-production
End-to-end, code-first tutorials for building production-grade GenAI agents. From prototype to enterprise deployment.
Mastra
TypeScript AI framework — agents, workflows, RAG, and integrations for JS/TS developers.
Best For
- ✓teams building long-running Claude Code agents that need persistent context
- ✓developers working on large codebases where code patterns should be remembered across sessions
- ✓organizations implementing AI-assisted code generation with institutional memory requirements
- ✓developers working with large, multi-language codebases (10k+ lines)
- ✓teams implementing code generation agents that need contextual code examples
- ✓organizations building internal code search tools powered by semantic understanding
- ✓developers building Claude Code agents with persistent context requirements
- ✓teams implementing multi-turn coding sessions where agents need to reference previous work
Known Limitations
- ⚠Requires external Qdrant instance — no built-in local vector storage fallback
- ⚠Vector embedding quality depends on upstream embedding model (Ollama or external API)
- ⚠No automatic cleanup or TTL policies for stale embeddings — requires manual maintenance
- ⚠Distributed setup adds network latency for each memory operation (typically 50-200ms per query)
- ⚠Embedding quality varies by language — best support for JavaScript/TypeScript, degraded for esoteric languages
- ⚠Requires pre-indexing of codebase — no real-time indexing of uncommitted changes
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Package Details
About
Distributed semantic memory + code RAG as an MCP plugin for Claude Code agents
Categories
Alternatives to @13w/local-rag
Are you the builder of @13w/local-rag?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →