Lore DB MCP Server
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.
Lore DB
A local, vector-based knowledge base with semantic search, a web UI, and an MCP server for use with Claude and other AI tools.
Python backend — FastAPI REST API, sentence-transformer embeddings, SQLite storage
React frontend — document management, semantic search, analytics dashboard
MCP server — eight tools (
get,search,create,update,delete,verify,stale,reindex) over HTTP or stdioMulti-namespace — isolate knowledge bases per project using the
X-KB-Namespaceheader orKB_NAMESPACEenv varAnalytics — tracks MCP tool usage (searches, views, creates) in a separate SQLite database
Architecture
proxy (nginx :8765)
├── /api/ → backend (FastAPI :8000)
├── /mcp/ → mcp (FastMCP :8000, streamable-http)
└── / → frontend (nginx :80, React SPA)Module | Description |
| SQLite document store + |
| FastAPI CRUD, search, reindex, analytics, namespace endpoints |
| MCP tools (stdio, SSE, streamable-http transports) |
| Per-namespace KB instances with LRU caching |
| MCP event logging in a global |
| Vite + React + TypeScript, TanStack Router, Tailwind |
Related MCP server: ragi
Quick Start
Production
npm run startRuns docker compose up --build -d. The app is available at http://localhost:8765.
npm run stop # docker compose down
npm run restart # down + up --build -dDevelopment (hot reload)
npm run devRuns docker compose -f docker-compose.dev.yml up --build. The app is available at http://localhost:8766.
Backend restarts on Python file changes (
--reload)Frontend uses the Vite dev server with full HMR
Uses a separate database at
.localdata/backend-dev/so dev never touches prod data
Persistent Storage
SQLite databases are stored on the host and are gitignored:
Path | Contents |
| Document store (one file per namespace) |
| MCP event log |
MCP Configuration
The MCP server is exposed at http://localhost:8765/mcp/ using the streamable-http transport.
Add a .mcp.json in the directory where you start Claude:
{
"mcpServers": {
"knowledge-base": {
"type": "http",
"url": "http://localhost:8765/mcp/",
"headers": {
"X-KB-Namespace": "my-project"
}
}
}
}Set X-KB-Namespace to any alphanumeric slug. Each unique namespace gets its own isolated database.
Available MCP Tools
Tool | Description |
| Fetch full document content |
| Semantic + lexical search with freshness decay |
| Add a new document |
| Update title and/or content |
| Remove a document |
| Confirm a document is still accurate (bumps freshness timestamp) |
| Find documents that may be outdated |
| Re-embed all documents (run after first deploy or model changes) |
Stdio fallback
For direct CLI invocation without the HTTP server:
{
"mcpServers": {
"knowledge-base": {
"type": "stdio",
"command": "docker",
"args": [
"compose",
"exec",
"-T",
"-e",
"KB_NAMESPACE=my-project",
"backend",
"python",
"-m",
"app.mcp_server"
]
}
}
}Reindexing
Run reindex_documents() via MCP tool, the Settings page, or curl after:
First deploy switching from the old hash embedder to
all-MiniLM-L6-v2Upgrading to a different embedding model
curl -X POST http://localhost:8765/api/reindex -H "X-Kb-Namespace: my-project"Normal create and update operations always auto-embed — no manual reindex needed.
Running Tests
cd backend
python -m pytest tests/ -vTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Semantic nearest-neighbour search over your datasets, plus indices and projections.
Ingest, manage, and retrieve documents for RAG-powered AI applications
A search engine that learns from your grades. Store text, records, images or embeddings.
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceA local-first knowledge base server that enables AI clients to store, retrieve, and manage documents using semantic search. Provides privacy-focused, offline-capable memory for AI assistants with tools for ingesting, querying, updating, and deleting knowledge.721 npm-
- AlicenseAqualityDmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.314 npmMIT
- FlicenseAqualityDmaintenanceEnables indexing local documents (PDF, Markdown, text, code) into a knowledge base and querying them via semantic search using local embeddings, all running privately on your machine.4-
- AlicenseNot gradedqualityDmaintenanceProvides local semantic search over files using embeddings, enabling directory indexing and natural language queries without external services.23 PyPIMIT