Rag Kb logo

Rag Kb

by fish827-08

Local RAG and agent memory service with hybrid search, document ingestion, REST, MCP, and optional Ollama answers.

Install Rag Kb

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "fish827-08-rag-kb": {
      "command": "uvx",
      "args": [
        "--from",
        "kb-memory",
        "kb"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx --from kb-memory kb

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

fish827-08/rag-kb provides a local knowledge base and cross-session agent memory service through REST and native MCP interfaces. It ingests documents, webpages, CSV, and Excel files into embedded ChromaDB, then combines dense-vector retrieval with BM25 keyword search. Memory writes, document ingestion, table lookups, and retrieval work without an LLM; optional Ollama or cloud configuration enables RAG answering. Use it when data must remain on the local machine or when agents need shared memory across sessions and projects.

Use cases

  • Store cross-session agent memories locally
  • Import and search private documents without an LLM
  • Query CSV and Excel values across multiple sheets
  • Expose shared memory to Claude Code and Cursor
  • Answer document questions with optional Ollama RAG

Key features

  • Hybrid dense-vector and BM25 retrieval
  • Local document, webpage, CSV, and Excel ingestion
  • MCP and REST interfaces in one process
  • Project-scoped and global memory stores
  • Deterministic spreadsheet cell and row queries
  • Optional local or cloud-backed RAG answers

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/19 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · kb-memory (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit18d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity24 viewsConfig copies, upvotes, and views on AllMCPs.

How Rag Kb works

What fish827-08/rag-kb does

fish827-08/rag-kb is a local-first knowledge and memory service for agents, scripts, and desktop clients. It stores agent memories separately from RAG sources such as documents, webpages, and spreadsheets, while exposing both through REST and MCP.

The service runs as a single python -m kb serve process and uses embedded ChromaDB for storage. A local web interface is available at http://127.0.0.1:8000/ui, and command-line commands cover importing, searching, asking questions, inspecting statistics, querying tables, and managing memories.

How it works

Retrieval combines dense embeddings with BM25 keyword search. The default embedding model is BAAI/bge-small-zh-v1.5, which is loaded when a write or search first needs it. BAAI/bge-m3 can be selected for larger semantic models; optional reranking and BGE-M3 sparse retrieval are also available.

CSV and Excel files are imported row by row as column-value text. Table queries use deterministic matching and can return cell values, identify rows by conditions, disambiguate multiple sheets by sheet name, and handle some simple aggregations. Spreadsheet rows do not require vector embeddings, making this path usable without an LLM.

Memories may be global or assigned to a project. Project storage is physically separated, while project searches can combine the project store with global memories. The service records access activity in JSON audit logs and supports namespaces, tags, types, updates, deletion, and listing.

Setup and configuration

Install the ingestion extras and start the service:

Terminal
pip install "kb-memory[ingest]"
python -m kb serve

The same process provides REST and MCP access. On Linux, installing the CPU-only PyTorch package first can avoid downloading CUDA dependencies when GPU support is not needed. The first write or search downloads and caches the embedding model; after caching, storage and retrieval can operate offline.

Useful settings include KB_DEVICE=cpu, KB_LLM_MODE=off, KB_EMBED_MODEL, KB_IDLE_UNLOAD_SECONDS, KB_WATCH_DIR, and KB_DATA_DIR. Only one running instance may use a given data directory. To run separate instances, assign each one a different KB_DATA_DIR; changing only the port does not bypass this restriction.

Tools and capabilities

The MCP interface exposes 13 tools, including:

  • write_memory, search_memory, and delete_memory for agent memory.
  • add_document and add_webpage for RAG source ingestion.
  • list_documents and delete_document for knowledge-base administration.

search_memory can enable table-aware lookup and return structured answers with sources. The REST API provides corresponding memory and document endpoints, while the CLI supports commands such as kb import, kb search, kb ask, and kb table query.

Optional LLM configuration enables /ask and CLI RAG answers. Without an LLM, ingestion, memory management, table lookup, source-aware retrieval, and hybrid search remain available. A local Ollama setup can provide answering without sending data to a hosted service; the service also supports cloud API configuration.

Limitations and notes

The service is designed for a local, single-user shared memory model: memories and knowledge are visible across clients and tasks, with client identifiers used for audit and metadata rather than isolation. Documents, webpages, and tables do not participate in memory decay and are removed only explicitly.

The project is intended for quick lookup across spreadsheets rather than replacing SQL or BI systems. RAG answering, conceptual questions, and aggregate questions depend on an LLM, while table matching remains deterministic. Web ingestion includes SSRF protection and a 5 MB response limit; individual file uploads are limited by KB_MAX_UPLOAD_BYTES, whose default is 100 MB. The project is licensed under Apache-2.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rag Kb

fish827-08/rag-kb is an MCP server that connects agents to a local ChromaDB knowledge base and shared memory store. Its main tools write, search, update, and delete memories; ingest documents and webpages; and list or remove sources. It also supports table-aware searches for CSV and Excel data.

Install it with `pip install "kb-memory[ingest]"`, then run `python -m kb serve`. The ingestion extra adds document, webpage, and spreadsheet support. The service exposes REST and MCP from the same process and can be used through its local web interface.

Yes, fish827-08/rag-kb is intended to provide shared cross-session memory for Cursor. Run the service locally and configure Cursor to use its native MCP endpoint. The same memory and knowledge base can also be accessed by Claude Code.

Yes, Excel and CSV lookup works without an LLM. Files are imported row by row, and table-aware queries use deterministic matching to find cells, rows, conditions, sheet names, and some simple aggregates. Table rows do not require vector embedding.

Yes, memory management, document ingestion, table lookup, and hybrid retrieval can run offline after the embedding model is cached. LLM-generated answers require an optional Ollama setup or a configured cloud API, while ordinary storage and search do not require an LLM.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRag Kb AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/fish827-08-rag-kb?style=directory)](https://allmcps.com/mcp/fish827-08-rag-kb)
HTML Embed
<a href="https://allmcps.com/mcp/fish827-08-rag-kb"><img src="https://allmcps.com/api/badge/fish827-08-rag-kb?style=directory" alt="Rag Kb on AllMCPs" /></a>